I'm trying to redirect some incoming TCP traffic on port 443 to port 999 with iptables in an Ubuntu VM.
I am using
sudo iptables -t nat -A PREROUTING -p tcp --destination-port 443 -j REDIRECT --to-ports 999, but when I enter it it does not show up with an
iptables -L, nor does it actually work.
Obviously I'm doing something wrong, but I'm not sure what. Any help would be appreciated.