Hello,

I would like to know, is there any documentation on Mobile IP implementation
with VTUN. I found helpful site: http://mit.edu/kolya/www/mobileip/ . But I
am having problem with tun device recreating after handoff. It seems that
client side has problems with killing tun dev and starting new one.

Vykintas Klyvis

*My conf file on SERVER:
*
options {
   port 5000;

   # Path to various programs
   ifconfig   /sbin/ifconfig;
}

# Default session options
default {
   compress no;   # Compression is off
   encrypt no;    # ssh does the encryption
   speed 0;       # By default maximum speed
   keepalive yes;
   stat yes;
}


fedora {
   passwd  labutis;    # Password
   type  tun;         # IP tunnel
   proto tcp;         # TCP protocol

   up {
      # 10.3.0.1 = fake tunnel interface (home-end)
      # 10.3.0.2 = fake tunnel interface (work-end)
      # 192.168.5.0/24 = actual work network 1
      # 192.168.100.0/24 = actual work network 2
      ifconfig
        "%% 10.3.0.1 pointopoint 10.3.0.2 mtu 1450";
   };
   down{
      ifconfig "%% down";
   };
}


- Sunday May 15 2011, 15:15 -
VykisF14: options {
    port        5000;           # Listen on this port.
    syslog      daemon;         # Syslog facility
    ifconfig    /sbin/ifconfig;
}

# Default session options
default {
   compress no;   # Compression is off
   encrypt no;    # ssh does the encryption
   speed 0;       # By default maximum speed
   keepalive yes;
   stat yes;
}

# Tunnel to mobile host
fedora {            # Must match client config file
    passwd      pass;      # Must match client config file
    type        tun;            # IP tunnel
    proto       tcp;

    up {
        # Bring up the tunnel interface
    # Server's IP 192.168.2.50
        # Mobile IP of Client 192.168.2.150
    ifconfig "%% 10.3.0.1 pointopoint 192.168.2.150 mtu 1450";

        # Turn on system-wide forwarding and proxy-ARP
        program /sbin/sysctl "-w net.ipv4.ip_forward=1";
        program /sbin/sysctl "-w net.ipv4.conf.eth0.proxy_arp=1";

        # Kill off old sessions for the same mobile IP host
        program /bin/sh "-c 'ps ax | grep vtund | grep -wf
/var/run/vtund.clientname.device | grep -vw %% | awk '{print $1}' | xargs
kill'" wait;
        program /bin/sh "-c 'echo %% > /var/run/vtund.clientname.device'"
wait;
    };
}

*My conf file on CLIENT:*

options {
    port 5000;    # Connect to this port.
    timeout 30;    # General timeout

    # Path to various programs
    ifconfig    /sbin/ifconfig;
    route    /sbin/route;
}

# Default session options
default {
   compress no;   # Compression is off
   encrypt no;    # ssh does the encryption
   speed 0;       # By default maximum speed
   keepalive yes;
   stat yes;
}

fedora {            # Must match server's vtund.conf
    passwd    pass;        # Must match server's vtund.conf
    type tun;
    persist    yes;

    up {
    # Assign IP addresses.
    # Client's IP 192.168.2.100, then client moves to another subnet.
    # Server's tun dev IP 10.3.0.1
    # MIP 192.168.2.150
    ifconfig "%% 192.168.2.150 pointopoint 10.3.0.1 mtu 1450";
    route "add default gw 10.3.0.1";
    };
}
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Vtun-Users mailing list
Vtun-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vtun-users

Reply via email to