SixXS::Sunset 2017-06-06

Tun0 not coming up / issue with aiccu
[fr] Shadow Hawkins on Tuesday, 02 July 2013 13:07:49
I'm trying to setup a tunnel using hearbeat as I don't have a fixed ip. I'm nated. Running Osx 10.7.5. I've installed tun/tap and aiccu using brew and it worked (or looked ike it did). Here is what I get when I try to start aiccu : oulan:dev ludo$ pwd /dev oulan:dev ludo$ sudo aiccu start Password: sock_getline() : "200 SixXS TIC Service on nlhaa01.sixxs.net ready (http://www.sixxs.net)" sock_printf() : "client TIC/draft-00 AICCU/2007.01.15-console-darwin Darwin/11.4.2" sock_getline() : "200 Client Identity accepted" sock_printf() : "get unixtime" sock_getline() : "200 XXXX" sock_printf() : "username LHY3-SIXXS" sock_getline() : "200 LHY3-SIXXS choose your authentication challenge please" sock_printf() : "challenge md5" sock_getline() : "200 XXXXX" sock_printf() : "authenticate md5 XXXXX" sock_getline() : "200 Successfully logged in using md5 as LHY3-SIXXS (Ludovic Hirlimann)" sock_printf() : "tunnel show T126310" sock_getline() : "201 Showing tunnel information for T126310" sock_getline() : "TunnelId: T126310" sock_getline() : "Type: 6in4-heartbeat" sock_getline() : "IPv6 Endpoint: XXX" sock_getline() : "IPv6 POP: XXX" sock_getline() : "IPv6 PrefixLength: 64" sock_getline() : "Tunnel MTU: 1280" sock_getline() : "Tunnel Name: My First Tunnel" sock_getline() : "POP Id: frmrs01" sock_getline() : "IPv4 Endpoint: heartbeat" sock_getline() : "IPv4 POP: 78.153.240.201" sock_getline() : "UserState: enabled" sock_getline() : "AdminState: enabled" sock_getline() : "Password: XXXXX" sock_getline() : "Heartbeat_Interval: 60" sock_getline() : "202 Done" Succesfully retrieved tunnel information for T126310 sock_printf() : "QUIT Something I can never have" Tunnel Information for T126310: POP Id : frmrs01 IPv6 Local : XXXXXX IPv6 Remote : XXXXXX Tunnel Type : 6in4-heartbeat Adminstate : enabled Userstate : enabled ifconfig: interface tun0 does not exist ifconfig: interface tun0 does not exist ifconfig: interface tun0 does not exist ifconfig: interface tun0 does not exist route: writing to routing socket: Network is unreachable add net default: gateway 2a01:240:fe00:24b::1: Network is unreachable heartbeat_socket() - IPv4 : 192.168.1.12 ifconfig: interface tun0 does not exist [HB] HEARTBEAT TUNNEL 2a01:240:fe00:24b::2 sender 1372770288 5b320f6b7c307396418832cd81d4d49e [HB] HEARTBEAT TUNNEL 2a01:240:fe00:24b::2 sender 1372770288 5b320f6b7c307396418832cd81d4d49e I have tun0 oulan:dev ludo$ ls tun* tun0tun10tun12tun14tun2tun4tun6tun8 tun1tun11tun13tun15tun3tun5tun7tun9 but : oulan:dev ludo$ ifconfig tun0 ifconfig: interface tun0 does not exist I'm wondering why tun0 isn't showing up. and what I would need to do to be able to get the tunnel up again.
Tun0 not coming up / issue with aiccu
[ch] Jeroen Massar SixXS Staff on Tuesday, 02 July 2013 13:12:14
Note these two lines:
sock_getline() : "Type: 6in4-heartbeat"
[..]
ifconfig: interface tun0 does not exist
tun0 is typically used by the TUN/TAP driver, this is used for instance for AYIYA but also for other tools like OpenVPN, tinc etc. Your tunnel type though is "6in4-heartbeat", this requires a 'sit' (Simple Internet Transition) interface. Check your aiccu.conf, it likely contains a 'ipv6_interface' statement, comment it out or set it to something like 'sixxs' or 'aiccu' instead, and things will magically start working.
Tun0 not coming up / issue with aiccu
[fr] Shadow Hawkins on Tuesday, 02 July 2013 13:31:16
Jeroen Massar wrote:
tun0 is typically used by the TUN/TAP driver, this is used for instance for AYIYA but also for other tools like OpenVPN, tinc etc.
Indeed open vpn brings tun0 on when I connect to some vpn for work.
Your tunnel type though is "6in4-heartbeat", this requires a 'sit' (Simple Internet Transition) interface.
Do you have a link with more information on that.
Check your aiccu.conf, it likely contains a 'ipv6_interface' statement, comment it out or set it to something like 'sixxs' or 'aiccu' instead, and things will magically start working.
When I do this I get : Succesfully retrieved tunnel information for T126310 sock_printf() : "QUIT We will be the only two people left in the world, Yes--Adam and Evil!" Tunnel Information for T126310: POP Id : frmrs01 IPv6 Local : 2a01:240:fe00:24b::2/64 IPv6 Remote : 2a01:240:fe00:24b::1/64 Tunnel Type : 6in4-heartbeat Adminstate : enabled Userstate : enabled ifconfig: interface aiccu does not exist ifconfig: interface aiccu does not exist ifconfig: interface aiccu does not exist ifconfig: interface aiccu does not exist route: writing to routing socket: Network is unreachable add net default: gateway 2a01:240:fe00:24b::1: Network is unreachable heartbeat_socket() - IPv4 : 192.168.1.12 ifconfig: interface aiccu does not exist [HB] HEARTBEAT TUNNEL 2a01:240:fe00:24b::2 sender 1372771633 f9f1345adec3d36599d61fb70ff59b49 [HB] HEARTBEAT TUNNEL 2a01:240:fe00:24b::2 sender 1372771633 f9f1345adec3d36599d61fb70ff59b49 My aiccu config looks like : # Protocol and server to use for setting up the tunnel (defaults: none) #protocol <tic|tsp|l2tp> #server <server to use> protocol tic server tic.sixxs.net #ipv6_interface tun0 tunnel_id T126310 verbose true daemonize false automatic true requiretls false rest is commented or default. I don't understand why tun0 doesn't come up. Ludo
Tun0 not coming up / issue with aiccu
[fr] Shadow Hawkins on Tuesday, 02 July 2013 14:16:54
Ludovic Hirlimann wrote:
ifconfig: interface aiccu does not exist ifconfig: interface aiccu does not exist ifconfig: interface aiccu does not exist ifconfig: interface aiccu does not exist
What magic do I need to create and get the /dev/aiccu interface ?
Tun0 not coming up / issue with aiccu
[ch] Jeroen Massar SixXS Staff on Tuesday, 02 July 2013 14:41:48
Ludovic Hirlimann wrote:
What magic do I need to create and get the /dev/aiccu interface ?
Nothing, as there is no such device. It is an interface, that is created by the kernel on the fly. It does require that the 6in4 driver called 'sit' is either loaded already or loadable on the fly. Do a 'lsmod | grep sit' to check if that driver is loaded. Of course you'll also need a functioning IPv6 stack. Providing more details about your environment can be useful in this thread.
Tun0 not coming up / issue with aiccu
[fr] Shadow Hawkins on Tuesday, 02 July 2013 15:05:33
Jeroen Massar wrote:
Ludovic Hirlimann wrote:
What magic do I need to create and get the /dev/aiccu interface ?
Nothing, as there is no such device. It is an interface, that is created by the kernel on the fly. It does require that the 6in4 driver called 'sit' is either loaded already or loadable on the fly. Do a 'lsmod | grep sit' to check if that driver is loaded. Of course you'll also need a functioning IPv6 stack. Providing more details about your environment can be useful in this thread.
I'm running OSX 10.7.5. Connecting using the en1 network interface. What else would be useful for debugging ? Ludo
Tun0 not coming up / issue with aiccu
[ch] Jeroen Massar SixXS Staff on Tuesday, 02 July 2013 15:09:58
I'm running OSX 10.7.5. Connecting using the en1 network interface.
I should have noticed that from the AICCU output. As such, add to your aiccu.conf:
ipv6_interface gif0
That should do the trick.
Tun0 not coming up / issue with aiccu
[fr] Shadow Hawkins on Tuesday, 02 July 2013 15:52:14
Jeroen Massar wrote:
> I'm running OSX 10.7.5. Connecting using the en1 network interface. I should have noticed that from the AICCU output. As such, add to your aiccu.conf:
ipv6_interface gif0
That should do the trick.
It did - Thank you very much !!!
Tun0 not coming up / issue with aiccu
[ch] Jeroen Massar SixXS Staff on Tuesday, 02 July 2013 15:56:28
Ludovic Hirlimann wrote:
It did - Thank you very much !!!
Great, enjoy your connectivity! As a side-note for googlers: the FAQ (Where can I get the tunnel driver for Windows, Mac OS X and NetBSD?) contains details for getting 'tun0' working on OSX as that needs a separate driver.
Tun0 not coming up / issue with aiccu
[ch] Jeroen Massar SixXS Staff on Tuesday, 02 July 2013 14:39:41
Ludovic Hirlimann wrote:
Your tunnel type though is "6in4-heartbeat", this requires a 'sit' (Simple Internet Transition) interface.
Do you have a link with more information on that.
See amongst others the 6in4 page on wikipedia.
ifconfig: interface aiccu does not exist
Looks a lot like you are missing some drivers on your host. What platform/distribution is this exactly?
I don't understand why tun0 doesn't come up.
Because it should not come up. Tun0 is TUN/TAP, used for AYIYA. The tunnel you specified is a 6in4-heartbeat tunnel. See the FAQ or the above wikipedia page for some details.

Please note Posting is only allowed when you are logged in.

Static Sunset Edition of SixXS
©2001-2017 SixXS - IPv6 Deployment & Tunnel Broker