2009-05-27, 05:07 PM
(This post was last modified: 2009-05-27, 05:08 PM by Dungeon-Dave.)
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?