V roce 2019 vysla vynikajici serie clanku [1] o WG na root.cz,
dobre mi fungoval setup [2] od CloudFlare WARP [3]
a po startu PC se mi V Debian 10 automaticky vytvoril tunnel
a vse fungovalo jak ma.
Ale po re-instalaci systemu na Debian 11, proste
po nabutovani se system automaticky nepripoji (nebo pripoji do nejakeho divneho stavu)
a PC zustane ve stavu bez pripojeni ven
Nepomuze ani odpojeni WG tunelu, je treba deaktivovat "autoconnect" pomoci
sudo nmcli connection modify warp autoconnect no
a restartovat aby na PC znovu fungoalo pripojeni ....
Pro prehlednost prikladam pouzite prikazy:
#Import
sudo nmcli connection import type wireguard file warp.conf
#Check connection
sudo nmcli connection
#Display details (including private key)
sudo nmcli --show-secrets connection show warp
#Check NetworkManager config is saved
sudo cat /etc/NetworkManager/system-connections/warp.nmconnection
#Rename Connection name
sudo nmcli connection modify warp connection.id "WireGuard-doma"
#Connect if not connected
sudo nmcli connect up warp
#Disconnect
sudo nmcli connect down warp
#Display all adapters
sudo nmcli
#Disable autoconnect
sudo nmcli connection modify warp autoconnect no
#Enable autoconnect
sudo nmcli connection modify warp autoconnect yes
[1]
https://www.root.cz/serialy/wireguard-pro-jednoduchou-linuxovou-vpn/[2]
https://www.root.cz/clanky/wireguard-integrace-s-nastroji-network-manager-a-systemd/[3]
https://cf-warp.maple3142.net/warp.conf