Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 30 lines (24 sloc) 1.04 KB
uci -q batch <<EOF
add firewall zone
set firewall.@zone[-1].forward='ACCEPT'
set firewall.@zone[-1].output='ACCEPT'
set firewall.@zone[-1].input='REJECT'
set firewall.@zone[-1].network='bat0 freifunk mesh kbubackbone'
set firewall.@zone[-1].mtu_fix='1'
set firewall.@zone[-1].name='freifunk'
add firewall rule
add firewall rule
set firewall.@rule[-1].name='Allow ICMP (Mesh)'
set firewall.@rule[-1].src='freifunk'
set firewall.@rule[-1].proto='icmp'
set firewall.@rule[-1].family='ipv4'
set firewall.@rule[-1].target='ACCEPT'
set firewall.@rule[-2].name='Allow IGMP (Mesh)'
set firewall.@rule[-2].src='freifunk'
set firewall.@rule[-2].proto='igmp'
set firewall.@rule[-2].family='ipv4'
set firewall.@rule[-2].target='ACCEPT'
commit firewall
/etc/init.d/firewall restart
You can’t perform that action at this time.