Jump to content
Not connected, Your IP: 3.17.175.191
Sign in to follow this  
peterthepan

ANSWERED VPN does not connect - Missing tun/tap; Linux.

Recommended Posts

Hi!

 

I'm using a headless RapsberryPi, permanently connected to the VPN via OpenVPN.

Was working fine for serveral months until it stopped working over night.

 

Woke up and Rapsi could not connect to the VPN anymore.

Using Linux raspberrypi 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 armv6l GNU/Linux
 

Fri Oct  4 15:19:03 2013 OpenVPN 2.2.1 arm-linux-gnueabihf [sSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [iPv6 payload 20110424-2 (2.2RC2)] built on Jun 15 2013
Fri Oct  4 15:19:03 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Oct  4 15:19:03 2013 LZO compression initialized
Fri Oct  4 15:19:03 2013 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Fri Oct  4 15:19:03 2013 Socket Buffers: R=[163840->131072] S=[163840->131072]
Fri Oct  4 15:19:03 2013 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Fri Oct  4 15:19:03 2013 Local Options hash (VER=V4): '22188c5b'
Fri Oct  4 15:19:03 2013 Expected Remote Options hash (VER=V4): 'a8f55717'
Fri Oct  4 15:19:03 2013 UDPv4 link local: [undef]
Fri Oct  4 15:19:03 2013 UDPv4 link remote: [AF_INET]46.165.208.65:443
Fri Oct  4 15:19:03 2013 TLS: Initial packet from [AF_INET]46.165.208.65:443, sid=05d831b0 b7ec67d9
Fri Oct  4 15:19:03 2013 VERIFY OK: depth=1, /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=airvpn.org_CA/emailAddress=info@airvpn.org
Fri Oct  4 15:19:03 2013 VERIFY OK: nsCertType=SERVER
Fri Oct  4 15:19:03 2013 VERIFY OK: depth=0, /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=server/emailAddress=info@airvpn.org
Fri Oct  4 15:19:04 2013 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Fri Oct  4 15:19:04 2013 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Oct  4 15:19:04 2013 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Fri Oct  4 15:19:04 2013 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Oct  4 15:19:04 2013 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Fri Oct  4 15:19:04 2013 [server] Peer Connection Initiated with [AF_INET]46.165.208.65:443
Fri Oct  4 15:19:07 2013 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Fri Oct  4 15:19:07 2013 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 10.4.0.1,comp-lzo no,route 10.4.0.1,topology net30,ping 10,ping-restart 60,ifconfig 10.4.52.90 10.4.52.89'
Fri Oct  4 15:19:07 2013 OPTIONS IMPORT: timers and/or timeouts modified
Fri Oct  4 15:19:07 2013 OPTIONS IMPORT: LZO parms modified
Fri Oct  4 15:19:07 2013 OPTIONS IMPORT: --ifconfig/up options modified
Fri Oct  4 15:19:07 2013 OPTIONS IMPORT: route options modified
Fri Oct  4 15:19:07 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Fri Oct  4 15:19:07 2013 ROUTE default_gateway=192.168.178.1
Fri Oct  4 15:19:07 2013 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
Fri Oct  4 15:19:07 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Fri Oct  4 15:19:07 2013 /sbin/ifconfig  10.4.52.90 pointopoint 10.4.52.89 mtu 1500
SIOCSIFADDR: No such device
: ERROR while getting interface flags: No such device
SIOCSIFDSTADDR: No such device
: ERROR while getting interface flags: No such device
SIOCSIFMTU: No such device
Fri Oct  4 15:19:07 2013 Linux ifconfig failed: external program exited with error status: 1
Fri Oct  4 15:19:07 2013 Exiting

This is what I get when trying to connect.

Been stuck here for days, last resort will be starting from scratch.

Googled and tried stuff, nothing worked.

Hopefully you guys can help me :3

Share this post


Link to post

Sadly nothing of this worked :/

 

find /lib/modules/ -iname 'tun.ko.gz'

 

returned nothing. There is no tun.ko.gz anywhere.

 

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

This didn't help either. Same Error.

 

[EDIT] There is this:

 

 /lib/modules/3.6.11+/kernel/drivers/net/tun.ko

Using

sudo insmod /lib/modules/3.6.11+/kernel/drivers/net/tun.ko   

returned:

 

 Error: could not insert module /lib/modules/3.6.11+/kernel/drivers/net/tun.ko: Invalid module format

Share this post


Link to post

Okay.

Everything is working again. The tun.ko seems to be corrupt. Got another one from a friend's pi and replaced mine with it. Works now.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...