All Projects → ArgosyLabs → wgnlpy

ArgosyLabs / wgnlpy

Licence: MIT license
WireGuard + Netlink + Python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to wgnlpy

wgctl
Utility to configure and manage your WireGuard tunnels
Stars: ✭ 59 (+55.26%)
Mutual labels:  netlink, wireguard
udppunch
udppunch hole for wireguard
Stars: ✭ 123 (+223.68%)
Mutual labels:  wireguard
wg-portal
WireGuard Configuration Portal with LDAP connection
Stars: ✭ 476 (+1152.63%)
Mutual labels:  wireguard
AutoScriptVPS
VPN AutoScript
Stars: ✭ 59 (+55.26%)
Mutual labels:  wireguard
Wireguard-DNScrypt-VPN-Server
Fast setup wireguard server script, with dnscrypt and adblocking, maleware blocking, more blocking if you need. Use case eg. always on vpn and adblocking on ios or android, and be more secured in unknown networks.
Stars: ✭ 48 (+26.32%)
Mutual labels:  wireguard
wgipam
Command wgipamd implements an IP Address Management (IPAM) daemon for dynamic IP address assignment to WireGuard peers, using the wg-dynamic protocol. Apache 2.0 Licensed.
Stars: ✭ 27 (-28.95%)
Mutual labels:  wireguard
wgrest
WireGuard REST API
Stars: ✭ 92 (+142.11%)
Mutual labels:  wireguard
connect
tiny cross-platform socket API library
Stars: ✭ 46 (+21.05%)
Mutual labels:  netlink
desktop-app-ui
Official IVPN Desktop app (legacy version)
Stars: ✭ 23 (-39.47%)
Mutual labels:  wireguard
addon-tailscale
Tailscale - Home Assistant Community Add-ons
Stars: ✭ 47 (+23.68%)
Mutual labels:  wireguard
wireguard exporter
Command wireguard_exporter implements a Prometheus exporter for WireGuard devices. MIT Licensed.
Stars: ✭ 94 (+147.37%)
Mutual labels:  wireguard
wiregui
A graphical user interface for wireguard (client-side) for linux and windows
Stars: ✭ 99 (+160.53%)
Mutual labels:  wireguard
wireguard config maker
Simple Java program to create wireguard client config files
Stars: ✭ 51 (+34.21%)
Mutual labels:  wireguard
PromGuard
Prometheus scraping over WireGuard: Example Terraform/Ansible for fully authenticated/encrypted stat scraping
Stars: ✭ 24 (-36.84%)
Mutual labels:  wireguard
ethtool
Package ethtool allows control of the Linux ethtool generic netlink interface. MIT Licensed.
Stars: ✭ 47 (+23.68%)
Mutual labels:  netlink
netfilter
Pure-Go Netfilter Netlink family implementation.
Stars: ✭ 51 (+34.21%)
Mutual labels:  netlink
ansible-role-wireguard-vyatta
Ansible role for managing wireguard on vyatta based routers
Stars: ✭ 18 (-52.63%)
Mutual labels:  wireguard
warpy
A command-line program to get WARP+ as WireGuard written in python
Stars: ✭ 57 (+50%)
Mutual labels:  wireguard
desktop-app-cli
Official IVPN command-line interface (CLI)
Stars: ✭ 18 (-52.63%)
Mutual labels:  wireguard
wireguard
Wireguard for UDM
Stars: ✭ 56 (+47.37%)
Mutual labels:  wireguard

wgnlpy

Python netlink connector to WireGuard

A simple control interface for WireGuard via Netlink, written in Python.

from wgnlpy import WireGuard

interface = "wg0"
peer = b'...'

wg = WireGuard()

wg.set_peer(interface, peer,
	endpoint="203.0.113.0:51820",
	allowedips=["2001:db8::/32"],
	)
assert peer in wg.get_interface(interface).peers

wg.remove_peers(interface, peer)
assert peer not in wg.get_interface(interface).peers

Requires

Also useful: the sockaddr_in and sockaddr_in6 utility classes for sockaddr manipulation.

License: MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].