generated from pavel.muhortov/template-bash
add client config template
This commit is contained in:
parent
acfbeeee5d
commit
55c12bbb16
17
README.md
17
README.md
|
@ -83,10 +83,27 @@ ____
|
||||||
|
|
||||||
Example usage:
|
Example usage:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# create client config template
|
||||||
|
sudo tee /etc/wireguard/client.conf.default > /dev/null <<'EOF'
|
||||||
|
[Interface]
|
||||||
|
Address = clientaddr/32
|
||||||
|
PrivateKey = clientprivkey
|
||||||
|
DNS = 1.1.1.1,8.8.8.8 # edit this line!
|
||||||
|
[Peer]
|
||||||
|
PublicKey = serverpublkey
|
||||||
|
AllowedIPs = 10.0.0.0/8,192.168.0.0/16 # edit this line!
|
||||||
|
Endpoint = server.public.address:51820 # edit this line!
|
||||||
|
PersistentKeepalive = 5
|
||||||
|
EOF
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# download
|
# download
|
||||||
sudo wget https://git.hmp.today/pavel.muhortov/wireguard-management/raw/branch/master/wg-client-management.sh -O /etc/wireguard/wg-client-management.sh
|
sudo wget https://git.hmp.today/pavel.muhortov/wireguard-management/raw/branch/master/wg-client-management.sh -O /etc/wireguard/wg-client-management.sh
|
||||||
sudo chmod +x /etc/wireguard/wg-client-management.sh
|
sudo chmod +x /etc/wireguard/wg-client-management.sh
|
||||||
|
# create log directory
|
||||||
|
sudo mkdir /var/log/wireguard
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
Loading…
Reference in New Issue
Block a user