Update firewall.sh for other docker bridge networks (#679)

Allow 172.16/12 prefix IPs for docker DNS as bridge networks will create another interface than docker0 within this CIDR prefix.
This commit is contained in:
Samuel Péchèr 2025-08-22 17:05:17 +01:00 committed by GitHub
parent 8074694ac8
commit e7ea45a802
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ if ! command -v ufw &>/dev/null && -z "${OMARCHY_CHROOT_INSTALL:-}"; then
sudo ufw allow 22/tcp
# Allow Docker containers to use DNS on host
sudo ufw allow in on docker0 to any port 53
sudo ufw allow in proto udp from 172.16.0.0/12 to 172.17.0.1 port 53 comment allow-docker-dns
# Turn on the firewall
sudo ufw --force enable