Sviluppatori del progetto NetBSD l'inclusione nel kernel principale di NetBSD del driver wg con l'implementazione del protocollo WireGuard. NetBSD è diventato il terzo sistema operativo dopo Linux e OpenBSD a integrare il supporto per WireGuard. Sono state anche proposte comandi ausiliari per la configurazione della VPN: wg-keygen e wgconfig. Nella configurazione del kernel predefinita (GENERIC), il driver non è ancora attivato e richiede una specifica indicazione nelle impostazioni "pseudo-device wg".
Inoltre, si può notare un aggiornamento correttivo del pacchetto wireguard-tools 1.0.20200820, che include utilità funzionanti nello spazio utente, come wg e wg-quick. Nel nuovo rilascio è stata preparata l'IPC per il futuro supporto di WireGuard nel sistema operativo FreeBSD. È stata effettuata una separazione in file diversi per il codice specifico delle varie piattaforme. Nel file unit per systemd è stato aggiunto il supporto per il comando "reload", che consente di eseguire costrutti come "systemctl reload wg-quick at wgnet0".
Ricordiamo che il VPN WireGuard è implementato utilizzando tecniche di crittografia moderne, garantisce prestazioni molto elevate, è facile da usare, privo di complicazioni e ha dimostrato la sua efficacia in vari grandi implementazioni che gestiscono elevate quantità di traffico. Il progetto è in sviluppo dal 2015, ha superato un audit e metodi di crittografia applicati. Il supporto per WireGuard è già integrato in NetworkManager e systemd, e le patch per il kernel sono incluse nel core delle distribuzioni , Mageia, Alpine, Arch, Gentoo, OpenWrt, NixOS, e .
In WireGuard, the concept of routing by encryption keys is applied, which involves binding a private key to each network interface and using it to link public keys. The exchange of public keys to establish a connection is analogous to SSH. To negotiate keys and connect without launching a separate user-space daemon, the Noise_IK mechanism is used from , similar to maintaining authorized_keys in SSH. Data transmission is carried out through encapsulation in UDP packets. It supports changing the VPN server's IP address (roaming) without breaking the connection, with automatic client reconfiguration.
Per la crittografia il cifrario a flusso e l'algoritmo di autenticazione dei messaggi (MAC) , sviluppati da Daniel Bernstein (), Tanja Lange
(Tanja Lange) and Peter Schwabe. ChaCha20 and Poly1305 are positioned as faster and more secure alternatives to AES-256-CTR and HMAC, with a software implementation that allows achieving fixed execution time without requiring special hardware support. The Diffie-Hellman protocol on elliptic curves is used for generating a shared secret key in the implementation of , proposta anche da Daniel Bernstein. Per l'hashing viene utilizzato l'algoritmo .
Fonte: opennet.ru
