I tried that too, but the client always shows "server unexpectedly closed network connection".TrevorH wrote:Amending that file does nothing unless you restart the iptables service to pick it up. Be aware that doing that while people are using it will be service affecting. You can also run iptables -A FORWARD -p tcp -m tcp --dport 5003 -j ACCEPT to amend the running ruleset without restarting the service.
Whenever you amend iptables rules it is best to use the iptables command directly to affect the running rules. That way if you got it wrong and lock everyone out then you can reboot the machine or restart the service and it will come back up using the old rules from /etc/sysconfig/iptables. Once you've verified that the manually added rules work and do what you expect then you can run service iptables save to save the running rules to /etc/sysconfig/iptables so that they persist over reboots.