Add configuration for keepalive

* Add parameter to disable the push of block-outside-dns
* -d should really do what it was supposed to do
* Fix problem where comp-lzo would always be set regardless of the parameter
This commit is contained in:
Sylvain Lamontagne
2017-03-09 18:04:21 -05:00
parent d454a20e80
commit 22fcaf9477
3 changed files with 38 additions and 11 deletions

View File

@ -171,6 +171,17 @@ else
abort "==> Config match not found: $CONFIG_REQUIRED_ROUTE_2 != $CONFIG_MATCH_ROUTE_2"
fi
SERV_IP=$(ip -4 -o addr show scope global | awk '{print $4}' | sed -e 's:/.*::' | head -n1)
ovpn_genconfig -u udp://$SERV_IP -b
if busybox grep -v 'block-outside-dns' /etc/openvpn/openvpn.conf
then
echo "==> Config '-b' Succesfully remove the 'block-outside-dns' option"
else
abort "==> Config '-b' given, but 'block-outside-dns' option is still present in configuration"
fi
# Test generated client config
# gen udp client with tcp fallback