dockerd: fix bridge network
This commit is contained in:
parent
876aea333c
commit
994670cb79
@ -91,6 +91,9 @@ uciadd() {
|
|||||||
uci_quiet set firewall.@zone[-1].output="ACCEPT"
|
uci_quiet set firewall.@zone[-1].output="ACCEPT"
|
||||||
uci_quiet set firewall.@zone[-1].forward="ACCEPT"
|
uci_quiet set firewall.@zone[-1].forward="ACCEPT"
|
||||||
uci_quiet set firewall.@zone[-1].name="${zone}"
|
uci_quiet set firewall.@zone[-1].name="${zone}"
|
||||||
|
uci_quiet set firewall.dockerd=forwarding
|
||||||
|
uci_quiet set firewall.@forwarding[-1].src="${zone}"
|
||||||
|
uci_quiet set firewall.@forwarding[-1].dest='wan'
|
||||||
uci_quiet commit firewall
|
uci_quiet commit firewall
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -41,5 +41,5 @@ config proxies 'proxies'
|
|||||||
# then docker restarted to load in new changes.
|
# then docker restarted to load in new changes.
|
||||||
config firewall 'firewall'
|
config firewall 'firewall'
|
||||||
option device 'docker0'
|
option device 'docker0'
|
||||||
list blocked_interfaces 'wan'
|
# list blocked_interfaces 'wan'
|
||||||
# option extra_iptables_args '--match conntrack ! --ctstate RELATED,ESTABLISHED' # allow outbound connections
|
# option extra_iptables_args '--match conntrack ! --ctstate RELATED,ESTABLISHED' # allow outbound connections
|
||||||
|
Loading…
x
Reference in New Issue
Block a user