80--8080

Posted fengdeng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了80--8080相关的知识,希望对你有一定的参考价值。


# 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的主要内容,如果未能解决你的问题,请参考以下文章

网站http协议 端口非80 8080 443,浏览器报错ERR_UNSAFE_PORT

网站http协议 端口非80 8080 443,浏览器报错ERR_UNSAFE_PORT

网站http协议 端口非80 8080 443,浏览器报错ERR_UNSAFE_PORT

路由器要怎么设置才能使外网访问80;8080端口

一些iptables配置

学点Docker搞事情3-tomcat的进阶使用