mirror of
https://github.com/house-of-vanity/Wireguard-Peer-Manager.git
synced 2025-07-07 09:44:07 +00:00
Update README.md
This commit is contained in:
11
README.md
11
README.md
@ -8,14 +8,13 @@ Adds Wireguard peers to config, reload it and send client config back via Telegr
|
|||||||
How to use:
|
How to use:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# install python and system requirements.
|
|
||||||
$ pip3 install -r requirements.txt
|
|
||||||
$ apt install qrencode
|
|
||||||
|
|
||||||
# create initial wg config or use your own.
|
# create initial wg config or use your own.
|
||||||
# P.S. Keep in mind that WPM can't manage peers created my hands
|
# P.S. Keep in mind that WPM can't manage peers created my hands
|
||||||
# due to absence of client private key.
|
# due to absence of client private key.
|
||||||
$ cd /etc/wireguard && mkdir clients
|
$ cd /etc/wireguard && mkdir clients
|
||||||
|
$ git clone https://github.com/house-of-vanity/Wireguard-Peer-Manager wpm
|
||||||
$ cat > wg0.conf <<EOF
|
$ cat > wg0.conf <<EOF
|
||||||
[Interface]
|
[Interface]
|
||||||
Address = 10.150.200.1/24
|
Address = 10.150.200.1/24
|
||||||
@ -26,6 +25,12 @@ PostDown = iptables -D FORWARD -i %i -o %i -j ACCEPT
|
|||||||
SaveConfig = false
|
SaveConfig = false
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
$ cd wpm
|
||||||
|
|
||||||
|
# install python and system requirements.
|
||||||
|
$ apt install qrencode python3-pip
|
||||||
|
$ pip3 install -r requirements.txt
|
||||||
|
|
||||||
# Create config. It's optionally.
|
# Create config. It's optionally.
|
||||||
$ cp wpm_example.conf wpm.conf
|
$ cp wpm_example.conf wpm.conf
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user