/etc/sysconfig/network
-------------------------------------------------------------------
NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME=ns
GATEWAY=211.227.115.142
GATEWAYDEV=eth0
-------------------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth0
-------------------------------------------------------------------
BOOTPROTO=static
BROADCAST=211.227.115.0
IPADDR=211.227.115.130
NETMASK=255.255.255.0
NETWORK=211.227.115.0
ONBOOT=yes
-------------------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth1
-------------------------------------------------------------------
DEVICE=eth1
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
-------------------------------------------------------------------
/etc/rc.d/rc.local
-------------------------------------------------------------------
insmod ip_tables
insmod iptable_filter
insmod ip_conntrack
insmod ipt_state
insmod ipt_limit
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 211.227.115.130
echo "1" > /proc/sys/net/ipv4/ip_forward
-------------------------------------------------------------------