centos双网卡转发上网

简单的一个配置,mark一下,对iptables不太熟悉,仅作笔记使用!

iptables -F

iptables -P INPUT ACCEPT

iptables -P FORWARD ACCEPT

iptables -t nat -A POSTROUTING -O ppp0 -j MASQUERADE

说明:ppp0为实际的上网网卡名称

可以将以上配置放到系统启动项中例如:/etc/rc.loacl中

你可能感兴趣的:(centos6.6)