init
This commit is contained in:
parent
6dcc541676
commit
92816e6f41
26
HowtoWireGuard.md
Normal file
26
HowtoWireGuard.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
|
||||
Sur le serveur :
|
||||
|
||||
~~~
|
||||
# cd /root/wg
|
||||
# umask 077
|
||||
# wg genkey > private
|
||||
# ip address add dev wg0 10.10.10.1/24
|
||||
# wg set wg0 private-key ./private
|
||||
# ip link set wg0 up
|
||||
# wg
|
||||
# wg set wg0 peer ${La clé publique du client} allowed-ips 10.10.10.2/32 endpoint ${IPLAN client:port}
|
||||
~~~
|
||||
|
||||
Sur le client :
|
||||
|
||||
~~~
|
||||
# cd /root/wg
|
||||
# umask 077
|
||||
# wg genkey > private
|
||||
# ip address add dev wg0 10.10.10.2/24
|
||||
# wg set wg0 private-key ./private
|
||||
# ip link set wg0 up
|
||||
# wg
|
||||
# wg set wg0 peer ${La clé publique du serveur} allowed-ips 10.10.10.1/32 endpoint ${IPWAN serveur:port}
|
||||
~~~
|
Loading…
Reference in a new issue