rename examples
parent
9ec86c0e0f
commit
7163803ff6
@ -1,13 +1,12 @@
|
|||||||
[Interface]
|
[Interface]
|
||||||
# Name = laptop.example-vpn.dev
|
# Name = laptop.example-vpn.dev
|
||||||
Address = 10.0.0.4/32
|
Address = 10.0.44.2/32
|
||||||
PrivateKey = OPmibSXYAAcMIYKNsWqr77zY06Kl750AEB1nWQi1T2o=
|
PrivateKey = OPmibSXYAAcMIYKNsWqr77zY06Kl750AEB1nWQi1T2o=
|
||||||
DNS = 1.1.1.1
|
DNS = 1.1.1.1
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
# Name = public-server1.example-vpn.tld
|
# Name = server.example-vpn.tld
|
||||||
Endpoint = public-server1.example-vpn.tld:51820
|
Endpoint = server.example-vpn.tld:51820
|
||||||
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
||||||
# routes traffic to itself and entire subnet of peers as bounce server
|
AllowedIPs = 0.0.0.0/0, ::/0
|
||||||
AllowedIPs = 10.0.0.1/24
|
|
||||||
PersistentKeepalive = 25
|
PersistentKeepalive = 25
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
[Interface]
|
[Interface]
|
||||||
# Name = phone.example-vpn.dev
|
# Name = phone.example-vpn.dev
|
||||||
Address = 10.0.0.5/32
|
Address = 10.0.44.3/32
|
||||||
PrivateKey = WH98AvjKKZ584ZLb69G912bNry2wOda9+kfzm+qbnUw=
|
PrivateKey = WH98AvjKKZ584ZLb69G912bNry2wOda9+kfzm+qbnUw=
|
||||||
DNS = 1.1.1.1
|
DNS = 1.1.1.1
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
# Name = public-server1.example-vpn.tld
|
# Name = server.example-vpn.tld
|
||||||
Endpoint = public-server1.example-vpn.tld:51820
|
Endpoint = server.example-vpn.tld:51820
|
||||||
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
||||||
# routes traffic to itself and entire subnet of peers as bounce server
|
AllowedIPs = 0.0.0.0/0, ::/0
|
||||||
AllowedIPs = 10.0.0.1/24
|
|
||||||
PersistentKeepalive = 25
|
PersistentKeepalive = 25
|
||||||
|
@ -1,28 +1,18 @@
|
|||||||
[Interface]
|
[Interface]
|
||||||
# Name = public-server1.example-vpn.tld
|
# Name = server.example-vpn.tld
|
||||||
Address = 10.0.0.1/24
|
Address = 10.0.44.1/24
|
||||||
ListenPort = 51820
|
ListenPort = 51820
|
||||||
PrivateKey = 2P/3ll/TxGTjGqwcWnqJMnjwPqGw7oX1RaXlPfsf2FQ=
|
PrivateKey = 2P/3ll/TxGTjGqwcWnqJMnjwPqGw7oX1RaXlPfsf2FQ=
|
||||||
DNS = 1.1.1.1
|
DNS = 1.1.1.1
|
||||||
|
PostUp = sysctl -w net.ipv4.ip_forward=1
|
||||||
[Peer]
|
PostUp = sysctl -w net.ipv6.conf.all.forwarding=1
|
||||||
# Name = public-server2.example-vpn.dev
|
|
||||||
Endpoint = public-server2.example-vpn.dev:51820
|
|
||||||
PublicKey = SceMEaVZaZfOGtGXjMsoJjhwxKHkb++9wjxqN1vm32s=
|
|
||||||
AllowedIPs = 10.0.0.2/32
|
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = home-server.example-vpn.dev
|
|
||||||
Endpoint = home-server.example-vpn.dev:51820
|
|
||||||
PublicKey = 8bSk5fATxg9qdxbK20iTGdrQ7SWvxIBhxdMo+W54pEg=
|
|
||||||
AllowedIPs = 10.0.0.3/32
|
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
# Name = laptop.example-vpn.dev
|
# Name = laptop.example-vpn.dev
|
||||||
PublicKey = BV5DjXeCugIrjvEZLo4sZ0hN5wveFTH8kOfZ1AIQ5js=
|
PublicKey = BV5DjXeCugIrjvEZLo4sZ0hN5wveFTH8kOfZ1AIQ5js=
|
||||||
AllowedIPs = 10.0.0.4/32
|
AllowedIPs = 10.0.44.2/32
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
# Name = phone.example-vpn.dev
|
# Name = phone.example-vpn.dev
|
||||||
PublicKey = VpjKa2MQKXuvttXRwJIe0LLYrtFYGQRTtmt8okUGm3A=
|
PublicKey = VpjKa2MQKXuvttXRwJIe0LLYrtFYGQRTtmt8okUGm3A=
|
||||||
AllowedIPs = 10.0.0.5/32
|
AllowedIPs = 10.0.44.3/32
|
||||||
|
@ -1,28 +1,26 @@
|
|||||||
[Interface]
|
[Interface]
|
||||||
# Name = public-server1.example-vpn.tld
|
# Name = montreal.example-vpn.tld
|
||||||
Address = 10.0.0.1/24
|
# LAN = 192.168.1.1/24
|
||||||
|
Address = 10.0.44.1/24
|
||||||
ListenPort = 51820
|
ListenPort = 51820
|
||||||
PrivateKey = 2P/3ll/TxGTjGqwcWnqJMnjwPqGw7oX1RaXlPfsf2FQ=
|
PrivateKey = 2P/3ll/TxGTjGqwcWnqJMnjwPqGw7oX1RaXlPfsf2FQ=
|
||||||
DNS = 1.1.1.1
|
DNS = 1.1.1.1
|
||||||
|
PostUp = sysctl -w net.ipv4.ip_forward=1
|
||||||
|
PostUp = sysctl -w net.ipv6.conf.all.forwarding=1
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
# Name = public-server2.example-vpn.dev
|
# Name = newyork.example-vpn.dev
|
||||||
Endpoint = public-server2.example-vpn.dev:51820
|
# LAN = 192.168.2.1/24
|
||||||
|
Endpoint = newyork.example-vpn.dev:51820
|
||||||
PublicKey = SceMEaVZaZfOGtGXjMsoJjhwxKHkb++9wjxqN1vm32s=
|
PublicKey = SceMEaVZaZfOGtGXjMsoJjhwxKHkb++9wjxqN1vm32s=
|
||||||
AllowedIPs = 10.0.0.2/32
|
AllowedIPs = 10.0.44.2/32, 192.168.2.1/24
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
# Name = home-server.example-vpn.dev
|
# Name = vancouver.example-vpn.dev
|
||||||
Endpoint = home-server.example-vpn.dev:51820
|
# LAN = 192.168.3.1/24
|
||||||
|
Endpoint = vancouver.example-vpn.dev:51820
|
||||||
PublicKey = 8bSk5fATxg9qdxbK20iTGdrQ7SWvxIBhxdMo+W54pEg=
|
PublicKey = 8bSk5fATxg9qdxbK20iTGdrQ7SWvxIBhxdMo+W54pEg=
|
||||||
AllowedIPs = 10.0.0.3/32
|
AllowedIPs = 10.0.44.3/32, 192.168.3.1/24
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = laptop.example-vpn.dev
|
|
||||||
PublicKey = BV5DjXeCugIrjvEZLo4sZ0hN5wveFTH8kOfZ1AIQ5js=
|
|
||||||
AllowedIPs = 10.0.0.4/32
|
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = phone.example-vpn.dev
|
|
||||||
PublicKey = VpjKa2MQKXuvttXRwJIe0LLYrtFYGQRTtmt8okUGm3A=
|
|
||||||
AllowedIPs = 10.0.0.5/32
|
|
||||||
|
@ -1,14 +1,26 @@
|
|||||||
[Interface]
|
[Interface]
|
||||||
# Name = public-server2.example-vpn.dev
|
# Name = newyork.example-vpn.dev
|
||||||
Address = 10.0.0.2/32
|
# LAN = 192.168.2.1/24
|
||||||
|
Address = 10.0.44.2/32
|
||||||
ListenPort = 51820
|
ListenPort = 51820
|
||||||
PrivateKey = eDwURfg8PhpUAdPp+OA9pQ5oZQYqGqY3LToUORMh220=
|
PrivateKey = eDwURfg8PhpUAdPp+OA9pQ5oZQYqGqY3LToUORMh220=
|
||||||
DNS = 1.1.1.1
|
DNS = 1.1.1.1
|
||||||
|
PostUp = sysctl -w net.ipv4.ip_forward=1
|
||||||
|
PostUp = sysctl -w net.ipv6.conf.all.forwarding=1
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
# Name = public-server1.example-vpn.tld
|
# Name = montreal.example-vpn.dev
|
||||||
Endpoint = public-server1.example-vpn.tld:51820
|
# LAN = 192.168.1.1/24
|
||||||
|
Endpoint = montreal.example-vpn.dev:51820
|
||||||
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
||||||
# routes traffic to itself and entire subnet of peers as bounce server
|
AllowedIPs = 10.0.44.1/32, 192.168.1.1/24
|
||||||
AllowedIPs = 10.0.0.1/24
|
|
||||||
PersistentKeepalive = 25
|
[Peer]
|
||||||
|
# Name = vancouver.example-vpn.dev
|
||||||
|
# LAN = 192.168.3.1/24
|
||||||
|
Endpoint = vancouver.example-vpn.dev:51820
|
||||||
|
PublicKey = 8bSk5fATxg9qdxbK20iTGdrQ7SWvxIBhxdMo+W54pEg=
|
||||||
|
AllowedIPs = 10.0.44.3/32, 192.168.3.1/24
|
||||||
|
@ -1,28 +1,26 @@
|
|||||||
[Interface]
|
[Interface]
|
||||||
# Name = public-server1.example-vpn.tld
|
# Name = vancouver.example-vpn.tld
|
||||||
Address = 10.0.0.1/24
|
# LAN = 192.168.3.1/24
|
||||||
|
Address = 10.0.44.3/24
|
||||||
ListenPort = 51820
|
ListenPort = 51820
|
||||||
PrivateKey = 2P/3ll/TxGTjGqwcWnqJMnjwPqGw7oX1RaXlPfsf2FQ=
|
PrivateKey = WN+bvd3PCWs5Pk3bvl7abWR0c1L6PCWKYRX56mjVYGo=
|
||||||
DNS = 1.1.1.1
|
DNS = 1.1.1.1
|
||||||
|
PostUp = sysctl -w net.ipv4.ip_forward=1
|
||||||
|
PostUp = sysctl -w net.ipv6.conf.all.forwarding=1
|
||||||
|
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
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = public-server2.example-vpn.dev
|
|
||||||
Endpoint = public-server2.example-vpn.dev:51820
|
|
||||||
PublicKey = SceMEaVZaZfOGtGXjMsoJjhwxKHkb++9wjxqN1vm32s=
|
|
||||||
AllowedIPs = 10.0.0.2/32
|
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
# Name = home-server.example-vpn.dev
|
# Name = montreal.example-vpn.dev
|
||||||
Endpoint = home-server.example-vpn.dev:51820
|
# LAN = 192.168.1.1/24
|
||||||
PublicKey = 8bSk5fATxg9qdxbK20iTGdrQ7SWvxIBhxdMo+W54pEg=
|
Endpoint = montreal.example-vpn.dev:51820
|
||||||
AllowedIPs = 10.0.0.3/32
|
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
||||||
|
AllowedIPs = 10.0.44.1/32, 192.168.1.1/24
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
# Name = laptop.example-vpn.dev
|
# Name = newyork.example-vpn.dev
|
||||||
PublicKey = BV5DjXeCugIrjvEZLo4sZ0hN5wveFTH8kOfZ1AIQ5js=
|
# LAN = 192.168.2.1/24
|
||||||
AllowedIPs = 10.0.0.4/32
|
Endpoint = newyork.example-vpn.dev:51820
|
||||||
|
PublicKey = SceMEaVZaZfOGtGXjMsoJjhwxKHkb++9wjxqN1vm32s=
|
||||||
[Peer]
|
AllowedIPs = 10.0.44.2/32, 192.168.2.1/24
|
||||||
# Name = phone.example-vpn.dev
|
|
||||||
PublicKey = VpjKa2MQKXuvttXRwJIe0LLYrtFYGQRTtmt8okUGm3A=
|
|
||||||
AllowedIPs = 10.0.0.5/32
|
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
[Interface]
|
[Interface]
|
||||||
# Name = laptop.example-vpn.dev
|
# Name = laptop.example-vpn.dev
|
||||||
Address = 10.0.0.4/32
|
Address = 10.0.44.2/32
|
||||||
PrivateKey = OPmibSXYAAcMIYKNsWqr77zY06Kl750AEB1nWQi1T2o=
|
PrivateKey = OPmibSXYAAcMIYKNsWqr77zY06Kl750AEB1nWQi1T2o=
|
||||||
DNS = 1.1.1.1
|
DNS = 1.1.1.1
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
# Name = public-server1.example-vpn.tld
|
# Name = server.example-vpn.tld
|
||||||
Endpoint = public-server1.example-vpn.tld:51820
|
Endpoint = server.example-vpn.tld:51820
|
||||||
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
||||||
# routes traffic to itself and entire subnet of peers as bounce server
|
AllowedIPs = 10.0.44.1/24
|
||||||
AllowedIPs = 10.0.0.1/24
|
|
||||||
PersistentKeepalive = 25
|
PersistentKeepalive = 25
|
||||||
|
@ -1,28 +1,11 @@
|
|||||||
[Interface]
|
[Interface]
|
||||||
# Name = public-server1.example-vpn.tld
|
# Name = public-server1.example-vpn.tld
|
||||||
Address = 10.0.0.1/24
|
Address = 10.0.44.1/24
|
||||||
ListenPort = 51820
|
ListenPort = 51820
|
||||||
PrivateKey = 2P/3ll/TxGTjGqwcWnqJMnjwPqGw7oX1RaXlPfsf2FQ=
|
PrivateKey = 2P/3ll/TxGTjGqwcWnqJMnjwPqGw7oX1RaXlPfsf2FQ=
|
||||||
DNS = 1.1.1.1
|
DNS = 1.1.1.1
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
# Name = public-server2.example-vpn.dev
|
# Name = client.example-vpn.dev
|
||||||
Endpoint = public-server2.example-vpn.dev:51820
|
|
||||||
PublicKey = SceMEaVZaZfOGtGXjMsoJjhwxKHkb++9wjxqN1vm32s=
|
|
||||||
AllowedIPs = 10.0.0.2/32
|
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = home-server.example-vpn.dev
|
|
||||||
Endpoint = home-server.example-vpn.dev:51820
|
|
||||||
PublicKey = 8bSk5fATxg9qdxbK20iTGdrQ7SWvxIBhxdMo+W54pEg=
|
|
||||||
AllowedIPs = 10.0.0.3/32
|
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = laptop.example-vpn.dev
|
|
||||||
PublicKey = BV5DjXeCugIrjvEZLo4sZ0hN5wveFTH8kOfZ1AIQ5js=
|
PublicKey = BV5DjXeCugIrjvEZLo4sZ0hN5wveFTH8kOfZ1AIQ5js=
|
||||||
AllowedIPs = 10.0.0.4/32
|
AllowedIPs = 10.0.44.2/32
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = phone.example-vpn.dev
|
|
||||||
PublicKey = VpjKa2MQKXuvttXRwJIe0LLYrtFYGQRTtmt8okUGm3A=
|
|
||||||
AllowedIPs = 10.0.0.5/32
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
WN+bvd3PCWs5Pk3bvl7abWR0c1L6PCWKYRX56mjVYGo=
|
|
@ -1 +0,0 @@
|
|||||||
8bSk5fATxg9qdxbK20iTGdrQ7SWvxIBhxdMo+W54pEg=
|
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# install wireguard on FreeBSD
|
|
||||||
pkg install wireguard
|
|
||||||
|
|
||||||
# install wireguard on Ubuntu
|
|
||||||
#add-apt-repository ppa:wireguard/wireguard
|
|
||||||
#apt update
|
|
||||||
#apt install wireguard
|
|
@ -1,14 +0,0 @@
|
|||||||
[Interface]
|
|
||||||
# Name = home-server.example-vpn.dev
|
|
||||||
Address = 10.0.0.3/32
|
|
||||||
ListenPort = 51820
|
|
||||||
PrivateKey = WN+bvd3PCWs5Pk3bvl7abWR0c1L6PCWKYRX56mjVYGo=
|
|
||||||
DNS = 1.1.1.1
|
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = public-server1.example-vpn.tld
|
|
||||||
Endpoint = public-server1.example-vpn.tld:51820
|
|
||||||
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
|
||||||
# routes traffic to itself and entire subnet of peers as bounce server
|
|
||||||
AllowedIPs = 10.0.0.1/24
|
|
||||||
PersistentKeepalive = 25
|
|
@ -1 +0,0 @@
|
|||||||
OPmibSXYAAcMIYKNsWqr77zY06Kl750AEB1nWQi1T2o=
|
|
@ -1 +0,0 @@
|
|||||||
BV5DjXeCugIrjvEZLo4sZ0hN5wveFTH8kOfZ1AIQ5js=
|
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# install wireguard on Ubuntu
|
|
||||||
#add-apt-repository ppa:wireguard/wireguard
|
|
||||||
#apt update
|
|
||||||
#apt install wireguard
|
|
||||||
|
|
||||||
# install wireguard on macOS
|
|
||||||
brew install wireguard-tools
|
|
@ -1,13 +0,0 @@
|
|||||||
[Interface]
|
|
||||||
# Name = laptop.example-vpn.dev
|
|
||||||
Address = 10.0.0.4/32
|
|
||||||
PrivateKey = OPmibSXYAAcMIYKNsWqr77zY06Kl750AEB1nWQi1T2o=
|
|
||||||
DNS = 1.1.1.1
|
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = public-server1.example-vpn.tld
|
|
||||||
Endpoint = public-server1.example-vpn.tld:51820
|
|
||||||
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
|
||||||
# routes traffic to itself and entire subnet of peers as bounce server
|
|
||||||
AllowedIPs = 10.0.0.1/24
|
|
||||||
PersistentKeepalive = 25
|
|
@ -1 +0,0 @@
|
|||||||
WH98AvjKKZ584ZLb69G912bNry2wOda9+kfzm+qbnUw=
|
|
@ -1 +0,0 @@
|
|||||||
VpjKa2MQKXuvttXRwJIe0LLYrtFYGQRTtmt8okUGm3A=
|
|
@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# install wireguard on iOS/Android
|
|
||||||
echo "Use the iOS App Store / Google Play Store to install WireGuard on your mobile device"
|
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo "Use the iOS/Android app to load the wg0.conf file and start Wireguard"
|
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo "Use the iOS/Android app to load the wg0.conf file and stop Wireguard"
|
|
@ -1,13 +0,0 @@
|
|||||||
[Interface]
|
|
||||||
# Name = phone.example-vpn.dev
|
|
||||||
Address = 10.0.0.5/32
|
|
||||||
PrivateKey = WH98AvjKKZ584ZLb69G912bNry2wOda9+kfzm+qbnUw=
|
|
||||||
DNS = 1.1.1.1
|
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = public-server1.example-vpn.tld
|
|
||||||
Endpoint = public-server1.example-vpn.tld:51820
|
|
||||||
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
|
||||||
# routes traffic to itself and entire subnet of peers as bounce server
|
|
||||||
AllowedIPs = 10.0.0.1/24
|
|
||||||
PersistentKeepalive = 25
|
|
@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
PEER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
||||||
wg-quick up "$PEER_DIR"/wg0.conf
|
|
||||||
wg show
|
|
@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
PEER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
||||||
wg-quick down "$PEER_DIR"/wg0.conf
|
|
||||||
wg show
|
|
@ -1,28 +0,0 @@
|
|||||||
[Interface]
|
|
||||||
# Name = public-server1.example-vpn.tld
|
|
||||||
Address = 10.0.0.1/24
|
|
||||||
ListenPort = 51820
|
|
||||||
PrivateKey = 2P/3ll/TxGTjGqwcWnqJMnjwPqGw7oX1RaXlPfsf2FQ=
|
|
||||||
DNS = 1.1.1.1
|
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = public-server2.example-vpn.dev
|
|
||||||
Endpoint = public-server2.example-vpn.dev:51820
|
|
||||||
PublicKey = SceMEaVZaZfOGtGXjMsoJjhwxKHkb++9wjxqN1vm32s=
|
|
||||||
AllowedIPs = 10.0.0.2/32
|
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = home-server.example-vpn.dev
|
|
||||||
Endpoint = home-server.example-vpn.dev:51820
|
|
||||||
PublicKey = 8bSk5fATxg9qdxbK20iTGdrQ7SWvxIBhxdMo+W54pEg=
|
|
||||||
AllowedIPs = 10.0.0.3/32
|
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = laptop.example-vpn.dev
|
|
||||||
PublicKey = BV5DjXeCugIrjvEZLo4sZ0hN5wveFTH8kOfZ1AIQ5js=
|
|
||||||
AllowedIPs = 10.0.0.4/32
|
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = phone.example-vpn.dev
|
|
||||||
PublicKey = VpjKa2MQKXuvttXRwJIe0LLYrtFYGQRTtmt8okUGm3A=
|
|
||||||
AllowedIPs = 10.0.0.5/32
|
|
@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
PEER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
||||||
wg-quick up "$PEER_DIR"/wg0.conf
|
|
||||||
wg show
|
|
@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
PEER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
||||||
wg-quick down "$PEER_DIR"/wg0.conf
|
|
||||||
wg show
|
|
@ -1,14 +0,0 @@
|
|||||||
[Interface]
|
|
||||||
# Name = public-server2.example-vpn.dev
|
|
||||||
Address = 10.0.0.2/32
|
|
||||||
ListenPort = 51820
|
|
||||||
PrivateKey = eDwURfg8PhpUAdPp+OA9pQ5oZQYqGqY3LToUORMh220=
|
|
||||||
DNS = 1.1.1.1
|
|
||||||
|
|
||||||
[Peer]
|
|
||||||
# Name = public-server1.example-vpn.tld
|
|
||||||
Endpoint = public-server1.example-vpn.tld:51820
|
|
||||||
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
|
||||||
# routes traffic to itself and entire subnet of peers as bounce server
|
|
||||||
AllowedIPs = 10.0.0.1/24
|
|
||||||
PersistentKeepalive = 25
|
|
@ -0,0 +1,12 @@
|
|||||||
|
[Interface]
|
||||||
|
# Name = server1.example-vpn.tld
|
||||||
|
Address = 10.0.44.1/24
|
||||||
|
ListenPort = 51820
|
||||||
|
PrivateKey = 2P/3ll/TxGTjGqwcWnqJMnjwPqGw7oX1RaXlPfsf2FQ=
|
||||||
|
DNS = 1.1.1.1
|
||||||
|
|
||||||
|
[Peer]
|
||||||
|
# Name = server2.example-vpn.dev
|
||||||
|
Endpoint = server2.example-vpn.dev:51820
|
||||||
|
PublicKey = SceMEaVZaZfOGtGXjMsoJjhwxKHkb++9wjxqN1vm32s=
|
||||||
|
AllowedIPs = 10.0.44.2/32
|
@ -0,0 +1,12 @@
|
|||||||
|
[Interface]
|
||||||
|
# Name = server2.example-vpn.dev
|
||||||
|
Address = 10.0.44.2/32
|
||||||
|
ListenPort = 51820
|
||||||
|
PrivateKey = eDwURfg8PhpUAdPp+OA9pQ5oZQYqGqY3LToUORMh220=
|
||||||
|
DNS = 1.1.1.1
|
||||||
|
|
||||||
|
[Peer]
|
||||||
|
# Name = server1.example-vpn.tld
|
||||||
|
Endpoint = server1.example-vpn.tld:51820
|
||||||
|
PublicKey = q/+jwmL5tNuYSB3z+t9Caj00Pc1YQ8zf+uNPu/UE1wE=
|
||||||
|
AllowedIPs = 10.0.44.1/24
|
Loading…
Reference in New Issue