Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to tunnel ip over GTP (GPRS Tunnelling Protocol)

Reply
Thread Tools Display Modes

How to tunnel ip over GTP (GPRS Tunnelling Protocol)

 
 
Phil
Guest
Posts: n/a

 
      06-03-2005, 10:11 PM
I want to tunnel ip traffic over GTP, for eventual delivery to a mobile
device (e.g. mobile phone), but I have no idea how to do this and would
appreciate some pointers. GTP is a 3GPP protocol that encapsulates ip in
UDP packets.

My first thought is for individual GTP tunnels to appear as linux network
interfaces, similar to the standard GRE tunnel implementation, so that I
can take advantage of the linux routing and traffic control features.

Unfortunately I have no idea how I'd implement a tunnel (e.g. do I need
to create a kernel module) and can't find anything describing how to do
it, although I've found lots of things on how to configure one of the
existing tunnel implementations.

I may also be completely wrong and there may be a much easier way to do it
(e.g. using netfilter).

I've read the usual linux networking howtos (linux networking, advanced
routing and traffic control)

Any advice appreciated.

Regards,
Phil
 
Reply With Quote
 
 
 
 
Phil
Guest
Posts: n/a

 
      06-04-2005, 08:44 PM
> I want to tunnel ip traffic over GTP, for eventual delivery to a mobile
> device (e.g. mobile phone), but I have no idea how to do this and would
> appreciate some pointers. GTP is a 3GPP protocol that encapsulates ip in
> UDP packets.
>
> My first thought is for individual GTP tunnels to appear as linux network
> interfaces, similar to the standard GRE tunnel implementation, so that I
> can take advantage of the linux routing and traffic control features.
>
> Unfortunately I have no idea how I'd implement a tunnel (e.g. do I need
> to create a kernel module) and can't find anything describing how to do
> it, although I've found lots of things on how to configure one of the
> existing tunnel implementations.
>
> I may also be completely wrong and there may be a much easier way to do it
> (e.g. using netfilter).
>
> I've read the usual linux networking howtos (linux networking, advanced
> routing and traffic control)


I've stumbled across the tun/tap module and this looks like what I need.

Any comments?

Regards,
Phil
 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      06-04-2005, 11:48 PM
Phil wrote:

>> I've read the usual linux networking howtos (linux networking, advanced
>> routing and traffic control)

>
> I've stumbled across the tun/tap module and this looks like what I need.
>
> Any comments?


You might want to consider OpenVPN, which comes with some Linux distros.
There's also a Windows version available.

 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      06-05-2005, 01:24 PM
Phil wrote:
>>I want to tunnel ip traffic over GTP, for eventual delivery to a mobile
>>device (e.g. mobile phone), but I have no idea how to do this and would
>>appreciate some pointers. GTP is a 3GPP protocol that encapsulates ip in
>>UDP packets.
>>
>>My first thought is for individual GTP tunnels to appear as linux network
>>interfaces, similar to the standard GRE tunnel implementation, so that I
>>can take advantage of the linux routing and traffic control features.
>>
>>Unfortunately I have no idea how I'd implement a tunnel (e.g. do I need
>>to create a kernel module) and can't find anything describing how to do
>>it, although I've found lots of things on how to configure one of the
>>existing tunnel implementations.
>>
>>I may also be completely wrong and there may be a much easier way to do it
>>(e.g. using netfilter).
>>
>>I've read the usual linux networking howtos (linux networking, advanced
>>routing and traffic control)

>
>
> I've stumbled across the tun/tap module and this looks like what I need.
>
> Any comments?
>
> Regards,
> Phil


tun/tap is just an interface adapter between a network interface
and a character interface. It is intended to give an opportunity
for network traffic processing (e.g. VPN tunnel) without needing
to always compile the code into the kernel.

Both types (tun/tap) have two interfaces: one network interface and
one character interface, and the module shuffles the packets between
the interfaces: what comes in from the network interface, goes out
via the character interface and vice versa.

A tun interface is an IP interface, and a tap interface is a data
link level interface (e.g. Ethernet).

If you can route the traffic of interest via the tun/tap device,
it's pretty probably what you need.

HTH

--

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tunnelling InuY4sha Linux Networking 3 10-02-2008 03:54 PM
GPRS card connected to the GPRS network in Linux 2.6.15, can send SMS messages, but still no internet? D2army Linux Networking 10 02-19-2006 03:09 AM
GPRS card connected to the GPRS network in Linux 2.6.15, can send SMS messages, but still no internet? D2army Wireless Internet 8 02-19-2006 03:09 AM
Split Tunnelling =?Utf-8?B?U3F1aWQ=?= Windows Networking 5 04-16-2005 01:06 AM
MN-700 and VPN Tunnelling Steve F. Broadband Hardware 0 01-20-2004 05:02 PM



1 2 3 4 5 6 7 8 9 10 11