Last active
December 29, 2022 03:58
-
-
Save zfwf/64695924cb0941089f8163e73cfad209 to your computer and use it in GitHub Desktop.
ubuntu openvpn configs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Client configs, 16.04, | |
script-security 2 | |
up /etc/openvpn/update-resolv-conf | |
down /etc/openvpn/update-resolv-conf | |
# network manager, 16.04, install below package to enable import openvpn client configs | |
sudo apt install network-manager-openvpn-gnome | |
# Client configs, 18.04/18.10 | |
# nm-connection-editor can help with adding option below | |
script-security 2 | |
up /etc/openvpn/update-systemd-resolved | |
down /etc/openvpn/update-systemd-resolved | |
## if you have the error: cert too weak (OpenSSL: error:140AB18E:SSL routines:SSL_CTX_use_certificate:ca md too weak) | |
## add to client config | |
tls-cipher "DEFAULT:@SECLEVEL=0" | |
# network manager, 18.04, install below package to enable import openvpn client configs | |
sudo apt install network-manager-openvpn-gnome | |
# to work around the cert too weak issue in network manager imported openvpn configs | |
# under the [vpn] section in `/etc/NetworkManager/system-connections/<connection name>` add the line: | |
tls-cipher=DEFAULT:@SECLEVEL=0 | |
# if need additonal domains not specified by the dhcp push | |
domain-search=<domain1>;<domain2>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment