/etc/systables/iptables has the following line
-A INPUT -p tcp -m tcp --dport 4000 -j ACCEPT
I tried
sudo service iptables save
sudo service iptables restart
the above did not open the port when I try from the browser on remote machine on the same network. however, netstat shows the port:
$ netstat -ano|grep 4000
tcp 0 0 127.0.0.1:4000 127.0.0.1:33956 FIN_WAIT2 timewait (24.83/0/0)
tcp 1 0 127.0.0.1:33956 127.0.0.1:4000 CLOSE_WAIT keepalive (4.78/0/0)
tcp 1 0 127.0.0.1:33930 127.0.0.1:4000 CLOSE_WAIT keepalive (8.95/0/0)
tcp 1 0 127.0.0.1:33934 127.0.0.1:4000 CLOSE_WAIT keepalive (8.96/0/0)
tcp 0 0 127.0.0.1:4000 127.0.0.1:33930 FIN_WAIT2 timewait (23.99/0/0)
tcp 0 0 127.0.0.1:4000 127.0.0.1:33934 FIN_WAIT2 timewait (24.00/0/0)
tcp 0 0 127.0.0.1:4000 127.0.0.1:33946 FIN_WAIT2 timewait (24.70/0/0)
tcp 1 0 127.0.0.1:33946 127.0.0.1:4000 CLOSE_WAIT keepalive (3.44/0/0)
Port 3000 is already open, but it is not even in /etc/sysconfig/iptables.
Where else would it be? How can I repeat the same steps to open 4000?
$ netstat -ano|grep 3000
tcp 0 0 0.0.0.0:3000 0.0.0.0:* LISTEN off (0.00/0/0)
tcp 0 0 xx.xx.xx.xx:3000 xxx.xx.xxx.xxx:60784 ESTABLISHED off (0.00/0/0)
tcp 0 0 xx.xx.xx.xxx:3000 xxx.xx.xxx.147:59742 ESTABLISHED off (0.00/0/0)