Iptables防火墙NAT地址转换
Posted Lambeto
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Iptables防火墙NAT地址转换相关的知识,希望对你有一定的参考价值。
# Generated by iptables-save v1.4.7 on Thu May 12 17:31:40 2016 *nat :OUTPUT ACCEPT [0:0] :PREROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j SNAT --to 192.168.1.148 COMMIT # Completed on Thu May 12 17:31:40 2016 # Generated by iptables-save v1.4.7 on Thu May 12 17:31:40 2016 *mangle :PREROUTING ACCEPT [0:0] :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] COMMIT # Completed on Thu May 12 17:31:40 2016 # Generated by iptables-save v1.4.7 on Thu May 12 17:31:40 2016 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT COMMIT # Completed on Thu May 12 17:31:40 2016
以上是关于Iptables防火墙NAT地址转换的主要内容,如果未能解决你的问题,请参考以下文章