Page 1 of 1

OpenVPN : Connection Fail / How To Fix

Posted: Tue Jun 30, 2009 12:02 pm
by threaderslash
Hi Guys!

I need some help here with OpenVPN in order to put it runing a remote network connection. It involves client-server work that I am doing from home: Client Linux (my notebook) -- Server Windows. In my notebook I have installed a tri-boot with FC/Suse/Solaris.

So, to put VPN to connect properly it requires TUN/TAP driver. Then, when I run...

# openvpn --mktun
Options error: You must define TUN/TAP device (--dev)

Any directions are mostly appreciated!

Re: OpenVPN : Connection Fail / How To Fix

Posted: Tue Jun 30, 2009 1:36 pm
by ecrist
threaderslash wrote:So, to put VPN to connect properly it requires TUN/TAP driver. Then, when I run...

# openvpn --mktun
Options error: You must define TUN/TAP device (--dev)

Any directions are mostly appreciated!
It's telling you you're missing the --dev argument to the command. It doesn't know whether you want to create a tap device or tun device. This is covered in the man page, as far as which you need. Most people need the tun device.

HTH

Re: OpenVPN : Connection Fail / How To Fix

Posted: Wed Jul 01, 2009 12:56 am
by threaderslash
thanks for the feedback. :mrgreen: yesterday at the end of the day, I tried this:

# openvpn --mktun --dev tun0
Tue Jun 30 21:58:11 2009 TUN/TAP device tun0 opened
Tue Jun 30 21:58:11 2009 Persist state set to: ON

I have also done on FC10: system --> preferences --> internet and network --> network connections --> VPN

choose the option: VPN Connection 1 [x] connect automatically.
Gateway: the remote server IP
Authentication type: password
User name: admID
CA certificate

IPv4 Method: Automatic VPN.

Then I try to connect remotely, and it does not work. :(

Re: OpenVPN : Connection Fail / How To Fix

Posted: Wed Jul 01, 2009 12:15 pm
by ecrist
I would suggest talking to the folks in ##openvpn on irc.freenode.net. They'll ask for your configs and log files to be able to help you out. Someone is usually there pretty much any time of day.

Re: OpenVPN : Connection Fail / How To Fix

Posted: Tue Jul 07, 2009 1:01 am
by Douglas
Did you specify the dev parameter in the config file?

Paste your configs (client/server) here, or on a pastebin and link them.