Browse Source

dockerd: set docker zone chain defaults to ACCEPT

* Since the docker0 is a private network by default we can be
  more accepting like the LAN is by default

Signed-off-by: Gerard Ryan <G.M0N3Y.2503@gmail.com>
lilik-openwrt-22.03
Gerard Ryan 3 years ago
parent
commit
0a969afabc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      utils/dockerd/files/dockerd.init

+ 2
- 2
utils/dockerd/files/dockerd.init View File

@ -66,9 +66,9 @@ uciadd() {
uci_quiet add firewall zone
uci_quiet rename firewall.@zone[-1]="${zone}"
uci_quiet set firewall.@zone[-1].network="${iface}"
uci_quiet set firewall.@zone[-1].input="REJECT"
uci_quiet set firewall.@zone[-1].input="ACCEPT"
uci_quiet set firewall.@zone[-1].output="ACCEPT"
uci_quiet set firewall.@zone[-1].forward="REJECT"
uci_quiet set firewall.@zone[-1].forward="ACCEPT"
uci_quiet set firewall.@zone[-1].name="${zone}"
uci_quiet commit firewall
fi


Loading…
Cancel
Save