switchman

command module
v0.0.0-...-460e163 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

README

Switchman

Build Status Godoc

switchman is a small web server to switch VPN exits. Supported VPNs:

  • Mullvad: switch between servers fetched from their API, single config (wg0.conf)
  • basic OpenVPN: switch between remote commented out with ;, single config (*.conf)
  • basic WireGuard: switch between Endpoint commented out with #, single config (wg0.conf)

It listens on TCP IPv4/IPv6 at the specified port.

Example:

$ go run . -listen :81

Setup

Clone this repo, create Debian package, install:

$ git clone github.com/StalkR/switchman
$ cd switchman
$ fakeroot debian/rules clean binary
$ sudo dpkg -i ../switchman_1-1_amd64.deb

Configure in /etc/default/switchman and start with /etc/init.d/switchman start.

License

Apache License, version 2.0.

Bugs, feature requests, questions

Create a new issue.

Documentation

Overview

Binary switchman is a small web server to switch VPN exits.

Supported VPNs:

  • Mullvad: switch between servers fetched from their API, single config (`wg0.conf`)
  • basic OpenVPN: switch between `remote` commented out with `;`, single config (`*.conf`)
  • basic WireGuard: switch between `Endpoint` commented out with `#`, single config (`wg0.conf`)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL