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中

猜你喜欢

转载自shanming0088-163-com.iteye.com/blog/2193970
今日推荐