Initial apps
This commit is contained in:
parent
56b56ec41b
commit
f9c929b501
17 changed files with 101 additions and 0 deletions
10
wireguard/config/templates/peer.conf
Normal file
10
wireguard/config/templates/peer.conf
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Interface]
|
||||
Address = ${CLIENT_IP}
|
||||
PrivateKey = $(cat /config/${PEER_ID}/privatekey-${PEER_ID})
|
||||
ListenPort = 51820
|
||||
DNS = ${PEERDNS}
|
||||
|
||||
[Peer]
|
||||
PublicKey = $(cat /config/server/publickey-server)
|
||||
Endpoint = ${SERVERURL}:${SERVERPORT}
|
||||
AllowedIPs = ${ALLOWEDIPS}
|
||||
6
wireguard/config/templates/server.conf
Normal file
6
wireguard/config/templates/server.conf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[Interface]
|
||||
Address = ${INTERFACE}.1
|
||||
ListenPort = 51820
|
||||
PrivateKey = $(cat /config/server/privatekey-server)
|
||||
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
|
||||
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
|
||||
Loading…
Add table
Add a link
Reference in a new issue