Update wireguard.sh

This commit is contained in:
2019-02-02 15:56:23 -05:00
parent 1e9d806766
commit 92565741d9

View File

@@ -26,7 +26,7 @@ sudo mkdir /etc/wireguard
wg genkey | tee /etc/wireguard/<hostname>.wg0.key | wg pubkey > /etc/wireguard/<hostname>.wg0.pub
# example of wg0.conf file
:'
: '
[Interface]
Address = 10.12.0.1/29
PrivateKey = <Private Key>
@@ -43,4 +43,10 @@ AllowedIPs = 10.12.0.2/32
[Peer]
PublicKey = <Public Key>
AllowedIPs = 10.12.0.3/32
# GauntMTA
[Peer]
PublicKey = <Public Key>
AllowedIPs = 10.12.0.4/32
'