Last active
July 3, 2019 16:09
-
-
Save psct/fd28ae03e176d685babe82dfd7189bc9 to your computer and use it in GitHub Desktop.
Konfigurationsdateien für WireGuard-Server auf Raspberry Pi Zero
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./etc/ddclient/ddclient.conf | |
protocol=dynv6 | |
use=web,if=wlan0 | |
password='Bwt...C9e' | |
meinwgv4.dynv6.net | |
protocol=dynv6 | |
usev6=if,if=wlan0 | |
password='Bwt...C9e' | |
meinwgv6.dynv6.net | |
./etc/network/interfaces | |
# interfaces(5) file used by ifup(8) and ifdown(8) | |
# Please note that this file is written to be used with dhcpcd | |
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' | |
# Include files from /etc/network/interfaces.d: | |
source-directory /etc/network/interfaces.d | |
auto wlan0 | |
iface wlan0 inet dhcp | |
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | |
wireless-power off | |
iface wlan0 inet6 auto | |
auto wg0 | |
iface wg0 inet static | |
address 192.168.42.1 | |
netmask 255.255.255.0 | |
pre-up ip link add wg0 type wireguard | |
pre-up wg setconf wg0 /etc/wireguard/wg0.conf | |
up ip link set wg0 up | |
down ip link delete wg0 | |
iface wg0 inet6 static | |
address fd00:42::1 | |
netmask 64 | |
./etc/sysctl.d/wireguard.conf | |
net.ipv4.ip_forward=1 | |
net.ipv6.conf.all.forwarding=1 | |
./etc/wireguard/client1.key | |
KKq...z3g= | |
./etc/wireguard/clients/client1.conf | |
[Interface] | |
PrivateKey=KKq...z3g= | |
Address=192.168.42.100/24,fd00:42::100/64 | |
DNS=1.1.1.1,2606:4700:4700::1111 | |
[Peer] | |
PublicKey=No8...V2k= | |
Endpoint=meingv4.dynv6.net:25366 | |
AllowedIPs=0.0.0.0/0, ::0/0 | |
./etc/wireguard/server.key | |
CCW...yFI= | |
./etc/wireguard/wg0.conf | |
[Interface] | |
PrivateKey=CCW...yFI= | |
ListenPort=40404 | |
[Peer] | |
PublicKey=iIL...Oxk= | |
AllowedIPs=192.168.42.100,fd00:42::100 | |
./etc/wpa_supplicant/wpa_supplicant.conf | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="zuhause" | |
psk="GeheimGeheim" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment