Easy vpn split dns setup using dnsmasq and an openconnect wrapper script. Allows juniper support.
This has been mainly tested on Ubuntu 16.04 LTS.
Purpose of this is to handle properly split DNS properly with VPN connections
out of Network Manager. Will be required as long as juniper is not supported
through NetworkManager.
sudo make install
This will:
All files you put under ~/.vpn/dnsmasq.d/
will be moved to/etc/NetworkManager/dnsmasq.d/
. This allows to explicitly configure upstream
servers for dnsmasq when using split DNS for connections not managed by
NetworkManager and avoid DNS leak.
To install the wrapper script in ~/bin
, just do:
make vpn
usage: sudo vpn <customer> up|down
Where ~/.vpn/
of the form <customer>.conf
where each
line contains valid openconnect argument.
E.G:
--juniper
--user=foo
--interface=<myifacename>
<vpn gateway url>