mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Change default OpenVPN settings and disable ipsec at start
This commit is contained in:
parent
296c5ae524
commit
29e1f67d62
1 changed files with 9 additions and 0 deletions
|
@ -38,6 +38,8 @@ if [ "$(uci -q get openvpn.omr.proto)" != "tcp-client" ]; then
|
||||||
set openvpn.omr.tls_client=1
|
set openvpn.omr.tls_client=1
|
||||||
set openvpn.omr.allow_recursive_routing=1
|
set openvpn.omr.allow_recursive_routing=1
|
||||||
set openvpn.omr.comp_lzo=adaptive
|
set openvpn.omr.comp_lzo=adaptive
|
||||||
|
set openvpn.omr.sndbuf=0
|
||||||
|
set openvpn.omr.rcvbuf=0
|
||||||
commit openvpn
|
commit openvpn
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
@ -46,6 +48,13 @@ if [ "$(uci -q get openvpn.omr.com_lzo)" = "" ]; then
|
||||||
set openvpn.omr.comp_lzo=adaptive
|
set openvpn.omr.comp_lzo=adaptive
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
if [ "$(uci -q get ipsec.ipsec.password)" = "myvpn" ]; then
|
||||||
|
uci -q batch <<-EOF >/dev/null
|
||||||
|
set ipsec.ipsec.enabled='0'
|
||||||
|
commit ipsec
|
||||||
|
EOF
|
||||||
|
chmod u+x /etc/init.d/ipsec
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$(uci -q get dsvpn.vpn)" = "" ]; then
|
if [ "$(uci -q get dsvpn.vpn)" = "" ]; then
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue