Update wireguard.sh
This commit is contained in:
10
wireguard.sh
10
wireguard.sh
@@ -17,7 +17,7 @@ EOF
|
||||
|
||||
sleep 5
|
||||
|
||||
sudo firewall-cmd --add-service wireguard --permanent
|
||||
sudo firewall-cmd --add-service wireguard --permanent
|
||||
sudo firewall-cmd --add-masquerade --permanent
|
||||
sudo firewall-cmd --reload
|
||||
|
||||
@@ -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
|
||||
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user