Re: Setting up Masquerading on Debian machines.
Rob Browning wrote:
> I set up the host (the one actually connected to the internet via ppp)
> with the following network related commands (in addition to a ppp
> defaultroute):
>
> ifconfig lo 127.0.0.1
> route -add net 127.0.0.0 dev lo
>
> ifconfig eth0 192.168.1.1 netmask 255.255.255.0
> route -add net 192.168.1.0 dev eth0
>
> ipfwadm -F -p deny
> ipfwadm -F -a accept -m -S 192.168.1.0/24 -D 0.0.0.0/0 -W eth0
It works for me with the lines
ipfwadm -F -a masq -S 192.168.1.0/24 -D 0.0.0.0/0
ipfwadm -F -p deny
(with "masq" instead of "accept" and without the -W option).
Thanks,
Peter
--
Peter Tobias EMail:
Fachhochschule Ostfriesland tobias@et-inf.fho-emden.de
Fachbereich Elektrotechnik und Informatik tobias@debian.org
Constantiaplatz 4, 26723 Emden, Germany tobias@linux.de
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com
Reply to: