Re: open ports with iptables

2001-06-22 Thread Vineet Kumar
Under the netfilter model, this is known as DNAT (Destination NAT, because it is the destination field of incoming packets that is being rewritten). you'll want something like the following: iptables -t nat -A PREROUTING -d $extip -p tcp --dport 135 -j DNAT --to-destination 192.168.1.1 (also se

RE: open ports with iptables

2001-06-22 Thread Sebastiaan
> > > 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