Andrew Del Vecchio wrote: > I got nothing: > > Chain PREROUTING (policy ACCEPT) > target prot opt source destination
This works well for me:
---
iptables -t nat -F PREROUTING
iptables -t nat -A PREROUTING -p TCP -i eth0 --dport 443 -j REDIRECT
--to-ports 9001
---
iptables -L -nv -t nat
Chain PREROUTING (policy ACCEPT 5080K packets, 266M bytes)
pkts bytes target prot opt in out source destination
6543 585K REDIRECT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0
tcp dpt:443 redir ports 9001

