Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.03 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.03 KB

VPN split DNS

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.

Installation

sudo make install

This will:

  • install the openconnect wrapper in your path. See openconnect wrapper below.
  • install dnsmasq custom configuration files

dnsmasq configuration

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.

openconnect wrapper

To install the wrapper script in ~/bin, just do:

make vpn

usage: sudo vpn <customer> up|down

Where is a file ~/.vpn/ of the form <customer>.conf where each line contains valid openconnect argument.

E.G:

--juniper
--user=foo
--interface=<myifacename>
<vpn gateway url>