View Single Post

  #4 (permalink)  
Old 08-19-2007, 10:47 AM
scytale scytale is offline
Junior Member
User
 
Join Date: Aug 2007
Location: Somewhere in that Upper Midwest Area.
My distro: Ubuntu/openSUSE/Sabayon
Posts: 8
Rep Power: 0
scytale is on a distinguished road
Default

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.
Reply With Quote