Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
debian:other-debian:wireguard-debian [2018/12/30 15:27] – michael | debian:other-debian:wireguard-debian [2021/06/15 16:41] (current) – michael | ||
---|---|---|---|
Line 10: | Line 10: | ||
< | < | ||
- | # echo "deb http:// | + | # sh -c "echo 'deb http:// |
- | # printf ' | + | # apt update |
+ | # apt install linux-headers-$(uname --kernel-release) | ||
+ | # apt install wireguard | ||
- | # apt-get update | ||
- | # apt-get install wireguard linux-headers-$(uname -r) | ||
# reboot | # reboot | ||
Line 27: | Line 27: | ||
<sxh bash; highlight: [2,6-7]> | <sxh bash; highlight: [2,6-7]> | ||
- | [Interface] | + | [Interface] |
+ | PrivateKey = <Dein privater Schlüssel [privatekey SERVER 1]> | ||
Address = 192.168.100.1/ | Address = 192.168.100.1/ | ||
- | SaveConfig = true | + | SaveConfig = true |
- | PostUp = iptables -I FORWARD -i wg0 -j ACCEPT; iptables -I FORWARD | + | PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING |
- | PostDown = iptables -F FORWARD | + | PostDown = iptables -D FORWARD |
- | ListenPort = 53666 | + | ListenPort = 123 |
- | PrivateKey = INVH3hPTDtaQVB7TkGy/ | + | |
+ | [Peer] | ||
+ | PublicKey = < | ||
+ | AllowedIPs = 192.168.0.0/ | ||
+ | PersistentKeepalive = 25 | ||
</ | </ | ||
</ | </ | ||
Line 44: | Line 48: | ||
<WRAP center box 100%> | <WRAP center box 100%> | ||
< | < | ||
- | # vim / | + | # vim / |
</ | </ | ||