Skip to content
forked from dooferlad/revpn

A VPN client wrapper to take easy control of routes

License

Notifications You must be signed in to change notification settings

octoenergy/revpn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

revpn - Sonicwall with easy route control

This is a classic solving my own problem project - I use Sonicwall at work but I don't want all the routes it pushes, particularly I don't want to have the default route over the VPN because it is slower than my home internet connection.

Installing

$ go get github.com/dooferlad/revpn

Usage

First write a .revpn.yaml in your home directory:

netExtender: /usr/sbin/netExtender
vpnuser: <your username>
password: <your password>
domain: <domain you are connecting into>

vpn_host: <ip address of VPN server>:<port>

# Machines that you know by IP address that you need to be on the VPN to access
routed_hosts:
  - server.on.vpn
  - server1.on.vpn

# For machines without a DNS entry, use this list...
routed_addresses:
  - 1.1.1.1
  - 8.8.8.8
$ revpn

Notes

I use this on Ubuntu with Sonicwall NetExtender. If you would like to adapt it to run on other operating systems and with other VPN clients then I will welcome your PR.

I currently don't have any tests - honestly, it is trivial and I have been using it for a while so I don't anticipate any problems. If problems turn up, tests will be added around fixes :-)

About

A VPN client wrapper to take easy control of routes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%