Port not open

Post Reply
gabirch
Junior Member
Posts: 2
Joined: 05 Sep 2019, 08:16

Port not open

Post 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!
BallyBasic79
Junior Member
Posts: 80
Joined: 22 Aug 2019, 21:43

Re: Port not open

Post 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
gabirch
Junior Member
Posts: 2
Joined: 05 Sep 2019, 08:16

Re: Port not open

Post 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.
BallyBasic79
Junior Member
Posts: 80
Joined: 22 Aug 2019, 21:43

Re: Port not open

Post by BallyBasic79 »

Seems from afar like the service you are expecting at 5200 is not running (there.)
Post Reply