Client computer is connected to the VPN, has two intefaces: wlan0 for internet and ppp0 for VPN.
After setting
route add default gw 192.168.2.1 wlan0 and
route add default gw 10.10.10.1 ppp0, connection to VPN works but very laggy. Access to 10.10.10.X and e.g. google.com is very slow. When computer pings 10.10.10.X and 8.8.8.8 simultaneously, I see that only one of them gets pong, when one gets, second doesn't and it rotate. I'm not sure if it make sense for you, sorry for my english.
My routing table:
Code:
default 10.10.10.1 0.0.0.0 UG 0 0 0 ppp0
default 192.168.2.1 0.0.0.0 UG 0 0 0 wlan0
10.10.10.1 * 255.255.255.255 UH 0 0 0 ppp0
<real_ip_of_10.10.10.1> 192.168.2.1 255.255.255.255 UGH 0 0 0 wlan0
loopback * 255.0.0.0 U 0 0 0 lo
192.168.2.0 * 255.255.255.0 U 0 0 0 wlan0
Can somebody say me, why don't work simultaneously(how I find out above) these two connections? And how set route on ppp0 correct.
Thanks a lot.