Do:
service iptables start
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables-save > /etc/sysconfig/iptables
service iptables restart
To open port 80, add the following to the *filter section before COMMIT:
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
then service iptables restart
No comments:
Post a Comment