[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: open ports with iptables



> > > doing a search for -dport or -sport for source and destination ports
> > >
> > thank you for your reply, but I am not getting much wiser with this
> > document. I learn by examples. I was thinking about this:
> > iptables -A INPUT -i eth0 -d 212.127.10.10 -dport 135 -j ACCEPT
> > iptables -A OUTPUT -i eth1 -s 192.168.1.1 -sport 135 -j ACCEPT
> 
> internal ip address on the world side of your firewall box - either thats
> wrong or you must have a router doing nat  before any packets will
> arrive?
> 
Hello,

Simply said I want to do this with iptables:
ipmasqadm portfw -a -P tcp -L $extip 135 -R 192.168.1.1 135

so that tcp traffic from port 135 is directly forwarded to port 135 on my
local machine and vice versa.

Sorry if I was unclear.

Thanks in advance,
Sebastiaan




Reply to: