[AWS] EC2, 80-8080 redirect
$ sudo sysctl -w net.ipv4.ip_forward=1
$ sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
$ sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8443
Reading time ~1 minute
$ sudo sysctl -w net.ipv4.ip_forward=1
$ sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
$ sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8443
DB Browser for SQLite 소개 Continue reading