1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix default network

This commit is contained in:
Ycarus 2018-02-15 14:19:47 +01:00
parent bd8a21bfbc
commit 1ebeaafb3d

View file

@ -33,21 +33,24 @@ if [ "$(uci -q show network | grep wan)" = "" ]; then
uci -q batch <<-EOF
set network.wan1=interface
set network.wan1.ifname=eth0
set network.wan1.proto=none
set network.wan1.proto=static
set network.wan1.type=macvlan
set network.wan1.ip4table=wan
set network.wan1.multipath=master
set network.wan1.defaultroute=0
add_list firewall.wan.network=wan1
commit network
add_list firewall.@zone[1].network=wan1
commit firewall
set network.wan2=interface
set network.wan2.ifname=eth0
set network.wan2.proto=none
set network.wan2.proto=static
set network.wan2.type=macvlan
set network.wan2.ip4table=wan
set network.wan2.multipath=on
set network.wan2.defaultroute=0
add_list firewall.wan.network=wan2
commit network
add_list firewall.@zone[1].network=wan2
commit firewall
EOF
_setup_macvlan wan1
_setup_macvlan wan2