Open VPN Server

Hello,
I´m trying to install an VPN server into my openWRT,

I´m Using the next Guide:

When I try with the second Part "Key Management", I have got the next problem:

-ash: can't create /etc/profile.d/easy-rsa.sh: nonexistent directory

I have installed the openvpn-easy-rsa package.

I don´t know how can I continue.

Thanks.

You need to install easy RSA. I'd suggest you do this on a different machine as it will take a while to generate keys on a router.

Hello,

I have installed:

openvpn-easy-rsa

Is the same package as you said?

Thanks a lot.

Sounds right

Hello,

This package was installed before I asked help on this forum, so, the problem, may be other.

Thanks.

Run the following

mkdir /etc/profile.d

Then continue the instructions.

Hello, Now I have continued, but the problems continue:

root@LEDE:/etc/config# cat << EOF > /etc/profile.d/easy-rsa.sh

export EASYRSA_PKI="${VPN_PKI}"
export EASYRSA_TEMP_DIR="/tmp"
export EASYRSA_REQ_CN="ovpnca"
export EASYRSA_CERT_EXPIRE="3650"
export EASYRSA_BATCH="1"
EOF
root@LEDE:/etc/config# . /etc/profile.d/easy-rsa.sh
root@LEDE:/etc/config# easyrsa init-pki
-ash: easyrsa: not found
root@LEDE:/etc/config#

What is the output of ubus call system board?

Also, I second the statement from @d687r02j8g :laughing:

If you're going to use OpenVPN, use a normal computer to generate the keys... it will take ages on a router, but it's faily quick on a normal Mac/Linux/Win box.

Can you run

which easyrsa

It should return

/usr/bin/easyrsa

Edit: I'd suggest using wireguard over openvpn. Simpler to setup and faster.