UFW and Docker not working together


(Michael) #1

I am running a docker installation of Discourse in Ubuntu 16.04. UFW version is 0.35. Docker version is 18.06. Here’s the output of sudo ufw status verbose:

Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22                         ALLOW IN    Anywhere
80                         ALLOW IN    Anywhere
443                        ALLOW IN    Anywhere
Anywhere                   DENY IN     ***.***.***.***
22 (v6)                    ALLOW IN    Anywhere (v6)
80 (v6)                    ALLOW IN    Anywhere (v6)
443 (v6)                   ALLOW IN    Anywhere (v6)

I tried to block an IP, but it still can access the site. Blocking all ports also has no effect. Also I was (still is) unable to block IP using “Screened IPs” admin section.

Please help.


(Sam Saffron) #2

My guess is that somehow you blocked internal networking with the firewall