Demand of assistance about ports management

Posted on

Hello world,

I authorized the port 9793 with firewalld on a server. But when i check the ports on listening it does not appear. Even i test the newly opened port with telnet or nmap, it does not work. Can you know why ?

[root@PWCSWITCHP01HF ~]$ firewall-cmd --list-ports
22/tcp 1521/tcp 5500/tcp 5501/tcp 5502/tcp 5503/tcp 5504/tcp 5505/tcp 9793/tcp 18031/tcp 18032/tcp 18033/tcp 18034/tcp
[root@PWCSWITCHP01HF ~]$
[root@PWCSWITCHP01HF ~]$ hostname -i; netstat -tulpen | grep -i listen
10.173.181.57 192.168.122.1
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 25241 1/systemd
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 0 39416 2123/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 33979 1168/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 0 33784 1170/cupsd
tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN 1014 5547627 1443388/sshd: elfel
tcp 0 0 127.0.0.1:6012 0.0.0.0:* LISTEN 1014 5579621 1473468/sshd: elfel
tcp 0 0 0.0.0.0:5501 0.0.0.0:* LISTEN 1012 5038743 1308316/NDC_SERV
tcp6 0 0 :::111 :::* LISTEN 0 25243 1/systemd
tcp6 0 0 :::22 :::* LISTEN 0 33981 1168/sshd
tcp6 0 0 ::1:631 :::* LISTEN 0 33783 1170/cupsd

[root@PWCSWITCHP01HF ~]$ telnet localhost 9793
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1...
telnet: connect to address ::1: Cannot assign requested address
[root@PWCSWITCHP01HF ~]$ telnet localhost 631
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
^CConnection closed by foreign host.

[root@PWCSWITCHP01HF ~]$ nmap localhost -Pn -p 9793
Starting Nmap 7.92 ( https://nmap.org ) at 2024-04-26 13:14 +01
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00013s latency).
Other addresses for localhost (not scanned): ::1

PORT STATE SERVICE
9793/tcp closed unknown

Nmap done: 1 IP address (1 host up) scanned in 0.14 seconds
[root@PWCSWITCHP01HF ~]$
[root@PWCSWITCHP01HF ~]$ nmap localhost -Pn -p 631
Starting Nmap 7.92 ( https://nmap.org ) at 2024-04-26 13:15 +01
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00013s latency).
Other addresses for localhost (not scanned): ::1

PORT STATE SERVICE
631/tcp open ipp

Nmap done: 1 IP address (1 host up) scanned in 0.10 seconds

Thanks in advance.
Best regards,

Responses