Need updated Masquerade info.

john_at_wexfordpress.com
Date: 02/25/05


Date: 25 Feb 2005 14:20:36 -0800

The Masquerade Simple Howto contains the following line:

$> iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 123.12.23.43

Two questions:

#1: The my version of iptables 1.2.11 doesn't like --to. What name
should I use instead?

#2: How do I determine exactly what address is used after this option?
I am on a DHCPCD connection. Is it the address of the remote machine or
the address assigned to me by the remote machine? Or should I just use
the word MASQUERADE as in a dial-up connection?

I had my masquerade working once but now it doesn't work any more.

My ISP is Adelphia, if that helps.

John Culleton



Relevant Pages

  • Re: iptables not showing in -L
    ... > Jim wrote: ... >> MASQUERADE ... iptables -t nat -L, I saw them listed for every time I tried. ... I want to forward these packets. ...
    (comp.os.linux.networking)
  • Another wont work IP MASQ
    ... # The location of the iptables and kernel module programs ... echo " External Interface: $EXTIF" ... echo " - Verifying that all kernel modules are ok" ... echo " Enabling SNAT (MASQUERADE) functionality on $EXTIF" ...
    (comp.os.linux.networking)
  • Re: gateway newbie questions
    ... Above two lines flushes all existing rules in iptables ... > MASQUERADE ... This one masquerades the requests going out to internet through interface ...
    (RedHat)
  • Re: squid server problem
    ... I did not use iptables for blocking any ports. ... echo " External Interface: $EXTIF" ... echo " - Verifying that all kernel modules are ok" ... echo " Enabling SNAT (MASQUERADE) functionality on $EXTIF" ...
    (comp.os.linux.networking)
  • Re: squid server problem
    ... I did not use iptables for blocking any ports. ... echo " External Interface: $EXTIF" ... echo " - Verifying that all kernel modules are ok" ... echo " Enabling SNAT (MASQUERADE) functionality on $EXTIF" ...
    (comp.os.linux.networking)