Zum Inhalt springen

Wireguard

Aus Computech CMS Wiki

Server Config

#Server Conf
[Interface]
Address = 10.10.0.1/32
ListenPort = 51820
PrivateKey = ********

PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

#Client Example ==========================================
#[Interface]
#PrivateKey = **********
#ListenPort = 51820
#Address = 10.10.0.2/32
#DNS = 192.168.60.2
#
#[Peer]
#PublicKey = *******
#AllowedIPs = 0.0.0.0/0, ::/0
#Endpoint = 213.221.215.115:51820


#User Settings==========================================
#Simon
[Peer]
PublicKey = *******
AllowedIPs = 10.10.0.4/32
Endpoint = 0.0.0.0:51820

#Sonja
[Peer]
PublicKey = ****
AllowedIPs = 10.10.0.3/32
Endpoint = 85.3.149.17:51820