IP MASQ Setup

Albrecht Dreß yellowdog-general@lists.terrasoftsolutions.com
Thu Jan 2 11:25:01 2003


Try the following in rc.local (which works for my network), but be sure to 
replace the (isdn) device ippp0 by ppp0:

~~~~~ snip here ~~~~~
modprobe iptable_nat
/sbin/iptables -t nat -A POSTROUTING -o ippp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
~~~~~ snip here ~~~~~

For further information, see the "Linux 2.4 NAT Howto".

Hth,

	Albrecht.

Am 02.01.03 02:30:42 schrieb(en) James Applebaum:
> Trying to setup my Linux server to be the dial out gateway for my home 
> network.
> I have the server setup and it successfully dials out with: ifup ppp0  
> (see below)
> Can't seem to get  IP Masq to work.... I have included # ifconfig, 
> rc.local, dhcpd.conf, # dmesg|less
> Any help would be appreciated.
[cfg files snipped]

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
        Phone (+49) 228 6199571  -  mailto:albrecht.dress@arcor.de
_________________________________________________________________________