Essentially, copy the rules in /etc/sysconfig/iptables, or wherever your startup iptable rules are kept, and copy the rules for port 80, and change it to port 8080.
#iptables -A INPUT -p tcp --dport 8080 -m state --state NEW -j ACCEPT
#iptables -A OUTPUT -p tcp --dport 8080 -m state --state NEW -j ACCEPT
You might need to add --sport 1024:65535 to those rules, I don't remember.
|