Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: OPenVPN setup
PostPosted: Fri Aug 15, 2008 11:24 am 
Offline
Newbie

Joined: Fri Aug 15, 2008 11:19 am
Posts: 2
Hello,

I am a pretty new to linux but am loving playing with my linode. I would like to setup openvpn so when I am out using random wifi hotspots I can make sure no one is snooping my connection. (Plus I think it will be fun) So my question is can anyone point me to a good guide to get things setup? I have done some looking around and think that I need to setup a TUN device be for the life of my can't figure out how this is done on my linode??? :-( Anyway if you can point out some guides or just give me some good advise here that would be great!

Thanks
Matt


Top
   
 Post subject:
PostPosted: Fri Aug 15, 2008 11:47 am 
Offline
Senior Member

Joined: Fri Dec 07, 2007 1:37 am
Posts: 385
Location: NC, USA
Everything I ever needed to know about OpenVPN:

http://openvpn.net/index.php/documentation/howto.html

The TUN/TAP device should already be built into the linode kernel, so all you need to do is set up the openvpn daemon.


Top
   
 Post subject:
PostPosted: Tue Oct 28, 2008 3:09 pm 
Offline
Newbie

Joined: Sun Jun 15, 2008 10:03 am
Posts: 2
Hi,

Im trying to setip OpenVPN on my linode too.
I am using Debian etch but I have a problem with the tun device.
There is no tun device setup.

# dmesg | grep TUN
tun: Universal TUN/TAP device driver, 1.6

# ifconfig -a | grep tun
tunl0 Link encap:IPIP Tunnel HWaddr

# ls -l /dev/tun*
ls: /dev/tun*: No such file or directory

# ls -l /dev/net/
ls: /dev/net/: No such file or directory

If I try to create it I get:
# openvpn --mktun --dev tun0
Tue Oct 28 15:07:56 2008 Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Tue Oct 28 15:07:56 2008 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Tue Oct 28 15:07:56 2008 Cannot open TUN/TAP dev /dev/tun0: No such file or directory (errno=2)
Tue Oct 28 15:07:56 2008 Exiting

My kernel is: 2.6.26-linode13
I have also tried with 2.6.18-something
Still there is no tun/tap device and I cannot create one. Any ideas?

Thanks


Top
   
 Post subject:
PostPosted: Tue Oct 28, 2008 3:15 pm 
Offline
Newbie

Joined: Sun Jun 15, 2008 10:03 am
Posts: 2
Hmm ok ignore my post I found it :P

I had to manually create the /dev/net/tun device with the command: mknod /dev/net/tun c 10 200


Top
   
 Post subject:
PostPosted: Thu Oct 30, 2008 6:19 am 
Offline
Newbie
User avatar

Joined: Thu Oct 30, 2008 6:18 am
Posts: 2
Website: http://www.sysack.org
apt-get install udev


Top
   
 Post subject:
PostPosted: Tue Nov 04, 2008 5:19 pm 
Offline
Newbie

Joined: Tue Nov 04, 2008 5:08 pm
Posts: 2
Just as an aside (in case you still have issues) -- I followed the guide on the Wiki, worked great: http://www.linode.com/wiki/index.php/OpenVPN


Top
   
 Post subject:
PostPosted: Fri Jul 31, 2009 8:39 pm 
Offline

Joined: Fri Jul 31, 2009 8:36 pm
Posts: 1
Website: http://www.ryanwestafer.com
tlogic wrote:
I had to manually create the /dev/net/tun device with the command: mknod /dev/net/tun c 10 200


This is exactly what worked for me. Thanks tlogic!

NB: I don't think it was specified, but this can be required on the _client_ side. My linode was an openVPN client (on Debian Etch). After adding the device on the client, it was able to connect to an openVPN server (running CentOS 5.2) in another datacenter.

NB#2: put your client settings in /etc/openvpn/client.conf and they will be run at startup.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group