Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with ports
#3

Firstly, you may want to find the file containing your ruleset - something like /etc/sysconfig/iptables (for RPM-based distros).

 

Then edit that file and put your entries in there, something like:



Code:
-A INPUT -p tcp -m tcp --dport 14534 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8767 -j ACCEPT




 

My guess is that the "service iptables restart" is restarting IPtables, re-reading rules from that file, flushing out dynamic rules you've just added.

 

To view the current rules, use:



Code:
iptables -L -n | more




(the -n = "do NOT resolve IPs to hostnames")

- may be an idea to spam that output here first, just to show the current rules - curious to know if you've got any OUTPUT rules that are blocking server traffic back to the client.

 

And as Anyweb says: what distro are you using?

Reply


Messages In This Thread
Problem with ports - by miskec - 2009-05-18, 09:30 PM
Problem with ports - by anyweb - 2009-05-20, 03:55 AM
Problem with ports - by Dungeon-Dave - 2009-05-27, 05:07 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)