Re: [nottingham] Routing et al

From: Simon Amor (simon@shoe.bocks.com)
Date: Fri 08 Jun 2001 - 18:53:33 BST


Simon Amor wrote:
> Sounds like he needs to setup IP masquerading on the Linux gateway
> using ipchains. Add something like the following section to rc.local
>
> echo -n "Setting up IP Masquerading..."
> echo 1 > /proc/sys/net/ipv4/ip_forward
>
> /sbin/ipchains -P forward DENY
> /sbin/ipchains -F forward
> /sbin/ipchains -A forward -s 192.168.1.0/24 -d ! 192.168.1.0/24 -j MASQ

Of course, I meant 192.168.0.0/24 not 192.168.1.0/24 for the specific
network given in the original email.

  Simon

-- 
Simon Amor   simon@shoe.bocks.com
ICQ:419119   http://shoe.bocks.com/
--------------------------------------------------------------------
http://www.lug.org.uk                   http://www.linuxportal.co.uk
http://www.linuxjob.co.uk               http://www.linuxshop.co.uk
--------------------------------------------------------------------



This archive was generated by hypermail 2.1.3 : Thu 22 Nov 2001 - 13:13:49 GMT