2011-07-17 14:17:47 +00:00
|
|
|
uci delete network.mesh
|
2010-08-13 19:46:41 +00:00
|
|
|
uci set network.mesh=interface
|
|
|
|
uci set network.mesh.proto=wing
|
|
|
|
|
2011-07-17 14:17:47 +00:00
|
|
|
uci add firewall zone
|
|
|
|
uci set firewall.@zone[-1].name="mesh"
|
|
|
|
uci set firewall.@zone[-1].input="ACCEPT"
|
|
|
|
uci set firewall.@zone[-1].output="ACCEPT"
|
|
|
|
uci set firewall.@zone[-1].forward="REJECT"
|
|
|
|
uci set firewall.@zone[-1].masq="1"
|
2010-08-13 19:46:41 +00:00
|
|
|
|
2011-07-17 14:17:47 +00:00
|
|
|
uci add firewall forwarding
|
|
|
|
uci set firewall.@forwarding[-1].src="lan"
|
|
|
|
uci set firewall.@forwarding[-1].dest="mesh"
|
2010-08-13 19:46:41 +00:00
|
|
|
|
2011-07-17 14:17:47 +00:00
|
|
|
uci add firewall forwarding
|
|
|
|
uci set firewall.@forwarding[-1].src="mesh"
|
|
|
|
uci set firewall.@forwarding[-1].dest="wan"
|
2010-08-13 19:46:41 +00:00
|
|
|
|