port 80 still opened still uff set to deny incoming
Ufw was set to deny all incoming and only allow ssh, however it seems port 80 still open, why
ufw status verbose
Logging: on (medium)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip
To Action From
-- ------ ----
22/tcp ALLOW IN Anywhere
22/tcp (v6) ALLOW IN Anywhere (v6)
from remote nc -zv <ip address=""> 80
Connection to <ip address=""> port 80 [tcp/http] succeeded!</ip></ip>
sudo systemctl enable ufw
sudo systemctl start ufw
ufw is running.
Tried to delete allow ssh, it worked, can't connect to ssh from remote but still port 80 opened.
I found the answer:
If you are running Docker, by default Docker directly manipulates iptables. Any UFW rules that you specify do not apply to Docker containers."
And I'm using docker container