[solved] tun Loading Problems

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[solved] tun Loading Problems

Postby geekinthesticks » Sat Feb 23, 2013 3:34 pm

I am trying to set up a VPN, so need to load tun. It is recognised at boot:

$this->bbcode_second_pass_code('', 'dmesg | grep tun
[ 4.095408] tun: Universal TUN/TAP device driver, 1.6
[ 4.095437] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
')

However, it doesn't appear in the list of interfaces:

ip addr show
$this->bbcode_second_pass_code('', '1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32
link/ether e2:0b:db:25:6c:fb brd ff:ff:ff:ff:ff:ff
3: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32
link/ether 8e:de:b7:00:c7:03 brd ff:ff:ff:ff:ff:ff
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether b8:27:eb:70:e1:30 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.222/24 brd 192.168.0.255 scope global eth0
inet6 fe80::ba27:ebff:fe70:e130/64 scope link
valid_lft forever preferred_lft forever
')

So what else do I need to do apart from load the kernel module?
Last edited by geekinthesticks on Mon Feb 25, 2013 9:26 am, edited 1 time in total.
geekinthesticks
 
Posts: 9
Joined: Sat Feb 23, 2013 3:01 pm

Re: tun Loading Problems

Postby moonman » Mon Feb 25, 2013 4:50 am

You loaded the module but didn't actually create any tunnels.
ip tunnel add ...

Read manpage about ip
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [solved] tun Loading Problems

Postby geekinthesticks » Mon Feb 25, 2013 9:27 am

Thanks. I was having a problem with openvpn complaining that there were no tun devices whe I started the server. However, after updating this problem has magically disappeared.
geekinthesticks
 
Posts: 9
Joined: Sat Feb 23, 2013 3:01 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 2 guests