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

Re: ipfwadm




I have a two PC network. One box is connected to the ISP via
diald/ppp. The second box talks to the first one through an ethernet.

I left the diald setup on the box with the modem unchanged. Having
recompiled the kernel, I execute the script below (my internal lan is
192.168.1, the ethernet card on the box connected to is 192.168.1.1).

Now I can connect to the outside world from my other box, but I seem to
come from my main box (the one I have an IP number for).

Is this useful? Let me know.

Giuseppe

#!/bin/sh
#
# Set up IP forwarding/masquerading for ds3-net.
#
# Forward packets from ds3-net, masquerading as deselby.xs4all.nl.
ipfwadm -F -a masquerade -S 192.168.1.0/24 -D 0.0.0.0/0 -V 192.168.1.1
ipfwadm -F -p deny

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: