Blog Forum Wiki Links Contact Us NetbookUser

You are not logged in.

#26 2007-12-08 12:09:59 am

halfvulcan
Member
Registered: 2007-11-30
Posts: 81

Re: Openvpn install question/issue TUN/TAP interface

And, as pfriedel and others kept trying to tell me, a modprobe isn't necessary and, in this case, seems to be deceptive, since it was indicating that tun isn't installed when it obviously actuality is.  Otherwise it wouldn't have worked for me.

Offline

 

#27 2007-12-08 1:41:02 am

sigtim
Member
Registered: 2007-12-07
Posts: 17

Re: Openvpn install question/issue TUN/TAP interface

I've updated the Wiki to include a vpn section (vpnc & openvpn).  I tested openvpn and it works fine for me.  Didn't test vpnc but included instructions from forum.

Offline

 

#28 2007-12-11 7:45:35 pm

mlanner
New member
Registered: 2007-12-11
Posts: 3

Re: Openvpn install question/issue TUN/TAP interface

I've tried adding the Xandros repo as noted on the Wiki, but I keep on getting MD5sum mismatches. Can anyone in this thread provide the repo from which you got the OpenVPN package? I really, really want OpenVPN on my Eee PC and I'd hate to have to install another OS on it. The fast startup is the "killer app" on the Eee PC for me. smile

Thanks in advance.

Offline

 

#29 2007-12-12 4:41:42 am

digitalebola
Senior Member
Registered: 2007-11-02
Posts: 129

Re: Openvpn install question/issue TUN/TAP interface

mlanner wrote:

I've tried adding the Xandros repo as noted on the Wiki, but I keep on getting MD5sum mismatches. Can anyone in this thread provide the repo from which you got the OpenVPN package? I really, really want OpenVPN on my Eee PC and I'd hate to have to install another OS on it. The fast startup is the "killer app" on the Eee PC for me. smile

Thanks in advance.

I used one of the following - not sure which one though.

deb http://xnv4.xandros.com/4.0/pkg xandros4.0-xn main contrib non-free
deb http://ftp.us.debian.org/debian stable main

Offline

 

#30 2008-01-04 4:04:37 am

zwoop
New member
Registered: 2008-01-04
Posts: 4

Re: Openvpn install question/issue TUN/TAP interface

I think I discovered a clue about this - in my setup, I've added the /dev/net/tun as recommended. I was testing using Wireless, and was getting the FATAL: module tun not found error.

However, when I tried connecting using the wired interface, it worked!!! So can all the people who have been trying this confirm whether they were using wired or wireless?

However that still leaves me with the question - why does this work with the wired and not the wireless? Any clues anyone?

Thx.

P.S. Although it's only peripherally relevant, I'm not using OpenVPN but Check Point SNX SSL Network Extender. Once I've got it going I'll be happy to write up a HOW-TO, because it's a right royal PITA....

Offline

 

#31 2008-03-18 2:11:53 pm

benghi
New member
Registered: 2008-03-18
Posts: 1

Re: Openvpn install question/issue TUN/TAP interface

I got openvpn working on my eeePC using tap device instead of tun. I had same problems in some 2.4. and 2.6. kernels, so nothing new.

First of all do apt-get install openvpn (you have to have added additional repositories). Then

mkdir /dev/net
mknod /dev/net/tun c 10 200

then

scp -r yennefer:/etc/openvpn /etc/openvpn
(to get my configuration from another PC)

kwrite /etc/openvpn/levhart.conf

and changed the device from tap0 to tun0.

openvpn --config /etc/openvpn/levhart.conf

gave me some errors about tun and exited. Does not look good. Maybe I am doing something wrong, don't know. I got tun working only on two computers, they both had 2.2 kernel. Next time I tried tap0:

mknod /dev/tap0 c 90 128
mknod /dev/tap1 c 90 129
mknod /dev/tap2 c 90 130

...

then

openvpn --config /etc/openvpn/levhart.conf

and I got another error - user nobody does not exist. I changed it to root (unsafe, but...) and gave it another chance.

And now I have openvpn working ;-)

/etc/openvpn/levhart.conf:


remote ##CENSORED##.org
ifconfig 192.168.18.19 255.255.255.0
port 2046
proto tcp-client
dev tap0
secret /etc/openvpn/levsoft.secret
ping 10
verb 5
mute 10
route 192.168.24.0 255.255.255.0 192.168.18.16
user root
group root

Offline

 

#32 2008-06-08 9:35:59 pm

worthoh
Member
Registered: 2008-04-14
Posts: 15

Re: Openvpn install question/issue TUN/TAP interface

OK, because of my VPN server, I need to compile the latest beta version of openvpn, but I cannot find the openssl development packages for the Eee.  Anyone know where to find those?


Eee 4G running 2GB RAM-enabled & iptables kernel

Offline

 

#33 2008-06-09 12:34:15 am

plodr
Moderator
From: PA
Registered: 2007-12-30
Posts: 4839

Re: Openvpn install question/issue TUN/TAP interface

There are taralls here
http://www.openssl.org/


4G Pearl White, 1 GB RAM, Xandros Easy Mode
HP5550 networked printer
Registered Linux User # 401459

Offline

 

#34 2008-06-09 11:34:45 am

worthoh
Member
Registered: 2008-04-14
Posts: 15

Re: Openvpn install question/issue TUN/TAP interface

I'll go grab those, but I wasn't sure if there were some eee/xandros-specific ones I should be using.


Eee 4G running 2GB RAM-enabled & iptables kernel

Offline

 

#35 2008-06-09 9:07:41 pm

plodr
Moderator
From: PA
Registered: 2007-12-30
Posts: 4839

Re: Openvpn install question/issue TUN/TAP interface

I have openssl installed and it is v 0.9.8c-4etch3 it was updated to this thru synaptic.
I don't remember what repository I got it from. I also do not know if that is the latest version or even if you need more things than just the openssl package.


4G Pearl White, 1 GB RAM, Xandros Easy Mode
HP5550 networked printer
Registered Linux User # 401459

Offline

 

#36 2009-04-21 2:18:09 pm

Keogh
New member
Registered: 2009-04-21
Posts: 1

Re: Openvpn install question/issue TUN/TAP interface

Hi all,

I was taking a look to this post and I have a question that I cannot solve myself.
How can I create a virtual interface tap0 with an static ip inside my eee pc?

I was trying to create tun/tap inside the dev/net as you said.
But I cannot assign an IP.
Is it related with this post? if not, my apologies

I tried to use tunclt but doesn't work, and also configure it in the interfaces file, but never appears when I type 'ip a' sad

Maybe I make a wrong syntax in the file:

auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0. up
down ifconfig $IFACE down

I tried also static

auto tap0
iface tap0 inet static
address 192.168.1.1
netmask 255.255.255.0

but I get and error when reestarting the network:
SIOCSIADRR: no such device
tap0: ERROR whhile getting interface flags: no such device
SIOCSINFNETMASK:  no such device
tap0: ERROR whhile getting interface flags: no such device
tunctl_user systema

Thanks a lot for you help

Last edited by Keogh (2009-04-21 2:59:42 pm)

Offline

 

#37 2009-04-21 3:09:21 pm

spg666
Senior Member
From: uk
Registered: 2007-12-24
Posts: 180
Website

Re: Openvpn install question/issue TUN/TAP interface

This my client config, (I've changed the url & port),

remote xyz.org
port 1234
dev tap
ca ca.crt
cert client.crt
key client.key
client
resolv-retry infinite
nobind
mute-replay-warnings
comp-lzo
verb 4
mute 20

The open vpn server assigns the the ip address to the client. If you want any more info let me  know and I'll post the server config when i get to work tomorrow.


White EeePC 1000 with a wifi card donated by my dead 701, running Default Xandros (KDE Desktop) & BT3
     "Gaffer tape is like the force, it has a light side, a dark side and it holds the universe together"

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson