OpenVPN Setup

Kevin Wilcox kevin.wilcox at gmail.com
Wed May 11 01:08:36 UTC 2011


On Tue, May 10, 2011 at 20:50, Frank Griffith <frnkgrffth at yahoo.com> wrote:

> Anyway, I tried to start the OpenVPN server on the FreeBSD server and it
> will not start. I got this message:
>
> # openvpn /usr/local/etc/openvpn/server.conf
> Tue May 10 20:35:11 2011 OpenVPN 2.2.0 amd64-portbld-freebsd8.2 [SSL] [LZO2]
> [eurephia] built on May 10 2011
> Tue May 10 20:35:11 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or
> higher to call user-defined scripts or executables
> Tue May 10 20:35:11 2011 Cannot open dh1024.pem for DH parameters:
> error:02001002:system library:fopen:No such file or directory:
> error:2006D080:BIO routines:BIO_new_file:no such file
> Tue May 10 20:35:11 2011 Exiting

If you edit /usr/local/etc/openvpn/server.conf, it will mention

ca ca.crt
cert server.crt
dh dh1024.pem
key server.key

or something similar. Each of the files it references will need to be
in /usr/local/etc/openvpn/.

The error "Cannot open dh1024.pem" tells you what it's trying to open
that it can't find.

kmw


More information about the freebsd-questions mailing list