I have a 12.04.4 server, and I have enabled ufw, and have tried to block port 8080. However, it is still open.
$ sudo ufw deny 8080
Rule added
Rule added (v6)
$ sudo ufw status numbered
Status: active
To Action From
-- ------ ----
[ 1] 22 ALLOW IN Anywhere
[ 2] 80 ALLOW IN Anywhere
[ 3] 8080 DENY IN Anywhere
[ 4] 22 ALLOW IN Anywhere (v6)
[ 5] 80 ALLOW IN Anywhere (v6)
[ 6] 8080 DENY IN Anywhere (v6)
Thoughts? I can still access the website that is on 8080. I have rebooted the system several times. The IP address is handled via static assignment, but I can't find anything that would indicate that that is the problem.
The service I'm trying to block is on a docker instance, however this question did not help.
sudo ufw delete deny 8080and thensudo ufw deny proto tcp from any to port 8080.sudo ufw reload. If that doesn't work it's either a weird bug/qwerk or maybe the order of your rules confuses it. – Seth Apr 24 '14 at 17:12