-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwg-example.conf
23 lines (19 loc) · 950 Bytes
/
wg-example.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This is an example for your wg0.conf file. Usually, this would be at /etc/wireguard/wg0.conf.
# I recommend using a setup script to setup your wireguard server. I use this one:
# https://github.com/l-n-s/wireguard-install
# ------------------ Start config file ------------------- #
# <server public key>
# !! do NOT forget the line above! HEY LOOK AT ME!!!! LISTEN TO ME!!!!
[Interface]
Address = 10.9.0.1/24
# or whatever private subnet you use
ListenPort = 56785
# or whatever port you use
PrivateKey = <server private key>
SaveConfig = false
# !! has to be false, or WireGuard will overwrite this config file
# append any default peers you have that you want to load by default
# for example, the tunnel you use to acess the API an go here
# keep in mind the allowedIPs generated by the API only starts at 10,
# so you may put 2-9 here, or a completely different subnet, whatever
# ------------------ End config file -------------------- #