1

Cant forward port 443 to 8443 without allowing 8443 on ufw

view story
linux-howto

http://serverfault.com – I configured port forwarding through iptables and ufw. But there is something I do not understand, I just cant get iptables to forward port 443 to 8443 without allowing port 8443 on UFW. I want port 443 to forward to port 8443 but I also want port 8443 to be disallowed from outside my network. In resume, I can only forward port 443 to 8443 if I fully allow both ports 443 and 8443 on UFW. This is the only rule I have in before.rules: -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8443 This is my iptables routing config (really simple): pkts bytes target prot opt in (HowTos)