mirror of
https://github.com/DanWin/mail-hosting.git
synced 2024-11-21 15:10:25 +00:00
Add wireguard configuration
This commit is contained in:
parent
0bb5d4ff18
commit
5d4269d172
2 changed files with 24 additions and 0 deletions
11
etc/wireguard/wg0.conf
Normal file
11
etc/wireguard/wg0.conf
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Interface]
|
||||||
|
PrivateKey = YOUR_PRIVATE_KEY
|
||||||
|
Address = 10.9.0.2/24
|
||||||
|
ListenPort = 12912
|
||||||
|
MTU = 1380
|
||||||
|
|
||||||
|
[Peer]
|
||||||
|
PublicKey = YOUR_PUBLIC_KEY
|
||||||
|
AllowedIPs = 10.9.0.1/32
|
||||||
|
Endpoint = YOUR_IP:12912
|
||||||
|
PersistentKeepalive = 25
|
13
etc_clearnet_proxy/wireguard/wg0.conf
Normal file
13
etc_clearnet_proxy/wireguard/wg0.conf
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[Interface]
|
||||||
|
Address = 10.9.0.1/24
|
||||||
|
MTU = 1380
|
||||||
|
SaveConfig = true
|
||||||
|
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
|
||||||
|
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE
|
||||||
|
ListenPort = 12912
|
||||||
|
PrivateKey = YOUR_PRIVATE_KEY
|
||||||
|
|
||||||
|
[Peer]
|
||||||
|
PublicKey = YOUR_PUBLIC_KEY
|
||||||
|
AllowedIPs = 10.9.0.2/32
|
||||||
|
Endpoint = YOUR_IP:12912
|
Loading…
Reference in a new issue