On Sun, Feb 17, 2002 at 12:37:08AM -0500, Rick Pasotto wrote:
> How do I port forward with iptables? With ipchains the command was:
> 
> ipmasqadm portfw -a -P tcp -L $extip $port -R $intip $port
> 

        What I have in my firewall rules script built with Firewall
Builder 1.0.0 (fwbuilder) to do port forwarding is:

iptables -t nat -A PREROUTING -p tcp -s <SRC_IP> -d <EXT_IP>
--destination-port <PORT> -j DNAT --to-destination <INT_IP>:<PORT>

        This works very good... In fact all my machines are behind the
firewall and only have what ports are forward'd in available...

        Jeremy

Reply via email to