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

Fix gre tunnels

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-07-22 15:44:12 +02:00
parent 93e5ff4df8
commit 0ba988bc89
3 changed files with 55 additions and 6 deletions

View file

@ -114,6 +114,15 @@ if [ "$(uci -q get firewall.omr_server)" = "" ]; then
EOF
fi
if [ "$(uci -q get firewall.gre_tunnel)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set firewall.gre_tunnel=include
set firewall.gre_tunnel.path=/etc/firewall.gre-tunnel
set firewall.gre_tunnel.reload=1
commit firewall
EOF
fi
uci -q batch <<-EOF >/dev/null
set firewall.@zone[0].mtu_fix='1'
set firewall.zone_vpn.mtu_fix='1'