Allow Docker DNS from 192.168 networks (#5465)
* Allow Docker DNS from 192.168 networks * Only add Docker DNS rule when UFW is active
This commit is contained in:
@@ -8,6 +8,7 @@ sudo ufw allow 53317/tcp
|
||||
|
||||
# Allow Docker containers to use DNS on host
|
||||
sudo ufw allow in proto udp from 172.16.0.0/12 to 172.17.0.1 port 53 comment 'allow-docker-dns'
|
||||
sudo ufw allow in proto udp from 192.168.0.0/16 to 172.17.0.1 port 53 comment 'allow-docker-dns'
|
||||
|
||||
# Turn on the firewall
|
||||
sudo ufw --force enable
|
||||
|
||||
Reference in New Issue
Block a user