OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: aeazocar on August 06, 2007, 08:56:22 am

Title: Openvpn In Pdaxrom- Help Setting It Up
Post by: aeazocar on August 06, 2007, 08:56:22 am
Hi to all,

I am trying to set OpenVpn now in pdaXrom and variant (weeXpc).
With JPMATRIX's help I was able to set it up in Cacko 1.23. In other words config files work.

I have installed from one of the feeds:
OpenVpn 2.0.5
lzo 2.0.2

Created a directory to contain the configuration files:
 ~/hotspotvpn2

Change to that directory and execute "openvpn hotsoptvpn2.ovpn", tried sudo.

and I get back:
openvpn: error while loading shared libraries: liblzo2.so.2 cannot open shared object file: No such file or directory

Regards.
Alejandro.
Title: Openvpn In Pdaxrom- Help Setting It Up
Post by: kkazakov13 on August 06, 2007, 09:54:17 am
Can you try with my packages?

http://z.drun.net/packages/lzo_2.0.2_armv5tel.ipk (http://z.drun.net/packages/lzo_2.0.2_armv5tel.ipk)
http://z.drun.net/packages/openvpn_2.0.9_armv5tel.ipk (http://z.drun.net/packages/openvpn_2.0.9_armv5tel.ipk)


I used in a weekly basis without a problem.
Title: Openvpn In Pdaxrom- Help Setting It Up
Post by: aeazocar on August 06, 2007, 11:36:47 am
kkazakov13

Thank you very much for the files.
The initial problem is gone, but a new one has appeared:

Console message "Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)"

I check in the conf file and made use of tun.
After checking JPMATRIX instructions there was a tun package that I supposed defined the tun device.

Any idea in how to solve / work around this.

Again thank you very much, for your help.

Regards.
Alejandro.
Title: Openvpn In Pdaxrom- Help Setting It Up
Post by: kkazakov13 on August 07, 2007, 02:09:19 am
That's my script for starting the tunnel, maybe you can use parts of it

Code: [Select]
#!/bin/bash

modprobe tun

if [ ! -c /dev/net/tun ]; then
    mkdir -p /dev/net
    mknod /dev/net/tun c 10 200
fi

openvpn --config ./openvpn.conf --daemon
Title: Openvpn In Pdaxrom- Help Setting It Up
Post by: aeazocar on August 09, 2007, 12:08:05 am
kkazakov13

Thank you again for the replay; but I have not been able to complete the connection.

I follow the sequence of command that you use in your script:
.- Connect to the internet.
.- Open console
.- Type "modprobe tun" get Can't locate module tun
.- Type "mkdir -p /dev/net"
.- Type "mknod /dev/net/tun c 10 200"

Notes:
Reading with in the forums I found that most people put the configuration files on
     /etc/openvpn
I move the openvpn conf files there.

Now I need to tell you that I am not clear about the meaning of the following line:
   openvpn --config ./openvpn.conf --daemon

.- cd /etc/openvpn
.- Type openvpn hotspotvpn2.ovpn

Unfortunately with the same result with TUN/TAP
Console message
"Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)"
"Note: Attempting fallback to kernel 2.2 TUN/TAP interface"
"Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)"

Any further help will be appreciated, really... really appreciated.
Title: Openvpn In Pdaxrom- Help Setting It Up
Post by: kkazakov13 on August 09, 2007, 12:57:04 am
Quote
.- Type "modprobe tun" get Can't locate module tun

...

"Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)"

That's your problem.

I uploaded the tun module package for 2.4.20 kernel, that I use on my setup.

http://z.drun.net/packages/tun-module_2.4.20-1_arm.ipk (http://z.drun.net/packages/tun-module_2.4.20-1_arm.ipk)
Title: Openvpn In Pdaxrom- Help Setting It Up
Post by: aeazocar on August 09, 2007, 10:51:02 am
kkazakov13
     

Thank you again.....
I now have a working OpenVPN! in manual mode but it works  
This is very important to me, because I spent a lot of time traveling and I am force to use either hotspots or someone else network.

My goal is not to use / store any personal data in the company computer!
Now instead of traveling with:
Zaurus 3200 > goes every where with me  
IBM Z61 > company
Powerbook G4 > personal

I will take only the first 2; only need to figure out what to do about skype  

My next challenge is to automate the process based on the connection profile.
If you can point me in the right direction it will be grate, in the mean time I am starting to look in to shell scripting.

Any way thank you very much.

Regards
Alejandro.