Skip to main content

create a namespace with a wireguard interface for connectivity

Project description

Create a namespace with a wireguard interface for connectivity, wireguard interface is created in the current namespace and moved to the requested namespace, so the vpn uses the current namespace for connectivity to the vpn server.

Usage

fhs-wireguard-namespace wgquick-up-in-ns wg5 wgnamespace

This brings up wireguard interface wg5 using /etc/wireguard/wg5.conf

Installation

python -m venv wg-venv
source wg-venv/bin/activate

git clone https://github.com/foxhunt72/fhs-wireguard-namespace.git
cd fhs-wireguard-namespace
pip install .

Requirements

  • /usr/bin/ip

  • wireguard

  • wireguard-tools

Compatibility

Linux only

Licence

MIT Licence

Authors

fhs-wireguard-namespace was written by Richard de Vos.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fhs-wireguard-namespace-0.1.0.tar.gz (9.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page