Port forwarding from 80/443 to 3000
List
iptables -t nat -nvL
List
sudo cat
/etc/sysconfig/iptables
Insert
sudo iptables -t nat
-I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3000
sudo iptables -t nat
-I PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 3000
Save
sudo /sbin/service
iptables save
delete
sudo iptables -t nat
-D PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3000
No comments:
Post a Comment