Adjust client configuration version 3 for windows openvpn connector.
This commit is contained in:
parent
d567f5583b
commit
2e96d24151
@ -964,6 +964,20 @@ comp-lzo yes
|
||||
EOF
|
||||
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"
|
||||
|
||||
# --auth-nocache
|
||||
|
@ -226,7 +226,6 @@ fi
|
||||
[[ -n "$OPENVPN_SERVER" ]] || fatal "OpenVPN Server (parameter OPENVPN_SERVER ) not present!"
|
||||
[[ -n "$SERVER_PORT" ]] || fatal "Server Port (parameter SERVER_PORT ) not present!"
|
||||
|
||||
|
||||
if [[ -z "$LZO_COMPRESSION" ]]; then
|
||||
LZO_COMPRESSION=false
|
||||
elif [[ "${LZO_COMPRESSION,,}" = "yes" ]] ; then
|
||||
@ -906,6 +905,20 @@ comp-lzo yes
|
||||
EOF
|
||||
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"
|
||||
|
||||
# --auth-nocache
|
||||
|
Loading…
Reference in New Issue
Block a user