Skip to content

Easy vpn split dns setup using dnsmasq and an openconnect wrapper script. Allows juniper support.

Notifications You must be signed in to change notification settings

archf/vpn-split-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Easy vpn split dns setup using dnsmasq and an openconnect wrapper script. Allows juniper support.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published