mirror of https://github.com/openwrt/luci.git
contrib/meshwizard: Enable luci_splash and set local_restrict for wan firewall zone
parent
cdba10c64c
commit
4c139d3b93
|
@ -12,6 +12,15 @@ config_load firewall
|
||||||
type="$(uci -q get wireless.$net.type)"
|
type="$(uci -q get wireless.$net.type)"
|
||||||
vap="$(uci -q get meshwizard.netconfig.$net\_vap)"
|
vap="$(uci -q get meshwizard.netconfig.$net\_vap)"
|
||||||
|
|
||||||
|
# Add local_restrict to wan firewall zone
|
||||||
|
handle_zonewan() {
|
||||||
|
config_get name "$1" name
|
||||||
|
if [ "$name" == "wan" ]; then
|
||||||
|
uci set firewall.$1.local_restrict=1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
config_foreach handle_zonewan zone && echo " + Enable local_restrict for zone wan"
|
||||||
|
|
||||||
# Delete old firewall zone for freifunk
|
# Delete old firewall zone for freifunk
|
||||||
handle_fwzone() {
|
handle_fwzone() {
|
||||||
config_get name "$1" name
|
config_get name "$1" name
|
||||||
|
|
|
@ -30,3 +30,6 @@ EOF
|
||||||
echo " network: ${netrenamed}dhcp"
|
echo " network: ${netrenamed}dhcp"
|
||||||
|
|
||||||
uci commit
|
uci commit
|
||||||
|
|
||||||
|
/etc/init.d/luci_splash enable
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue