gluon-mesh-batman-adv: accept input on wan interface

This commit is contained in:
Matthias Schiffer 2014-01-21 05:17:00 +01:00
parent ede74a4aa2
commit b36ecc8aae
1 changed files with 8 additions and 0 deletions

View File

@ -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'