dockerd: fix bridge network

This commit is contained in:
sbwml 2022-12-09 13:01:48 +08:00 committed by sbwml
parent 876aea333c
commit 994670cb79
2 changed files with 4 additions and 1 deletions

View File

@ -91,6 +91,9 @@ uciadd() {
uci_quiet set firewall.@zone[-1].output="ACCEPT"
uci_quiet set firewall.@zone[-1].forward="ACCEPT"
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
fi

View File

@ -41,5 +41,5 @@ config proxies 'proxies'
# then docker restarted to load in new changes.
config firewall 'firewall'
option device 'docker0'
list blocked_interfaces 'wan'
# list blocked_interfaces 'wan'
# option extra_iptables_args '--match conntrack ! --ctstate RELATED,ESTABLISHED' # allow outbound connections