Hello,
I need your help. I am implementing Mobile IP with VTUN. Main idea is to route all data through tun device via default gw (HA (or VPN server) tun dev ip). Except of course, "true" conection of VTUN.
Everything works great then I am stationary. Internet data goes through tun dev.
This is my client side configuration:
192.168.3.254 is my subnet GW.Quote:
up {
ifconfig "%% 10.3.0.150 pointopoint 10.3.0.50 mtu 1450";
route "add 192.168.2.50 gw 192.168.3.254";
route "del default";
route "add default gw 10.3.0.50";
};
192.168.2.50 is server's IP.
10.3.0.50 is server tun dev IP.
Subnet mask is /24.
Then i move to other subnet, i get my IP and default GW via DHCP.
Then VTun initialize i want, that all data go through tun, so add line: add default gw 10.3.0.50
Then problem occurs- VTun actual tunnel headers wants to go through this GW. Nonsense...
And of course- connection terminates after some time.
The Q:
how to make so, that
this {actual_gw} must be dynamic.Quote:
route "add 192.168.2.50 gw {actual_gw}";
and all other data simply goes through gw 10.3.0.50.
I would really appreciate help. because I fell stuck here and without any ideas...
Vikapone
