- Modificato
guniens Gli chiederò ma nel caso non l'abbia fatto
Penso abbia usato un tool altrimenti avrebbe effettuato questi passaggi e quindi saprebbe crearti una configurazione. Comunque sul server:
$ wg genkey | (umask 0077 && tee guniens.key) | wg pubkey > guniens.pub
$ wg genpsk > guniens.psk
Modifica il suo file wg0.conf aggiungendo
[Peer]
PublicKey = contenuto del file guniens.pub
PresharedKey = contenuto del file guniens.psk
AllowedIPs = 10.59.244.3/32
Quindi ricarica la configurazione del server con sudo systemctl reload wg-quick@wg0.service
La tua conf:
[Interface]
PrivateKey = contenuto del file guniens.key
Address = 10.59.244.3/24
DNS = DNS1, DNS2
[Peer]
PublicKey = chiave pubblica del server, è nel file wg0 del server nella sezione [Interface]
PresharedKey = contenuto del file guniens.psk
Endpoint = IPPUBBLICO:PORTA
AllowedIPs = 0.0.0.0/0, ::0/0
Quindi cancella i files temporanei guniens.pub, guniens.key, guniens.psk
guniens Per questo ha bisogno di me o sbaglio? Gli serve la mia chiave giusto?
Sì ma può anche creare tutto lui come ho appena scritto.