So as far as I know the openvpn service on my centos 7 vps is running splendidly after following
this. Unfortunately, when it came time to set up a windows 10 client, things got a bit difficult.
I tried running the server.ovpn with this:
laptop
dev tun
proto udp
remote n.n.n.n 1194
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
verb 3
ca D:\Windows Directories\Documents\Documents\Keys\VPN\ca.crt
cert D:\Windows Directories\Documents\Documents\Keys\VPN\laptop.crt
key D:\Windows Directories\Documents\Documents\Keys\VPN\laptop.key
I get various "Options error: Unrecognized option or missing or extra parameter(s)" errors:
line 1 "laptop" is unrecognized. Line 11 "ca D:\Windows Directories\Documents\Documents\Keys\VPN\ca.crt" throws two errors: one for the use of "\" instead of "/" and one which completely rejects "ca" option. Similarly, lines 12 and 13 throw errors for "cert" and "key" respectively.
Removing these lines gives an error: "Sun Mar 26 19:52:17 2017 disabling NCP mode (--ncp-disable) because not in P2MP client or server mode
Options error: On Windows, --ifconfig is required when --dev tun is used"
Fine.... I have no idea what sort of options that would need, but let's throw it in there:
dev tun
ifconfig
proto udp
remote n.n.n.n 1194
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
verb 3
"Options error: Unrecognized option or missing or extra parameter(s) in D:\Windows Directories\Desktop\client.ovpn:2: ifconfig (2.4.1)"
Great...
Somebody please help.