Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 674 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 674 Bytes

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