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!
OpenVPN : Connection Fail / How To Fix
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Tue Jun 30, 2009 11:49 am
- 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
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.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!
HTH
OpenVPN Community Administrator
IRC: #openvpn, #openvpn-devel
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN
IRC: #openvpn, #openvpn-devel
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN
-
- OpenVpn Newbie
- Posts: 2
- Joined: Tue Jun 30, 2009 11:49 am
Re: OpenVPN : Connection Fail / How To Fix
thanks for the feedback. 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.
# 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.
- 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
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
IRC: #openvpn, #openvpn-devel
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN
-
- Forum Team
- Posts: 285
- Joined: Wed Aug 27, 2008 2:41 am
Re: OpenVPN : Connection Fail / How To Fix
Did you specify the dev parameter in the config file?
Paste your configs (client/server) here, or on a pastebin and link them.
Paste your configs (client/server) here, or on a pastebin and link them.