debian配置iptables
使用上一切按正常iptables进行
# Generated by iptables-save v1.4.21 on Wed Nov 11 01:17:02 2015 *filter :INPUT ACCEPT [983:61276] :FORWARD ACCEPT [28:1820] :OUTPUT ACCEPT [956:60178] COMMIT # Completed on Wed Nov 11 01:17:02 2015 # Generated by iptables-save v1.4.21 on Wed Nov 11 01:17:02 2015 *nat :PREROUTING ACCEPT [1:32] :INPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] -A POSTROUTING -s 10.1.1.0/24 -o eth1 -j MASQUERADE COMMIT # Completed on Wed Nov 11 01:17:02 2015
重启 iptables-restore < /etc/iptables.rule
开机启动 上面加入到 /etc/rc.local
chmod +x /etc/rc.local
本文出自 蓝鹰博客,转载时请注明出处及相应链接。
本文永久链接: http://www.lanyingblog.com/blog/2298.html