码迷,mamicode.com
首页 > 其他好文 > 详细

80--8080

时间:2019-01-03 14:07:07      阅读:206      评论:0      收藏:0      [点我收藏+]

标签: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

80--8080

标签:generated   tab   rect   lte   filter   cep   eject   tput   ble   

原文地址:https://www.cnblogs.com/fengdeng/p/10213636.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!