我正在尝试在Ubuntu 12.04 LTS服务器上配置iptables以将端口443转发到8443。
但是当我运行此命令时:
sudo iptables -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443
我收到以下错误:
iptables: No chain/target/match by that name.
我的iptables当前配置:
$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:https
DROP tcp -- anywhere anywhere tcp dpt:http
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
我想念什么或做错什么?