PDA

View Full Version : [ET9x00] VIX 2.4 OpenVPN Newbie Setup



BrianFWombat
17-06-12, 20:40
Hi

Just trying to get OpenVPN working for the first time..

Sun Jun 17 20:37:59 2012 Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Sun Jun 17 20:37:59 2012 Note: Attempting fallback to kernel 2.2 TUN/TAP interface

I assume this means I don't have a tun

but

modprobe -a tun

root@et9x00:/etc/openvpn# modprobe -a tun
WARNING: Module tun not found.

Am I missing something obvious?

Thanks
BfW

BrianFWombat
17-06-12, 21:26
BTW... this was flashed from... ViX-2.4.101-et9x00_usb.zip

root@et9x00:/etc/openvpn# ls -l /lib/modules/3.3.0/kernel/drivers/net/
-rw-r--r-- 1 root root 34460 Jun 3 03:08 tun.ko

but

root@et9x00:/lib/modules/3.3.0/kernel/drivers/net# insmod tun.ko
insmod: error inserting 'tun.ko': -1 Invalid module format

?

rossi2000
17-06-12, 21:40
im using openvpn on et9200 with no issues, latest 151 build

are you using box as server or client?

post the relevant config

BrianFWombat
17-06-12, 21:44
As client...

client
dev tun
proto udp
remote topsecret.com 1234
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/keys/ca.crt
tls-client
remote-cert-tls server
auth-user-pass /etc/openvpn/password.conf
comp-lzo
verb 1
reneg-sec 0

BrianFWombat
17-06-12, 22:02
I reflashed with the same version as you mentioned, et9200 b151, and it works now.

root@et9x00:/#
root@et9x00:/# ls -l /lib/modules/3.3.0/kernel/drivers/net/tun.ko
-rw-r--r-- 1 root root 34460 Jun 3 03:08 /lib/modules/3.3.0/kernel/drivers/net/tun.ko
root@et9x00:/# modprobe -a tun
root@et9x00:/#
root@et9x00:/#

Thanks for the pointer
BfW

rossi2000
17-06-12, 23:51
good stuff. :)

BrianFWombat
23-06-12, 20:41
How do I get the tun module loaded at restart prior to VIX starting openvpn for me?

TIA
BfW