【发布时间】:2014-04-23 21:56:02
【问题描述】:
我已经尝试了几个小时来完成这项简单的工作,但它并不像你想象的那么简单。
我想将对 443 和 80 端口的每个请求重定向到网络服务器,在我的示例中为 http://127.0.0.1:80
80 端口工作没有任何问题,但 443 端口试了我很多时间......
我猜你已经尝试过运行以下命令:
iptables -t nat -A OUTPUT -p tcp -m tcp --dport 443 -j DNAT --to-destination 127.0.0.1:80
但这是错误的,因为 443 端口不能重定向到 443 以外的其他端口。
【问题讨论】:
标签: redirect web https firewall iptables