Openvpn – Connect to OpenVPN using Windows 10 built-in VPN

openvpnvpnwindows 10

I have an OpenVPN network with a pretty much standard configuration:

  • auth.txt file with user and password
  • ca.crt file with the certificate
  • my-nat.pem file with the identity for my VPC

and the OpenVPN config:

client
dev tun
proto udp
remote some-ip-here some-port-here
ca /etc/openvpn/keys/ca.crt
auth-user-pass /etc/openvpn/keys/auth.txt
resolv-retry infinite
nobind
persist-key
persist-tun
ns-cert-type server
cipher AES-128-CBC
comp-lzo
status /var/log/openvpn-status.log
log /var/log/openvpn.log
log-append /var/log/openvpn.log
verb 3

And connect command: ssh -i "my-nat.pem" Ubuntu@machine-ip-here

How can I translate these files/config so I can use it with the built-in VPN connection on Windows 10?

Best Answer

VPNs do have multiple protocols and for different protocols, different type of configurations are needed.

Here are the top 5 VPN protocols are explained: https://www.makeuseof.com/tag/major-vpn-protocols-explained/

As per this document, Windows 10 VPN supports L2TP, PPTP, SSTP and IKEv2 protocols and there is no support for OpenVPN protocol.

In these cases, you need to download the OpenVPN software which will eventually register a Virtual Network driver and your VPN will work over that virtual driver.