- Configure 2 NIC by exec 'system-config-network'.
netmask: 255.255.255.0
eth1 : static IP / DHCP from ISP
2. configure the iptables to enable IP Masquerading and share your internet connection.
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/etc/init.d/iptables save
3. Enable ip forward
vi /etc/rc.local
echo 1 > /proc/sys/net/ipv4/ip_forward
No comments:
Post a Comment