mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-18 21:27:54 +00:00
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:
commit
b3b1fddfa5
@ -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[] = [
|
||||
|
Loading…
Reference in New Issue
Block a user