Wireguard interface template
This commit is contained in:
parent
180f30a7c9
commit
660e82bd67
2
LXC/config/wireguard/README.md
Normal file
2
LXC/config/wireguard/README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
### Wireguard config
|
||||
The config is made for the use with `wg-quick`.
|
12
LXC/config/wireguard/interface.conf
Normal file
12
LXC/config/wireguard/interface.conf
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Interface]
|
||||
PrivateKey = <Wireguard private key>
|
||||
ListenPort = 20103
|
||||
Adress = <link-local>
|
||||
PostUp = /sbin/ip a add dev %i <Our dn42 IP> peer <Peer dn42 IP>
|
||||
Table = off
|
||||
|
||||
[Peer]
|
||||
Endpoint = <Peer IP:Port>
|
||||
PublicKey = <Peer public Wireguard key>
|
||||
AllowedIPs = 172.16.0.0/12, 10.0.0.0/8, fd00::/8. fe80::/10
|
||||
|
Loading…
Reference in a new issue