Encapsulation Framework
Tunprox: MP-DCCP/DCCP tunnel solution
Tunprox is a tunneling application designed to work with MP-DCCP. Hence, it can be used to fulfill the function of the encapsulation scheme defined within the MP-DCCP framework, complementing the MP-DCCP protocol to provide a full fledged solution capable of transporting any IP traffic across multiple access networks. This application establishes the MP-DCCP connection, provides the encapsulation and de-encapsulation functionalities and enables the corresponding virtual network interfaces (tunneling interfaces) on each end.
Tunprox is composed from a user space tool and a kernel module, the source code is available at https://github.com/telekom/tunprox and the instructions below provide the necessary steps for compilaton, installation and configuration.
Compile and install
compile the user space tool
git clone git@github.com:telekom/tunprox.git
sudo apt-get install xutils-dev
cd tunprox/ldt-tool
make
./install.sh
compile the kernel module
cd ../ldt-kmod
make
make install
depmod -a
ldt ver
Compile and install (instructions for Android)
Under construction
Setup a MP-DCCP tunnel
Enable server
ldt new tp0 # Create tunnel interface
ldt newtun tp0 -T mpdccp # Setup MP-DCCP socket
ldt setmtu tp0 -m 1300
ldt tunbind tp0 -b 192.168.102.10:1337 # Bind socket to the locat IP address intended to accept the connections
ldt serverstart tp0
ip address add 10.0.42.1 dev tp0 peer 10.0.42.2 # Assing IP address to the tunnel interface
ip link set up dev tp0
Initiate client connection
ldt new tp0 # Create tunnel interface
ldt newtun tp0 -T mpdccp # Setup MP-DCCP socket
ldt setmtu tp0 -m 1300
ldt tunbind tp0 -b 192.168.100.10:1337 # Bind socket to any local interface
ldt setpeer tp0 -r 192.168.102.10:1337 # Initiaite connection establishment with remote peer
ip address add 10.0.42.2 dev tp0 peer 10.0.42.1 # Assing IP address to the tunnel interface
ip link set up dev tp0