Chmod wireguard stuff
This commit is contained in:
parent
1f196d21b6
commit
bebbf02791
2 changed files with 23 additions and 0 deletions
14
root/etc/systemd/network/99-wireguard.netdev
Executable file
14
root/etc/systemd/network/99-wireguard.netdev
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
[NetDev]
|
||||||
|
Name = wg0
|
||||||
|
Kind = wireguard
|
||||||
|
Description = ReekyNET WireGuard
|
||||||
|
|
||||||
|
[WireGuard]
|
||||||
|
PrivateKey = {{@@ env['WIREGUARD_MIRKWOOD_PRIVKEY'] @@}}
|
||||||
|
|
||||||
|
[WireGuardPeer]
|
||||||
|
PublicKey = {{@@ env['WIREGUARD_MORIA_PUBKEY'] @@}}
|
||||||
|
PresharedKey = {{@@ env['WIREGUARD_MIRKWOOD_PSK'] @@}}
|
||||||
|
AllowedIPs = 10.200.0.0/24
|
||||||
|
Endpoint = reekynet.com:48574
|
||||||
|
PersistentKeepalive = 25
|
9
root/etc/systemd/network/99-wireguard.network
Executable file
9
root/etc/systemd/network/99-wireguard.network
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
[Match]
|
||||||
|
Name = wg0
|
||||||
|
|
||||||
|
[Network]
|
||||||
|
Address = 10.200.200.2/24
|
||||||
|
|
||||||
|
[Route]
|
||||||
|
Gateway = 10.200.200.1
|
||||||
|
Destination = 10.200.200.0/24
|
Loading…
Reference in a new issue