Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Control » Linux - How to use kvnet (vpn interface ) as default route ? (unable to use vpn virtual interface as default route )
  •  
morgan

Messages: 15
Karma: 2
Send a private message to this user
Hi.

I am struggling to use Kerio VPN on Linux.

I can use it in the sense that I can connect to my office LAN, however I cannot seem to use the route as my system's default route....

In this example I am connecting via mobile internet to the VPN server - as mentioned I can access the office LAN (192.168.1.0/24) - but cannot use this connection as the default route

(i.e - all I am doing is trying to be able to browse on my desktop via the office connection...)

Here is my ifconfig

(I have changed the ip addresses for security..)

------------------------------------------------------
kvnet Link encap:Ethernet HWaddr 72:01:51:e3:fc:44
inet addr:172.2.2.3 Bcast:172.27.177.255 Mask:255.255.255.0
inet6 addr: fe80::7001:51ff:fee3:fc44/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1400 Metric:1
RX packets:92 errors:0 dropped:0 overruns:0 frame:0
TX packets:125 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:9474 (9.4 KB) TX bytes:13423 (13.4 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:81 errors:0 dropped:0 overruns:0 frame:0
TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6331 (6.3 KB) TX bytes:6331 (6.3 KB)

usb0 Link encap:Ethernet HWaddr 02:e3:c3:30:0e:2f
inet addr:10.163.10.10 Bcast:10.163.141.255 Mask:255.255.255.0
inet6 addr: fe80::e3:c3ff:fe30:e2f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1564 errors:0 dropped:0 overruns:0 frame:0
TX packets:1384 errors:4 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1105539 (1.1 MB) TX bytes:113675 (113.6 KB)
------------------------------------------------------

And here is my 'route -n'

------------------------------------------------------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.163.141.188 0.0.0.0 UG 0 0 0 usb0
10.163.10.0 0.0.0.0 255.255.255.0 U 7 0 0 usb0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 usb0
172.2.2.0 0.0.0.0 255.255.255.0 U 0 0 0 kvnet
192.168.1.0 172.2.2.1 255.255.255.0 UG 1 0 0 kvnet
192.168.2.0 172.2.2.1 255.255.255.0 UG 1 0 0 kvnet
------------------------------------------------------

How can I make it so that traffic from my internet connection - i.e usb0 uses my vpn (kvnet) route -

i.e so if I went to

checkmyip.co.uk - it would show the ip from my office?

Is this possible with the Linux VPN client ?? I know that openVPN works that way, I also know the Windows client you can also.

Any help would be good, we may be forced to change to a different solution (openVPN for example does allow you to use the VPN link as the default route , and thats free...)

Regards

[Updated on: Thu, 25 October 2012 09:50]

  •  
James Bobby

Messages: 35
Karma: -1
Send a private message to this user
You should be able to set that on the VPN Server side, there's a box for that in the newer versions, alternatively add two custom routes.

0.0.0.0 mask 128.0.0.0
128.0.0.0 mask 128.0.0.0

That should make so that all traffic goes through the VPN.
  •  
Lucian Maly (Kerio)

Messages: 136
Karma: 8
Send a private message to this user

Kerio Technologies AU Pty Ltd.
  •  
morgan

Messages: 15
Karma: 2
Send a private message to this user
Thanks for the responses.

How do I go about changing the default route in Linux though ?

I often do it by deleting the default route and adding another - with the VPN though if I delete the default route I lose the VPN connection (sort of a catch 22 ...)

Any help would be welcomed

At present I am having to use NXserver (easily the best remote desktop software you can use..) over the VPN link which is o.k - but it would be infinitely easier to have a direct connection rather than hopping onto my work desktop first.

Regards
Previous Topic: Extra network not working
Next Topic: OSX Server VPN or Control VPN for Mac Clients
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Sat Oct 21 01:29:45 CEST 2017

Total time taken to generate the page: 0.00402 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.