* tidy up

* small wg fixes
This commit is contained in:
Mark 2022-03-28 14:53:09 +01:00
parent 2a6aaa0dc1
commit a1ea1e33ca
5 changed files with 8 additions and 14 deletions

View File

@ -9,8 +9,3 @@ DNS=1.0.0.1
# Link discovery causes some issues so disable it.
LLDP=no
[Route]
Destination=192.168.1.0/24
Gateway=192.168.1.1

View File

@ -1,6 +1,6 @@
[Network]
Address=10.0.0.2/32
Address=10.0.0.2/24
DNSOverTLS=opportunistic
@ -10,9 +10,3 @@ DNS=1.0.0.1
# Link discovery causes some issues so disable it.
LLDP=no
[Route]
Destination=10.0.0.0/24
Gateway=10.0.0.1

View File

@ -13,6 +13,9 @@ Kind=wireguard
# mode.
PrivateKey=<YOUR KEY HERE>
# DNS
DNS = 1.1.1.1, 1.0.0.1
# Your Peers.
[WireGuardPeer]
@ -27,6 +30,7 @@ PrivateKey=<YOUR KEY HERE>
# for this peer is directed.
AllowedIPs=0.0.0.0/0, ::/0
PersistentKeepalive=20
# Endpoint of a peer (for clients).
#Endpoint=<ip>:<port>

View File

@ -28,5 +28,5 @@ PrivateKey=<YOUR KEY HERE>
# Comma-separated list of IP addresses with CIDR masks from which this
# peer is allowed to send incoming traffic and to which outgoing traffic
# for this peer is directed.
AllowedIPs=10.0.0.2/32
#AllowedIPs=10.0.0.2/32

View File

@ -32,6 +32,7 @@ Only allow a range of IPs...
```
firewall-cmd --zone=public --permanent --add-source=192.168.1.0/24
firewall-cmd --zone=public --permanent --add-source=192.168.156.0/24
firewall-cmd --zone=public --permanent --add-source=10.0.0.0/24
```
Sipgate...