项目作者: archf

项目描述 :
Easy vpn split dns setup using dnsmasq and an openconnect wrapper script. Allows juniper support.
高级语言: Makefile
项目地址: git://github.com/archf/vpn-split-dns.git
创建时间: 2016-11-18T21:15:28Z
项目社区:https://github.com/archf/vpn-split-dns

开源协议:

下载


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

  1. 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:

  1. 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:

  1. --juniper
  2. --user=foo
  3. --interface=<myifacename>
  4. <vpn gateway url>