Starting up the client (linux) throws Options error:. . .

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Locked
garyg
OpenVpn Newbie
Posts: 2
Joined: Thu Sep 06, 2012 5:01 pm

Starting up the client (linux) throws Options error:. . .

Post by garyg » Thu Sep 06, 2012 5:34 pm

The full output of the error is:
$ ./openvpn sample-config-files/client.conf
Options error: Unrecognized option or missing parameter(s) in sample-config-files/client.conf:16: client (2.2.2)
Use --help for more information.
root@ip-10-176-147-76:[/etc/openvpn]

I've stripped out the comments, but line 16 is the client line below:


client
dev tun
proto udp
remote ec2-test.compute-1.amazonaws.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/client1.crt
key /etc/openvpn/easy-rsa/2.0/keys/client1.key
ns-cert-type server
comp-lzo
verb 3

To test I commented out the client line, then it will complain about the ca line, I comment that out and it complains aobut the cert line. Any thoughts? anyone?

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Starting up the client (linux) throws Options error:. .

Post by maikcat » Fri Sep 07, 2012 6:40 am

hi there,

can you try running openvpn as root?

which distro are you using?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

garyg
OpenVpn Newbie
Posts: 2
Joined: Thu Sep 06, 2012 5:01 pm

Re: Starting up the client (linux) throws Options error:. .

Post by garyg » Fri Sep 07, 2012 3:55 pm

Actually all set now, it turns out after much investigation that the problem was with the machine itself. It had gotten into a bad state with openssl causing all sorts of problems. Thanks for the help though.

Locked