LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-26-2010, 09:43 PM   #1
lefranco
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
TUN/TAP driver with IPv6 - tun0 does not deliver info to user space


Hi,

I use an application that encapsulates IPv4 packets in an IPv4 tunnel using the TUN/TAP driver in Linux. There is a fancy protocol used between the 2 layers. This software works like a charm.

I have started modifying the source code in order to send IPv6 packets in an IPv4 tunnel. So far, the software seems to work fine but the information (packets) does not seem to make their way back to the user space.

I initiate an ICMPv6 packet with ping6. It gets in the tun0 interface. The software makes the IPv4 encapsulation and sends the information out of the system. The ICMPv6 echo reply comes back to the system with the corresponding encapsulation. The software removes the encapsulation and writes the packet in the tun0 interface. The ping6 application never receives ICMPv6 echo reply.

I have confirmed the integrity of the transaction using tcpdump on the tun0 interface. The interface comes up with the "inet 6 addr" only. The interface has the flags "UP POINTOPOINT RUNNING". The RX/TX counters are incrementing and no drops are observed at the interface level.

How can I troubleshoot this problem? There seems to be a lost link between the tun0 driver and the user space applications. The system uses SuSE Linux Enterprise 10 SP1. This is based on kernel 2.6.16. This is quite old.

Any help will be greatly appreciated!

Thanks,

Claude.
 
Old 10-27-2010, 09:28 AM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Firewall rules on the interface maybe?
 
Old 10-29-2010, 06:30 PM   #3
lefranco
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hi,

Thanks for your help. I did check the ipv6 firewall rules. That is not a problem.

Since the kernel was a bit old, I decided to install a new SLES 11.1 system (2.6.27). I recompiled the exact same code on this new system and the software works like a charm!

I think the SLES 10.1 (2.6.19) has an issue with the tun/tap driver and IPv6.

Regards,

Claude.
 
Old 10-29-2010, 06:31 PM   #4
lefranco
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry. SLES 10.1 is based on 2.6.16.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tun/Tap driver - IPv4 in IPv6 the_ionic Linux - Networking 3 04-17-2010 07:48 PM
"getting" the TAP/TUN Device Driver.. A64 architecture jpena Linux - Networking 0 02-23-2007 12:36 AM
Unable to install a Tun/Tap driver on a 2.6.18 kernel Slackware 11 Exterminator34 Slackware 4 12-01-2006 02:40 PM
Tun module loaded, how to create tun0? swiftnet Linux - Software 0 09-05-2005 05:20 PM
Universal tun/tap device driver support giddyupman Linux - Networking 4 05-14-2004 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration