[plug] Dumb questino on networking

Gavin Tweedie tweedie at nw.com.au
Wed Jul 8 12:31:30 WST 1998


also make sure you have ip forwarding and masquarading in your kernel...
:)

Gavin

On Wed, 8 Jul 1998, Mike Holland wrote:

> On Tue, 7 Jul 1998, John Darrington wrote:
> 
> > As it is so trivial, I know that no-one will mind answering this.
> 
> John, it _is_ trivial.
> 
> > Kernel routing table
> > Destination     Gateway         Genmask         Flags MSS    Window Use Iface
> > 203.7.224.8     *               255.255.255.255 UH    1500   0        0 ppp0
> > 192.168.0.0     *               255.255.255.0   U     1500   0        1 eth0
> 
> The '192.168.0' isnt a 'real' network address. You cant use it on the net.
> But masquerading will make your whole network look like one machine.
> 
> Add to rc.local:
> 
> # add modules for extra protocols:
> depmod -a
> modprobe ip_masq_ftp
> modprobe ip_masq_raudio
> # Set forwarding policy. Default is deny. Masquerade for local ethernet.
> ipfwadm -F -f
> ipfwadm -F -p deny
> ipfwadm -F -a masquerade -W ppp0 -S 192.168.0.0/24 -D 0.0.0.0/0
> 
> 
> SEE ALSO
> - the IP-Masquerade mini-howto
> - ipfwadm(8)
> - /proc/net/ip_forward, /proc/net/ip_masq_app
> 
> Mike Holland <mike at golden.wattle.id.au>            Perth, Australia.
> You can pick your friends, and you can pick your nose, but you can't
> pick your friend's nose.
> 
> PGP ID 8B3D0765. FP: 30 07 BF 6C 9B 45 E8 C8  EA 30 4F 01 DC A2 91 88
> 
> 



More information about the plug mailing list