mirror of
https://github.com/pirate/wireguard-docs.git
synced 2025-10-03 14:26:18 +00:00
move examples to folders
This commit is contained in:
1
example-full/home-server/home-server.key
Normal file
1
example-full/home-server/home-server.key
Normal file
@@ -0,0 +1 @@
|
||||
WN+bvd3PCWs5Pk3bvl7abWR0c1L6PCWKYRX56mjVYGo=
|
1
example-full/home-server/home-server.key.pub
Normal file
1
example-full/home-server/home-server.key.pub
Normal file
@@ -0,0 +1 @@
|
||||
8bSk5fATxg9qdxbK20iTGdrQ7SWvxIBhxdMo+W54pEg=
|
9
example-full/home-server/setup.sh
Normal file
9
example-full/home-server/setup.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# install wireguard on FreeBSD
|
||||
pkg install wireguard
|
||||
|
||||
# install wireguard on Ubuntu
|
||||
#add-apt-repository ppa:wireguard/wireguard
|
||||
#apt update
|
||||
#apt install wireguard
|
5
example-full/home-server/start.sh
Normal file
5
example-full/home-server/start.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
PEER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
wg-quick up "$PEER_DIR"/wg0.conf
|
||||
wg show
|
5
example-full/home-server/stop.sh
Normal file
5
example-full/home-server/stop.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
PEER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
wg-quick down "$PEER_DIR"/wg0.conf
|
||||
wg show
|
14
example-full/home-server/wg0.conf
Normal file
14
example-full/home-server/wg0.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
[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
|
Reference in New Issue
Block a user