OpenVPN - Client config
OpenVPN client config for Linux
OpenVPN client config for Linux
to connect to OpenVPN w/out providing username, password and private key password each time,
modify client.ovpn and add these 2 lines
auth-user-pass client.pass
askpass client.priv
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
down-pre
create new file client.pass, add username and password
myusername
mypassword
create a new file client.priv, add your private key password
myprivkeypassword
chmod 400 on both files
now your openvpn will only ask for 2FA code
the up/down scripts will provide proper DNS from the vpn server