OpenVPN : Connection Fail / How To Fix

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
threaderslash
OpenVpn Newbie
Posts: 2
Joined: Tue Jun 30, 2009 11:49 am

OpenVPN : Connection Fail / How To Fix

Post by threaderslash » Tue Jun 30, 2009 12:02 pm

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!

User avatar
ecrist
Forum Team
Posts: 237
Joined: Wed Nov 26, 2008 10:33 pm
Location: Northern Minnesota, USA
Contact:

Re: OpenVPN : Connection Fail / How To Fix

Post by ecrist » Tue Jun 30, 2009 1:36 pm

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
OpenVPN Community Administrator
IRC: #openvpn, #openvpn-devel
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN

threaderslash
OpenVpn Newbie
Posts: 2
Joined: Tue Jun 30, 2009 11:49 am

Re: OpenVPN : Connection Fail / How To Fix

Post by threaderslash » Wed Jul 01, 2009 12:56 am

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. :(

User avatar
ecrist
Forum Team
Posts: 237
Joined: Wed Nov 26, 2008 10:33 pm
Location: Northern Minnesota, USA
Contact:

Re: OpenVPN : Connection Fail / How To Fix

Post by ecrist » Wed Jul 01, 2009 12:15 pm

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.
OpenVPN Community Administrator
IRC: #openvpn, #openvpn-devel
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN

Douglas
Forum Team
Posts: 285
Joined: Wed Aug 27, 2008 2:41 am

Re: OpenVPN : Connection Fail / How To Fix

Post by Douglas » Tue Jul 07, 2009 1:01 am

Did you specify the dev parameter in the config file?

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

Post Reply