Skip to content

Minimal python server and shell client for automatically granting access for wireguard clients to a wireguard server

Notifications You must be signed in to change notification settings

sudomesh/wiregraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Work in progress. Come back later.

This is the idea: Client shell script on OpenWRT generates pub/priv key, then makes HTTPS request to Python web server with its pubkey and asks for wireguard access. Server modifies its wireguard config adding client access and responds with unique IP and its own public key. Client finalizes its own config file and connects over wireguard.

client

opkg install curl
opkg install wireguard-tools

server

pip3 install bottle
pip3 install wgconfig

python3 server.py

ToDo

Figure out how to use wget instead of curl. wget is included per default in openwrt and curl isn't but wget doesn't urlencode automatically

About

Minimal python server and shell client for automatically granting access for wireguard clients to a wireguard server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published