Zum Inhalt springen

Wireguard: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Simon Zeberli (Diskussion | Beiträge)
Die Seite wurde neu angelegt: „==Server Config== <syntaxhighlight line='line' lang="bash"> #Server Conf [Interface] Address = 10.10.0.1/32 ListenPort = 51820 PrivateKey = 8NH5oCGJWYZYrXvRLpU…“
 
Simon Zeberli (Diskussion | Beiträge)
 
Zeile 5: Zeile 5:
Address = 10.10.0.1/32
Address = 10.10.0.1/32
ListenPort = 51820
ListenPort = 51820
PrivateKey = 8NH5oCGJWYZYrXvRLpUhZsZk9gozAh1w0rQ/9an06nU=
PrivateKey = ********


PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Zeile 12: Zeile 12:
#Client Example ==========================================
#Client Example ==========================================
#[Interface]
#[Interface]
#PrivateKey = eK4PtvEuKtUXGwn+9+hxMwjSdhkjqJBWLT1CiiCAm2I=
#PrivateKey = **********
#ListenPort = 51820
#ListenPort = 51820
#Address = 10.10.0.2/32
#Address = 10.10.0.2/32
Zeile 18: Zeile 18:
#
#
#[Peer]
#[Peer]
#PublicKey = 63ssq4kZLUDAAuXR625I4T35+EcL7HhYVhZ/Ae96Nng=
#PublicKey = *******
#AllowedIPs = 0.0.0.0/0, ::/0
#AllowedIPs = 0.0.0.0/0, ::/0
#Endpoint = 213.221.215.115:51820
#Endpoint = 213.221.215.115:51820
Zeile 26: Zeile 26:
#Simon
#Simon
[Peer]
[Peer]
PublicKey = BkVxr//HIHPFARMdmPxqVo8cVq71VDhbVTPJYM5hKxw=
PublicKey = *******
AllowedIPs = 10.10.0.4/32
AllowedIPs = 10.10.0.4/32
Endpoint = 0.0.0.0:51820
Endpoint = 0.0.0.0:51820
Zeile 32: Zeile 32:
#Sonja
#Sonja
[Peer]
[Peer]
PublicKey = rSOwKdmuUXe4kg1WSSGgGNI9Z11PB8BWHUlC86Ft/WE=
PublicKey = ****
AllowedIPs = 10.10.0.3/32
AllowedIPs = 10.10.0.3/32
Endpoint = 85.3.149.17:51820
Endpoint = 85.3.149.17:51820
</syntaxhighlight>
</syntaxhighlight>

Aktuelle Version vom 17. Dezember 2019, 17:48 Uhr

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