Skip to content

Commit

Permalink
Added options for dhcp-option, comp-lzo and block-outside-dns in ovpn…
Browse files Browse the repository at this point in the history
…_getclient based on settings in ovpn_env.sh
  • Loading branch information
HumanPrinter committed Apr 16, 2020
1 parent d53043e commit 5c3a4fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/ovpn_getclient
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5c3a4fc

Please sign in to comment.