How do I tell openconnect to use the VPN only for its route and DNS?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 23, 2013 at 1:53 PM, Robert James <srobertjames at gmail.com> wrote:
> I would like to set up openconnect in a secondary way.  That is, it should:
> * Only use the tun device for the specific nets on the VPN, but keep
> my default device and route for all other IPs
> * Not change any DNS settings
>
> In other words: add a route for the specific networks that are
> internal to the VPN, but make no other changes.

I would look at overriding set_default_route(), reset_default_route(),
MODIFYRESOLVCONF, and RESTORERESOLVCONF in vpnc-script.  See also:

http://www.infradead.org/openconnect/vpnc-script.html

Another approach is to run ocproxy, which avoids using a tun device
entirely and "hides" the VPN behind a SOCKS proxy daemon.  One
advantage of ocproxy is that DNS for VPN hosts would still work; a
disadvantage is that not all services work well over a SOCKS proxy.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux