Skip to content
This repository has been archived by the owner on Apr 18, 2019. It is now read-only.

craigfurman/networkmanager-vpn-web-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

networkmanager-vpn-web-ui

Moved: https://gitlab.com/craigfurman/networkmanager-vpn-web-ui

A web UI for remotely managing NetworkManager-managed VPN connections.

Why?

My target users are people who want to toggle the VPN connections of a remote Linux machine that runs NetworkManager, but aren't comfortable with the terminal. I realise the intersection of that particular Venn diagram is rather small.

I looked at mk-fg/NetworkManager-WiFi-WebUI, a similar project for managing WiFi connections over a web UI. It doesn't manage VPN connections, and I wanted the simplified deployment of Go over Python, so I knocked this together instead of contributing.

You should never expose this server on any untrusted network! It is not even slightly secure. It has no authentication/authorization concepts, and the API performs no validation on inputs.

Installation

Note that to actually manage connections, NetworkManager must have already stored the VPN credentials for the user you run the service as.

From source

go get github.com/craigfurman/networkmanager-vpn-web-ui, or otherwise clone this project into your GOPATH.

To run in dev mode: make run.

To create a distributable archive, make disttar. Untar the resulting tarball somewhere (e.g. /opt), and execute the binary.

Arch Linux

AUR.

Contributing

If this project is useful to you, please feel free to open an issue or pull request. I knocked this together in a few hours, but in the unlikely event that this is useful to others I'm open to cleaning it up.