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

Change VPN settings

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-01-09 20:48:08 +01:00
parent 91ff38c0ca
commit 2ab85550f2

View file

@ -37,9 +37,15 @@ if [ "$(uci -q get openvpn.omr.proto)" != "tcp-client" ]; then
set openvpn.omr.client=1
set openvpn.omr.tls_client=1
set openvpn.omr.allow_recursive_routing=1
set openvpn.omr.comp_lzo=adaptive
commit openvpn
EOF
fi
if [ "$(uci -q get openvpn.omr.com_lzo)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set openvpn.omr.comp_lzo=adaptive
EOF
fi
if [ "$(uci -q get dsvpn.vpn)" = "" ]; then
uci -q batch <<-EOF >/dev/null
@ -53,6 +59,7 @@ if [ "$(uci -q get dsvpn.vpn)" = "" ]; then
EOF
fi
if [ "$(uci -q show firewall | grep omrvpn)" = "" ]; then
uci -q batch <<-EOF >/dev/null
add_list firewall.zone_vpn.network=omrvpn