Merge pull request #2386 from balena-os/allow-dns-from-custom-bridge-ifaces-for-firewall

Firewall: allow DNS requests from custom Docker bridge networks
This commit is contained in:
flowzone-app[bot] 2024-11-11 19:01:51 +00:00 committed by GitHub
commit b3b1fddfa5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,12 +56,19 @@ const standardServices: iptables.Rule[] = [
target: 'ACCEPT',
},
{
comment: 'DNS',
comment: 'DNS from balena0',
action: iptables.RuleAction.Append,
proto: 'udp',
matches: ['--dport 53', '-i balena0'],
target: 'ACCEPT',
},
{
comment: 'DNS from custom Engine networks',
action: iptables.RuleAction.Append,
proto: 'udp',
matches: ['--dport 53', '-i br+'],
target: 'ACCEPT',
},
];
const standardPolicy: iptables.Rule[] = [