I would also run

ipchains -F

to flush all the old rules first before you put anything else in.

other than that just make sure your route is correct and all your interfaces
are working.

Regards
Bernhard

P.S. You do not needs -b like Steve suggested. You may want to add
permissions for returning connections though:    /sbin/ipchains -A input -j
ACCEPT ! -y -p tcp




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Adrian
Sent: Saturday, 31 March 2001 22:36
To: [ SLUG ]
Subject: [SLUG] Gateway/Firewall on Redhat 6.2


I'm having trouble setting up my Gateway/Firewall.  It's been a long time
since I have done this.  I entered the following into /etc/rc.d/rc.local

ipchains -P forward DENY
ipchains -A forward -j MASQ -s 192.168.0.0/24 -d 0.0.0.0/0

echo 1 > /proc/sys/net/ipv4/ip_forward

also in /etc/sysconfig/network

NETWORKING=yes
HOSTNAME="firegate.teviot.com.au"
GATEWAY="192.168.0.1"
GATEWAYDEV="eth0"
FORWARD_IPV4="yes"

The machine doesn't MASQ to or from the internet to intranet.

What am I doing wrong?

Regards
Adrian

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

                Phone:  +61 (0)4 1820 8910
            Facsimile:  +61 (0)4 0720 5410
                Email:  [EMAIL PROTECTED]
                Email:  [EMAIL PROTECTED]


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to