Dave Winer: Mapping port 80 to 1339 on ubuntu
Discovered: Feb 8, 2023. 11:35 Dave Winer: Mapping port 80 to 1339 on ubuntu
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 1339
sudo iptables -t nat -A OUTPUT -p tcp -o lo --dport 80 -j REDIRECT --to-ports 1339