Score:0

Ufw not showing open port

kz flag

I'm new to linux and I use ufw to open / close ports on my Debian 11 VPS.

If I use ufw stauts verbose I get the following list of open ports:

To                         Action      From
--                         ------      ----
25565                      ALLOW IN    Anywhere                  
21                         ALLOW IN    Anywhere                  
22                         ALLOW IN    Anywhere                  
8123                       ALLOW IN    Anywhere                  
25565 (v6)                 ALLOW IN    Anywhere (v6)             
21 (v6)                    ALLOW IN    Anywhere (v6)             
22 (v6)                    ALLOW IN    Anywhere (v6)             
8123 (v6)                  ALLOW IN    Anywhere (v6)

When a friend of mine executed nmap -p- server_ip -sV -Pn he could see the SMTP port (25) being open as well. Ufw is not showing that the SMTP port is open.

All of the ports listed above should be open 21 / 22 for SFTP and SSH 25565 for a minecraft server 8123 for a plugin on the server which runs a website (map of the server)

Any ideas? Is there something I understood wrong maybe? Maybe something to do with that the server is a VPS?

diya avatar
la flag
`ufw` is a user friendly front-end for firewall management. Like many such tools it is not (completely) aware of the actual live rule set in your firewall, it only displays whatever is configured in/with `ufw`. When firewall rules get inserted directly, by-passing the ufw abstraction layer , they don't show. Think of a docker container exposing a port and other scenarios. Showing the raw firewall configuration may help. i.e. `sudo iptables-save` and related commands
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.