About Kvnpc and IP Routes

Hi Everybody.

I’m working with a VPN network using Kvpnc, and i can connect successfully to my target network and reach all the machines there, but i have a problem.

When i connect to the VPN i lost my general Internet and local network access.

The VPN don’t allow the clients to reach a web page, but i have normal Internet access here in my house.

So the question is, how can i access to the VPN without loosing my normal Internet connection?

If i configure KVNPC to “keep default routes” (in the routes section) i keep the access of my local network and Internet, but then cant access to the vpn network.

Only the Setting “replace default routes” works, but then i lost my local and Internet access.

Here are my normal routes without VPN connections:


altair:~ # ip route
192.168.21.0/24 dev wlan0  proto kernel  scope link  src 192.168.21.103  metric 2
default via 192.168.21.1 dev wlan0  proto static

And here are the routes when i enable the VPN and can access to all the resources in the target network:


altair:~ # ip route
190.XXX.81.XX via 192.168.21.1 dev wlan0  src 192.168.21.103  mtu 1500 advmss 1460
192.168.21.0/24 dev wlan0  proto kernel  scope link  src 192.168.21.103  metric 2
default dev tun0  scope link

So how can I access to the VPN without loosing my local/internet access ?

Thanks to everybody in advance!