mirror of https://github.com/OpenIPC/firmware.git
Add wireguard example
parent
f25e904ddc
commit
2867183ad4
|
@ -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
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
#
|
||||
[Interface]
|
||||
PrivateKey = *
|
||||
ListenPort = *
|
||||
#
|
||||
[Peer]
|
||||
AllowedIPs = 10.8.0.0/24
|
||||
Endpoint = *:51820
|
||||
PersistentKeepalive = 25
|
||||
PresharedKey = *
|
||||
PublicKey = *
|
||||
#
|
Loading…
Reference in New Issue