2010-08-13 19:46:41 +00:00
|
|
|
uci set network.mesh=interface
|
|
|
|
uci set network.mesh.proto=wing
|
|
|
|
uci set network.mesh.profile=bulk
|
2011-03-31 02:53:51 +00:00
|
|
|
uci set network.mesh.rc=minstrel
|
2010-08-13 19:46:41 +00:00
|
|
|
uci set network.mesh.ls=fcfs
|
|
|
|
uci set network.mesh.metric=wcett
|
|
|
|
uci set network.mesh.prefix=6
|
2011-03-31 02:53:51 +00:00
|
|
|
uci set network.mesh.period=10000
|
|
|
|
uci set network.mesh.tau=100000
|
|
|
|
uci set network.mesh.debug=false
|
2010-08-13 19:46:41 +00:00
|
|
|
|
|
|
|
cfg=$(uci add firewall zone)
|
|
|
|
uci set firewall.$cfg.name="mesh"
|
|
|
|
uci set firewall.$cfg.input="ACCEPT"
|
|
|
|
uci set firewall.$cfg.output="ACCEPT"
|
|
|
|
uci set firewall.$cfg.forward="REJECT"
|
|
|
|
uci set firewall.$cfg.masq="1"
|
|
|
|
|
|
|
|
cfg=$(uci add firewall forwarding)
|
|
|
|
uci set firewall.$cfg.src="lan"
|
|
|
|
uci set firewall.$cfg.dest="mesh"
|
|
|
|
|
|
|
|
cfg=$(uci add firewall forwarding)
|
|
|
|
uci set firewall.$cfg.src="mesh"
|
|
|
|
uci set firewall.$cfg.dest="wan"
|
|
|
|
|