当前位置:   article > 正文

【centos】将80端口的请求转发至8080端口(永久生效)_centos 80端口请求转发到8080

centos 80端口请求转发到8080
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
yum install iptables-services #安装
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
service iptables save
systemctl restart iptables.service
systemctl enable iptables.service
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/726340
推荐阅读
相关标签
  

闽ICP备14008679号