Update README.md

This commit is contained in:
House of Vanity
2021-07-07 12:23:30 +03:00
committed by GitHub
parent 0c234f1adc
commit 4d1d07e040

View File

@ -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