I configured a new Ubuntu Installation and set up the firewall. All incoming was denied and all outgoing was denied as well(with exception for port 8080, as I am behind a proxy). I then tried an online port scan and found that my ssh port(22) was open. I double checked but the problem remained. I specifically denied port 22 in the firewall, but the port is still shown as open(all other ports are closed). What is the reason behind this?
Output of netstat -tlpn
is
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp6 0 0 ::1:631 :::* LISTEN -
As the
netstat -tlpn
output indicates you don't have port 22 is inLISTEN
state that is the port is closed.As for the Online scan results, this should be the results from scanning the public IP interface of your router (could be the proxy in your case).