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 details)

Uploaded Source

File details

Details for the file fhs-wireguard-namespace-0.1.0.tar.gz.

File metadata

  • Download URL: fhs-wireguard-namespace-0.1.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.10.2

File hashes

Hashes for fhs-wireguard-namespace-0.1.0.tar.gz
Algorithm Hash digest
SHA256 856a508fd63a3def0ad0622726cc9efb110ec4f53fa003a4c51aa31f2b0ce033
MD5 3dded8b1bb9851e0c4ce8fc2c508a545
BLAKE2b-256 6578adfd57f5b50f920871ddfcd56694b3bcf7c16d4e73f985baf51d12980ece

See more details on using hashes here.

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