[Readme] update
Signed-off-by: coja <coja@dmz.rs>
This commit is contained in:
parent
edb9f7b785
commit
a829cce278
@ -8,19 +8,6 @@ Check dmzadmin for `wireguard.gpg` to know who to contact for access
|
||||
|
||||
---
|
||||
|
||||
### Server config
|
||||
|
||||
New user/client needs to provide their wireguard `publickey` and new ip on the network needs to be assigned (`x`)
|
||||
add next lines to the bottom of the conf file - `/etc/wireguard/wg0.conf`
|
||||
|
||||
```conf
|
||||
[Peer]
|
||||
PublicKey = <client_public_key>
|
||||
AllowedIPs = 192.168.164.x/32
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Client config
|
||||
|
||||
client conf example
|
||||
@ -47,7 +34,18 @@ PersistentKeepalive = 21
|
||||
|
||||
---
|
||||
|
||||
Command to resolve ip clashing with current and wireguard network
|
||||
### Server config
|
||||
|
||||
New user/client needs to provide their wireguard `publickey` and new ip on the network needs to be assigned (`x`)
|
||||
check the server conf file `/etc/wireguard/wg0.conf` to find free address
|
||||
|
||||
```sh
|
||||
sudo wg set wg0 peer <client_public_key> allowed-ips 192.168.164.x/32
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Command to resolve ip clashing with current and wireguard network, if needed
|
||||
|
||||
```shell
|
||||
ip route add <ip> dev <wg0>
|
||||
|
Loading…
x
Reference in New Issue
Block a user