mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 14:54:07 +02:00
Update 01-openvpn.sh
This commit is contained in:
@@ -6,7 +6,7 @@ mkdir -p /config/openvpn
|
|||||||
QBT_CONFIG_FILE="/config/qBittorrent/config/qBittorrent.conf"
|
QBT_CONFIG_FILE="/config/qBittorrent/config/qBittorrent.conf"
|
||||||
|
|
||||||
# Correct openvpn files
|
# Correct openvpn files
|
||||||
if [ bashio::config "VPN_ENABLED" == "yes" ]; then
|
if [[ bashio::config "VPN_ENABLED" == "yes" ]] && [[ bashio::config "VPN_TYPE" == "openvpn" ]]; then
|
||||||
|
|
||||||
# If there is a config file, add nopull
|
# If there is a config file, add nopull
|
||||||
if [ -n "$(ls -A /config/openvpn 2>/dev/null)" ]; then
|
if [ -n "$(ls -A /config/openvpn 2>/dev/null)" ]; then
|
||||||
@@ -19,6 +19,10 @@ if [ bashio::config "VPN_ENABLED" == "yes" ]; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ip route add 10.0.0.0/8 via 172.30.32.1
|
||||||
|
ip route add 192.168.0.0/16 via 172.30.32.1
|
||||||
|
ip route add 172.16.0.0/12 via 172.30.32.1
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user