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

Re: Modem Gateway



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 24 Jul 2002 12:52, Crispin Wellington wrote:
> Make sure that iptables nat command is run.
>
> iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
>
> Also make sure ip forwarding is switched on.
>
> echo "1" > /proc/sys/net/ipv4/ip_forward

  To make ip forwarding always be set like that on boot up, go to the 
/etc/network/options file and make sure that the following line is present:

ip_forward=yes

  To make the ip tables nat command always be set like that on boot up, run 
the above iptables command (and any other iptables commands to get the 
firewall configured how you want it), then run as root the following:

% /etc/init.d/iptables save active

  It may take a few tries to get the firewall rules correct.

  Geoff Crompton
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9Piplx8QbdaYmRS8RAh9jAJ9vx6hjrj5bL87IFaIgwZXtAzmL9gCfetR4
79t2xM0GR3f3qZR+LhfyhZE=
=X7YC
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: