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:
parent
91ff38c0ca
commit
2ab85550f2
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue