iptables: How to open ports?
H--I am trying to open a port 1129 on one of my servers. I believe I am half there?
This is the first time I have ever worked with iptables and I think I have done something right. I also would like to know the command to remove the port if needed:
This is my output as now
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- localhost anywhere tcp dpt:1129
ACCEPT tcp -- anywhere anywhere tcp dpt:1129
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
I added those by running:
iptables -A INPUT -p tcp -s 127.0.0.1 --dport 1129 -j ACCEPT
and
iptables -A INPUT -p tcp -m tcp --dport 1129 -j ACCEPT
Any help would be great.
Thanks,
Amy & Michael