Adjust client configuration version 3 for windows openvpn connector.

This commit is contained in:
Christoph 2024-12-09 19:23:01 +01:00
parent d567f5583b
commit 2e96d24151
2 changed files with 28 additions and 1 deletions

View File

@ -964,6 +964,20 @@ comp-lzo yes
EOF EOF
fi fi
if [[ -n ${DNS_SERVER} ]] && [[ "${DNS_SERVER,,}" != "none" ]] ; then
cat <<EOF >> ${_client_openvpn_connector_v3} 2>> "$log_file"
# Pusch Nameserver Settinggs..
dhcp-option DNS ${DNS_SERVER}
EOF
if [[ -n ${SEARCH_DOMAINS} ]] && [[ "${SEARCH_DOMAINS,}" != "none" ]] ; then
cat <<EOF >> ${_client_openvpn_connector_v3} 2>> "$log_file"
dhcp-option DOMAIN ${SEARCH_DOMAINS}
EOF
fi
fi
cat <<EOF >> ${_client_openvpn_connector_v3} 2>> "$log_file" cat <<EOF >> ${_client_openvpn_connector_v3} 2>> "$log_file"
# --auth-nocache # --auth-nocache

View File

@ -226,7 +226,6 @@ fi
[[ -n "$OPENVPN_SERVER" ]] || fatal "OpenVPN Server (parameter OPENVPN_SERVER ) not present!" [[ -n "$OPENVPN_SERVER" ]] || fatal "OpenVPN Server (parameter OPENVPN_SERVER ) not present!"
[[ -n "$SERVER_PORT" ]] || fatal "Server Port (parameter SERVER_PORT ) not present!" [[ -n "$SERVER_PORT" ]] || fatal "Server Port (parameter SERVER_PORT ) not present!"
if [[ -z "$LZO_COMPRESSION" ]]; then if [[ -z "$LZO_COMPRESSION" ]]; then
LZO_COMPRESSION=false LZO_COMPRESSION=false
elif [[ "${LZO_COMPRESSION,,}" = "yes" ]] ; then elif [[ "${LZO_COMPRESSION,,}" = "yes" ]] ; then
@ -906,6 +905,20 @@ comp-lzo yes
EOF EOF
fi fi
if [[ -n ${DNS_SERVER} ]] && [[ "${DNS_SERVER,,}" != "none" ]] ; then
cat <<EOF >> ${_client_openvpn_connector_v3} 2>> "$log_file"
# Pusch Nameserver Settinggs..
dhcp-option DNS ${DNS_SERVER}
EOF
if [[ -n ${SEARCH_DOMAINS} ]] && [[ "${SEARCH_DOMAINS,}" != "none" ]] ; then
cat <<EOF >> ${_client_openvpn_connector_v3} 2>> "$log_file"
dhcp-option DOMAIN ${SEARCH_DOMAINS}
EOF
fi
fi
cat <<EOF >> ${_client_openvpn_connector_v3} 2>> "$log_file" cat <<EOF >> ${_client_openvpn_connector_v3} 2>> "$log_file"
# --auth-nocache # --auth-nocache