What's new

Can't start openvpn connection from command line

davros1999

New Around Here
Hi

I can connect to a VPN using the Openvpn client in the GUI with a .ovpn file from my provider.

But when I try to start the same connection from the command line (I want to create a script with VPN) I get an error:

Fri Oct 2 20:11:56 2015 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)

The router can create tun devices OK when launched from the GUI e.g.:
17: tun12: <POINTOPOINT,MULTICAST,NOARP,UP,10000> mtu 1500 qdisc pfifo_fast qlen 100

I had a look online and there are some suggestions but I'm a bit scared to do it on my router.

If anyone has any suggestions I'll be very grateful for help.

Cheers
David
 
You can't just directly run the openvpn binary from the router. The firmware has to do various setup tasks first, such as creating the tun interface, the key/cert files, etc...

What are you specifically trying to achieve? If all you want is to start the client you configured on the webui, then start the service:

Code:
service start_vpnclient1
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top