Merge pull request #208 from lhopki01/master

Fix issue with connection resetting every hour when using otp.
This commit is contained in:
Kyle Manna
2017-01-26 22:42:04 -08:00
committed by GitHub
4 changed files with 15 additions and 2 deletions

View File

@ -328,6 +328,7 @@ cat $TMP_PUSH_CONFIGFILE >> "$conf"
if [ -n "${OVPN_OTP_AUTH:-}" ]; then
echo -e "\n\n# Enable OTP+PAM for user authentication" >> "$conf"
echo "plugin /usr/lib/openvpn/plugins/openvpn-plugin-auth-pam.so openvpn" >> "$conf"
echo "reneg-sec 0" >> "$conf"
fi
echo -e "\n### Extra Configurations Below" >> "$conf"