/ect/sysctl.conf

net.ipv4.ip_forward = 1

 

#iptables -t mangle -I PREROUTING -p tcp --dport 80 -j MARK --set-mark 8888

#iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080

#iptables -I INPUT -p tcp --dport 8080 -m mark --mark 8888 -j ACCEPT

#service iptables save

#service iptables restart

相关文章:

  • 2022-12-23
  • 2022-01-23
  • 2021-05-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2021-12-05
  • 2022-12-23
猜你喜欢
  • 2021-12-03
  • 2021-11-18
  • 2021-07-31
  • 2022-12-23
  • 2021-12-22
  • 2021-07-06
相关资源
相似解决方案