Wireguard Server for Roadwarrior: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 21: Zeile 21:
*wg pubkey > public.key < private.key
*wg pubkey > public.key < private.key
;generating the config
;generating the config
cat client1.conf
<pre>
[Interface]
[Interface]
Address = 10.79.254.11/24
Address = 10.79.254.11/24
Zeile 30: Zeile 32:
AllowedIPs = 0.0.0.0/0, ::/0
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = nagu.xment.de:9899
Endpoint = nagu.xment.de:9899
</pre>


=Links=
=Links=
*https://blog.oxplot.com/wireguard-vpn-on-android/
*https://blog.oxplot.com/wireguard-vpn-on-android/

Version vom 18. Dezember 2019, 16:12 Uhr

Configuration

Server

  • cat /etc/wireguard/server-int.conf
[Interface]
Address =  10.79.254.1/24
PrivateKey = yBOs8znukCFcmlMKHVvDtGygrycnrWofVQZCiceJDWA=
ListenPort = 8989

[Peer]
PublicKey = qOWmpexxxxxxxxxxxxxxxxxxzoizq3yk4Mn78HMvNQCQ=
AllowedIPs = 10.79.254.11/32

Clients

Android

On server

generating the keys
  • mkdir /etc/wireguard/client1
  • cd /etc/wireguard/client1
  • wg genkey > private.key
  • wg pubkey > public.key < private.key
generating the config

cat client1.conf

[Interface]
Address = 10.79.254.11/24
PrivateKey = QMyDROKxxxxxxxxxxxxxxxxxxxxxxxxxx2JWfoCUEM=
DNS = 8.8.8.8

[Peer]
PublicKey = Vhf9LnpxxxxxxxxxxxxxxxxxxxxxxxxxxxMXT8pa1C8=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = nagu.xment.de:9899

Links