Page 1 of 1

Port not open

Posted: 05 Sep 2019, 08:33
by gabirch
Hello,
Tried to open a specific port (5200) for an application API. Included the port in the allowed list in csf (csf.conf) and still the port is listed as closed. Looked everywhere for information, even tried to add it to public ports via firewalld, still no success (CentOS 7, cpHulk disabled etc.).
"lsof -i" doesn't show it as listening, neither "netstat -na |grep 5200" shows it.
"iptables-save | grep 5200" results in:
-A INPUT ! -i lo -p tcp -m conntrack --ctstate NEW -m tcp --dport 5200 -j ACCEPT
-A INPUT ! -i lo -p udp -m conntrack --ctstate NEW -m udp --dport 5200 -j ACCEPT
-A OUTPUT ! -o lo -p tcp -m conntrack --ctstate NEW -m tcp --dport 5200 -j ACCEPT
-A OUTPUT ! -o lo -p udp -m conntrack --ctstate NEW -m udp --dport 5200 -j ACCEPT
Any ideas on how to make it public?
Thank you!

Re: Port not open

Posted: 05 Sep 2019, 18:47
by BallyBasic79
Hi! This may be a silly question, but important for troubleshooting.
If CSF is not running, is something found at 5200? Is something already confirmed to be running there?

I could be wrong about this, but if it is found in iptables and not in lsof or netstat, doesn't that indicate that the firewall port is open but there's nothing there?

HTHt

Re: Port not open

Posted: 06 Sep 2019, 06:35
by gabirch
Hello BallyBasic79,

I also tried this. If I turn off CSF I still get the same result.
No, for the moment there is nothing there yet.

Re: Port not open

Posted: 06 Sep 2019, 07:23
by BallyBasic79
Seems from afar like the service you are expecting at 5200 is not running (there.)