Add wireguard example

pull/55/head
Igor Zalatov (from Citadel PC) 2021-09-21 16:07:01 +03:00
parent f25e904ddc
commit 2867183ad4
2 changed files with 20 additions and 1 deletions

View File

@ -28,4 +28,11 @@ iface usb0 inet dhcp
pre-up modprobe rndis_host
pre-up sleep 10
manual wg0
iface wg0 inet static
address 192.168.99.1
netmask 255.255.255.0
pre-up modprobe wireguard
pre-up ip link add dev wg0 type wireguard
pre-up wg setconf wg0 /etc/wireguard.conf
post-down ip link del dev wg0

View File

@ -0,0 +1,12 @@
#
[Interface]
PrivateKey = *
ListenPort = *
#
[Peer]
AllowedIPs = 10.8.0.0/24
Endpoint = *:51820
PersistentKeepalive = 25
PresharedKey = *
PublicKey = *
#