Workstation1
------------
  OS: Archlinux (x86_64)
  Kernel: 3.15.8-1-ARCH 
  IP: 10.20.7.26
  Hostname: caprica
  MAC: 60:a4:4c:52:d6:e9

VM1
---
  Qemu KVM running on Workstation1
  OS: Ubuntu Server 14.04 (x86_64)
  Kernel: 3.13.0-32-generic
  IP: 10.20.5.48 (connected to bridge on Workstation1)
  MAC: 52:54:00:12:34:56


Network scheme
-------------
                 (br0)
    VM1     ---------------   Workstation1 
itun server                   record traffic on br0
                              itun client


Trace capture procedure
-----------------------
1) Start workstation
2) Start Ubuntu VM
3) Record traffic on Workstation1
    sudo tcpdump -s 0 -i br0 -w itun.dmp
4) Start the itun server on WM1
    echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
    echo 1 | sudo tee /proc/sys/net/ipv4/icmp_echo_ignore_all
    sudo ./itun
5) NAT packets comming out of tunnel on VM1
    sudo iptables -t nat -A POSTROUTING -s 10.95.1.0/24 -j MASQUERADE
6) Start the itun client on Workstation1
    echo 1 | sudo tee /proc/sys/net/ipv4/icmp_echo_ignore_all
    sudo ./itun
7) Configure routes on Workstation1
    sudo ip route add 195.154.14.46 via 10.95.1.1
    (replace 195.154.14.46 by the current IP of nio.lu)
8) Create an SSH socks tunnel to nio.lu through the ICMP tunnel
    ssh -D 9050 -N -C -4 root@nio.lu
9) Start firefox with socks profile and load random pages
    firefox -P


Notes
-----
Source: http://itun.sourceforge.net/

config.h on Workstation1:
#define PEER_IP "10.20.5.48"
#define IFACE "tun0"
#define VPN_LOCAL_IP "10.95.1.2"
#define VPN_REMOTE_IP "10.95.1.1"
#define IFCFG "/sbin/ifconfig"
#define SEND_PKT ICMP_ECHO
#define RECV_PKT ICMP_ECHOREPLY
#define ID 65534
#define HAVE_LINUX_IF_TUN_H 1

config.h on VM1:
#define PEER_IP "10.20.7.26"
#define IFACE "tun0"
#define VPN_LOCAL_IP "10.95.1.1"
#define VPN_REMOTE_IP "10.95.1.2"
#define IFCFG "/sbin/ifconfig"
#define SEND_PKT ICMP_ECHOREPLY
#define RECV_PKT ICMP_ECHO
#define ID 65534
#define HAVE_LINUX_IF_TUN_H 1


Conclusion
----------
Covert channels plugin can successfully detect itun
