We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
我们的要将端口80重定向到同一服务器中的端口8080。这可以通过PREROUTING链中添加规则来完成。因此,运行以下命令。
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -t nat -L -n -v
iptables-save
There was an error while loading. Please reload this page.