0

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?

  • `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 – diya Nov 21 '22 at 16:12

0 Answers0