[plug] IP Masquerade - HELP!

Kai vk6ksj at siwa.com.au
Tue Sep 12 17:11:20 WST 2000


Berny,

Even though my Linux server/gateway is running 5.2 I have found that this
works: (from the NET3-4HOWTO):

Masquerading with IPCHAINS

This is similar to using IPFWADM but the command structure has changed:

             # Network route for ethernet
             route add -net 192.168.1.0 netmask 255.255.255.0 eth0
             #
             # Default route to the rest of the internet.
             route add default ppp0
             #
             # Cause all hosts on the 192.168.1/24 network to be
masqueraded.
             ipchains -A forward -s 192.168.1.0/24 -j MASQ

Of course, you'll need to make sure you put in your private IP if it's
different to the one shown here.

/Kai

----- Original Message -----
From: "Bernard Blackham" <dagobah at mad.scientist.com>
To: "John Breen" <jbreen at wn.com.au>
Cc: <plug at plug.linux.org.au>
Sent: Tuesday, September 12, 2000 3:59 PM
Subject: Re: [plug] IP Masquerade - HELP!


> John,
>
> I'm not definite if this is the problem, but it may help to specify which
> interface to masquerade on:
>
> /sbin/ipchains -A forward -i ppp0 -s 192.168.0.0/24 -j MASQ
>                           ^^^^^^^
>
> That's what I currently have in my setup and it works fine.
>
> Hope this helps,
>
> Bernard.
>
> --
>  Bernard Blackham
>  dagobah at mad.scientist.com
>
>
>
>
>




More information about the plug mailing list