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
|