标签:generated tab rect lte filter cep eject tput ble
# Generated by iptables-save v1.4.21 on Wed Jan 2 23:56:03 2019
*nat
:PREROUTING ACCEPT [1401:116147]
:INPUT ACCEPT [9:500]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
-A PREROUTING -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8443
COMMIT
# Completed on Wed Jan 2 23:56:03 2019
# Generated by iptables-save v1.4.21 on Wed Jan 2 23:56:03 2019
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [219:34220]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-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 8080 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8443 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Wed Jan 2 23:56:03 2019
标签:generated tab rect lte filter cep eject tput ble
原文地址:https://www.cnblogs.com/fengdeng/p/10213636.html