Menü umschalten
Persönliches Menü umschalten
Nicht angemeldet
Your IP address will be publicly visible if you make any edits.

Wireguard: Unterschied zwischen den Versionen

Aus Hennings Wiki
(Die Seite wurde neu angelegt: „* generate QR Code <syntaxhighlight lang="bash"> apt install qrencode qrencode -t ansiutf8 < device.conf </syntaxhighlight>“)
 
Keine Bearbeitungszusammenfassung
 
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
* generate QR Code
===== install wireguard =====
<syntaxhighlight lang="bash">
echo 'deb http://deb.debian.org/debian buster-backports main contrib non-free' > /etc/apt/sources.list.d/buster-backports.list
apt update
apt install wireguard
</syntaxhighlight>
 
<syntaxhighlight lang="bash">
vim /etc/wireguard/wg0.conf
</syntaxhighlight>
 
<syntaxhighlight lang="bash">
systemctl enable wg-quick@wg0
systemctl start wg-quick@wg0
</syntaxhighlight>
 
 
===== test wireguard =====
<syntaxhighlight lang="bash">
modprobe wireguard
echo "wireguard" >> /etc/modules-load.d/modules.conf
dpkg-reconfigure wireguard-dkms
</syntaxhighlight>
 
<syntaxhighlight lang="bash">
wg show
</syntaxhighlight>
 
===== errors =====
<syntaxhighlight lang="bash">
/usr/bin/wg-quick: line 32: resolvconf: command not found
ln -s /usr/bin/resolvectl /usr/local/bin/resolvconf
</syntaxhighlight>
 
===== generate QR Code =====
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
apt install qrencode
apt install qrencode
qrencode -t ansiutf8 < device.conf
qrencode -t ansiutf8 < device.conf
</syntaxhighlight>
</syntaxhighlight>

Aktuelle Version vom 24. April 2021, 11:27 Uhr

install wireguard
echo 'deb http://deb.debian.org/debian buster-backports main contrib non-free' > /etc/apt/sources.list.d/buster-backports.list
apt update
apt install wireguard
vim /etc/wireguard/wg0.conf
systemctl enable wg-quick@wg0
systemctl start wg-quick@wg0


test wireguard
modprobe wireguard
echo "wireguard" >> /etc/modules-load.d/modules.conf
dpkg-reconfigure wireguard-dkms
wg show
errors
/usr/bin/wg-quick: line 32: resolvconf: command not found
ln -s /usr/bin/resolvectl /usr/local/bin/resolvconf
generate QR Code
apt install qrencode
qrencode -t ansiutf8 < device.conf