On Mon, 2002-11-18 at 21:01, Periyasamy, Raj wrote:
> Hello List,
> I am running Redhat 7.3.
> How do I enable ID masquerading with ip tables so that all my clients in
> the network can use the Linux server as a gateway for Internet access. I
> got the following two commands from the  "Red Hat Linux Networking and
> System Administration" book by Terry Collings. However, these commands
> don't seem to work,
> 
> Iptables -P forward DENY
> Iptables -A forward -s 192.168.0.0/24 -j MASQ -d 0.0.0.0/0
> 
> Thank youin advance for all help.

Linux is case sensitive. Iptables is not the same as iptables

Try...

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -P FORWARD DROP
iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE

service iptables save
chkconfig --level 2345 iptables on
chkconfig --level 2345 ipchains off

Then read this tutorial to put some protection into the connection.
http://www.netfilter.org/documentation/tutorials/blueflux/

Regards,
Peter



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to