OpenVPN - Options error: Unrecognized option or missing or extra parameter(s) (2.4.5)

I'm having a slight issue with configuration of my OpenVPN server. Before changing the configuration (hardening) I was unable to connect to the server using Apple devices, however was fine using Windows/Android clients. Now, I am able to connect through Apple/Android devices but not the Windows client. I have checked for deprecated options, can't find any in the config. Any help is much appreciated.

Full Error:

Options error: Unrecognized option or missing or extra parameter(s) in home.ovpn:1: homeVPN (2.4.5)
Use --help for more information.

Config File (Hid sensitive info):

homeVPN
dev tun
proto udp
remote IP_ADDRESS PORT
float
ncp-ciphers AES-128-GCM:AES-256-GCM:AES-128-CBC:AES-256-CBC
cipher AES-128-CBC
auth SHA256
compress lzo
keepalive 15 60
auth-user-pass
remote-cert-tls server
<ca>
### CA CERT HERE
</ca>
<cert>
### CERT HERE
</cert>
<key>
### KEY HERE
</key>
<tls-crypt>
### TA KEY HERE
</tls-crypt>
resolv-retry infinite
nobind
2

2 Answers

It tells you very exactly what’s wrong:

Options error: Unrecognized option or missing or extra parameter(s) in home.ovpn:1: homeVPN (2.4.5)

(emphasis mine)

Line 1 contains

homeVPN

That’s obviously not an OpenVPN option, so you need to either remove it or make it a comment by making it

# homeVPN

After that, it’ll be a valid config file.

2

I use linux openvpn on Mint Linux Linux Mint 18.3 Sylvia \n \l ..... the config files provided by perfect had parameters that were calling out errors...

I removed the single line that had the string "ncp-disable" and "compress", and all was well afterwards...

not sure what the issue is, but it now works...

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like