heya
add a -b option to the second ipchains line to allow it to masq in both directions. I think that is the reason why.
Cheers,
Steve
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Adrian
Sent: Saturday, 31 March 2001 10:36 PM
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
