Skip to main content

fhs_pia_wireguard_netns

Version

0.1.5

For changes see changelog

With this program you can create a pia vpn configuration in a namespace so that the program in the namespace only has a internet connection by the vpn.

using info out scripts and the cert found in pia-foss manual connection https://github.com/pia-foss/manual-connections.git

Usage

First create a file with the pia credentials (todo password from script)

For example file: /root/.pia.conf (yaml):

---
login:
  user: <username>
  password: <pia password>

Find a vpn server using get_regio.sh script in https://github.com/pia-foss/manual-connections.git Todo implement this get_regio.sh script in python.

Or check something like

curl "https://serverlist.piaservers.net/vpninfo/servers/v6" | jq . | less

Then run like

fhs-pia-wireguard-netns wiin <pia-vpn-server-name> <pia-vpn-server-ip> <namespace-name>

example

fhs-pia-wireguard-netns wiin frankfurt405 212.102.57.8 vpnns

Installation

I would suggest installing this in a seperate venv

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

pip install fhs-pia-wireguard-netns

# or using github

# first install fhs-wireguard-namespace as a dependancy
git clone https://github.com/foxhunt72/fhs-wireguard-namespace.git
cd fhs-wireguard-namespace
pip install .
cd ..

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

Requirements

Todo

  • flake8

  • pytest

  • coverage

  • more docs

  • port forwaring, pia script

  • get_regio, pia script

Compatibility

Linux only

Licence

MIT License

Changelog

  • 0.1.0 initial version

  • 0.1.1 fix pyyaml dependancy

  • 0.1.2 data not included in installed package (cacert missing)

  • 0.1.3 cacert still missing, fixed with a packagedata command in setup.py

Authors

fhs-pia-wireguard-netns was written by Richard de Vos.

Metadata

Release files for fhs-pia-wireguard-netns 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fhs-pia-wireguard-netns 0.1.5
File Size Uploaded Provenance Actions
fhs_pia_wireguard_netns-0.1.5.tar.gz 11.7 kB Without provenance Details for fhs_pia_wireguard_netns-0.1.5.tar.gz

Release files / fhs_pia_wireguard_netns-0.1.5.tar.gz

Download URL fhs_pia_wireguard_netns-0.1.5.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9e1578495519a4365b97dae02474a6b6f0a7984e12e5eb69852b02b89893ac68
BLAKE2b-256 checksum
How to use checksums
2e62a30be59ae4990f7da3e072ef2fd94204002ddba3bd7716494c7dd889a7a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.5

Security for fhs-pia-wireguard-netns 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page