Wireguard: Unterschied zwischen den Versionen
Erscheinungsbild
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…“ |
|||
| Zeile 5: | Zeile 5: | ||
Address = 10.10.0.1/32 | Address = 10.10.0.1/32 | ||
ListenPort = 51820 | ListenPort = 51820 | ||
PrivateKey = | 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 = | #PrivateKey = ********** | ||
#ListenPort = 51820 | #ListenPort = 51820 | ||
#Address = 10.10.0.2/32 | #Address = 10.10.0.2/32 | ||
| Zeile 18: | Zeile 18: | ||
# | # | ||
#[Peer] | #[Peer] | ||
#PublicKey = | #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 = | 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 = | 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