From ff166453d4f035d9b2a237b21e589d368cb92609 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 21 Jan 2014 05:17:00 +0100 Subject: [PATCH] gluon-mesh-batman-adv: accept input on wan interface --- .../lib/gluon/upgrade/mesh-batman-adv/invariant/011-mesh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/invariant/011-mesh b/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/invariant/011-mesh index 5ce85c61..755a9c57 100755 --- a/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/invariant/011-mesh +++ b/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/invariant/011-mesh @@ -24,6 +24,14 @@ uci add_list firewall.client.network='client' uci_set firewall client input 'ACCEPT' uci_set firewall client output 'ACCEPT' uci_set firewall client forward 'REJECT' + +config_load firewall +accept_input_on_wan() { + config_get name "$1" name + [ "$name" = 'wan' ] && uci_set firewall "$1" input 'ACCEPT' +} +config_foreach accept_input_on_wan 'zone' + uci_commit firewall uci_set dhcp '@dnsmasq[0]' boguspriv '0'