Skip to contentSkip to conversation

Can Any DeveloperCould help me please How iptables block port tcp ?

DISCUSSION PAUL FABRICIO VILLACRESES LEON 1 participant 1 message Jan 28, 2003

lore
Share & tools
lore
#0 lore raw

Hi
Core developer and all people include in this list.

I'm Paul Villacreses
Student University's ESPOL -FIEC- Ecuador

Here i have :

LAN ---------- eth1 ------ MyBridge -------eth0 -------- Internet

I have linux Redhat 8.0

I'm developing a software using library libiptc, for put rules programming in the table filter inside chain FORWARD and can block port IP like udp,tcp,icmp etc, but ,i want put rules in the table nat for REDIRECT and change NAT some packets.
with libiptc i cant because it accept this targets ACCEPT,DROP,RETURN,etc.not accept DNAT,SNAT, REDIRECT .
and furthermore, I want to put all this rules programming, not with script, for block port TCP like DNS,SNMP,HTTP,TELNET etc.

I read inside de iptables and i think(correct me please if i wrong) it charge extended dinamic library(like tcpxxxx.so) for put this rules in the iptables program.

Please can Anybody explaint me
How Can i put rules for block ports TCP?

How can i put rules in table nat for REDIRECT or DNAT(PREROUTING) or SNAT(POSTROUTING) ?

thank for the super help

thank so much if you answer this question.

Paul

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail