mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-08 03:44:14 +00:00
Firewall: allow DNS requests from custom Docker bridge networks
We only allow DNS requests through `balena0` interface, but this is the default Docker bridge which is used for containers that don't have a custom bridge. However, the Supervisor creates a custom bridge for all containers unless another network mode is specified. Change-type: patch Signed-off-by: Christina Ying Wang <christina@balena.io>
This commit is contained in:
parent
dd24fc1404
commit
7e1cafa866
@ -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…
x
Reference in New Issue
Block a user