I am trying to forward port 443 to a different server using iptables. What can explain this not working? I've enabled net.ipv4.ip_forward.
This is the code I use. I have no other iptables rules:
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j DNAT --to 1.2.3.4:443 iptables -A FORWARD -p tcp -d 1.2.3.4 --dport 443 -j ACCEPT