Aug 01
#
# Turning IP Forwarding on
#
echo 1>/proc/sys/net/ipv4/ip_forward ; ha 0
$ vi /etc/sysctl.conf ; net.ipv4.ip_forward = 1
#
# Allow masquerading from LAN PC
# Save settings for next boot
#
$ iptables -t nat -A POSTROUTING -o eth1 -s 192.168.30.20 -j MASQUERADE
$ iptables-save > /etc/sysconfig/iptables
Leave a Reply
You must be logged in to post a comment.
Recent Comments