From 5c3a4fcb60a48959f1aaec899b7e230dd4b3d6a6 Mon Sep 17 00:00:00 2001 From: Human Printer Date: Thu, 3 Oct 2019 21:33:34 +0200 Subject: [PATCH] Added options for dhcp-option, comp-lzo and block-outside-dns in ovpn_getclient based on settings in ovpn_env.sh --- bin/ovpn_getclient | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/ovpn_getclient b/bin/ovpn_getclient index 092aeea91..7acc54c63 100755 --- a/bin/ovpn_getclient +++ b/bin/ovpn_getclient @@ -99,11 +99,21 @@ tls-auth ta.key 1 if [ "$OVPN_COMP_LZO" == "1" ]; then echo "comp-lzo" + else + echo "comp-lzo no" fi if [ -n "$OVPN_OTP_AUTH" ]; then echo reneg-sec 0 fi + + if [ "$OVPN_DISABLE_PUSH_BLOCK_DNS" == "0" ];then + echo "block-outside-dns" + fi + + for dnsserver in ${!OVPN_DNS_SERVERS[@]}; do + echo dhcp-option DNS ${OVPN_DNS_SERVERS[${dnsserver}]} + done } dir="$OPENVPN/clients/$cn"