Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/vpnhouse/tunnel

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/vpnhouse/tunnel

  • v0.5.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

GHA Go Report Card GitHub commit activity Docker pulls GitHub

VPNHouse

A basic, self-contained management service for WireGuard with a self-serve web UI.

Features

  • Self-serve and web based

  • QR-Code for convenient mobile client configuration

  • Download a client's configuration file

  • Zero external dependencies - just a single binary using the wireguard kernel module

  • Binary and container deployment

Requirements

  • A host with a kernel that supports WireGuard (all modern kernels).

  • A host with Docker installed →.

Quick start

Server

Start the server in the Docker container:

mkdir /opt/vpnhouse-data && # create a directory for the runtime data \
docker run -d \
    --name=vpnhouse-tunnel \
    --restart=always \
    --cap-add NET_ADMIN   `# add extra privilege to manage Wireguard interface` \
    -p 80:80              `# publish web admin port` \
    -p 443:443            `# publish web admin port (SSL)` \
    -p 3000:3000/udp      `# publish Wireguard port` \
    -v /opt/vpnhouse-data/:/opt/vpnhouse/tunnel/   `# mount a host directory with configs` \
    vpnhouse/tunnel:v0.3.4

Or, you may use the following docker-compose file.

Then go to http://host-ip/ for the initial setup.

Initial setup

Set the password and the network subnet for VPN clients:

Peers

Tick I have a domain name only if you have a domain, as well as a DNS record that points to this machine.

If you tick the Issue SSL certificate we will automatically obtain and renew the valid SSL certificate via LetsEncrypt.

Reverse proxy: chose this option if you have the webserver configured on this machine, and you want to use it as a reverse proxy for the VPNHouse service.

Add a VPN peer

Click "Add new" to create a connection to your new VPN server.

Give it a name and optional expiration date. The suggested IP address is perfectly valid and can be used. You don’t have to change it. But if you have a sound reason, you may activate the field and set the IP address by hand.

Peers

Use your new VPN connection

  1. Download → the official WireGuard client for your OS/device.

  2. Use the QR-code to set-up your mobile client, or follow our step-by-step guide.

QR
  1. The "Show config" button shows the configuration in the text format. Use it for the desktop client, or follow our step-by-step guide.
QR

How to update service

If you're using our docker-compose file, just change container's version inside and run:

docker-compose up -d

If you started service by docker run command as recommended in server quick start section, then just stop and remove old container and then start a new one:

docker stop vpnhouse-tunnel; docker rm -f vpnhouse-tunnel && \
docker run -d \
    --name=vpnhouse-tunnel \
    --restart=always \
    --cap-add NET_ADMIN   `# add extra privilege to manage Wireguard interface` \
    -p 80:80              `# publish web admin port` \
    -p 443:443            `# publish web admin port (SSL)` \
    -p 3000:3000/udp      `# publish Wireguard port` \
    -v /opt/vpnhouse-data/:/opt/vpnhouse/tunnel/   `# mount a host directory with configs` \
    vpnhouse/tunnel:v0.3.5

Deep dive

FAQs

Package last updated on 01 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc