Openvpn client configuration

how to configure a openvpn client in openwrt for use files (ca.crt, laprop.crt, laprop.key, vpnclient.ovpn) from openvpn server on windows

if only use file client.ovpn connection will not work

Pretty much the same way as on any other operation system however this isn't a OpenVPN support forum...

You have to copy your certificates to somewhere in the router's filesystem, then edit the directory paths to them in the .ovpn file.

1 Like

I set everything up, but I get errors
uci show firewall; echo && uci show network; echo && uci show openvpn; echo && logread -e openvpn

files ca.crt vpnclient.crt vpnclient.key vpnclient.ovpn
are in the folder /etc/openvpn/
certificate paths in file /etc/openvpn/vpnclient.ovpn

# file can be used for all clients.                           
ca "/etc/openvpn/ca.crt"                         
cert "/etc/openvpn/vpnclient.crt"               
key "/etc/openvpn/vpnclient.key"

does anyone have any ideas?

Thu Aug 16 08:45:42 2018 daemon.err openvpn(vpnclient)[5308]: Cannot open key file 'ta.key': No such file or directory (errno=2)

Use full path to ta.key, make sure it exists.

I do not have such a file, maybe comment out?

You should either enable or disable it on both client and server side.

1 Like