mirror of
https://github.com/pirate/wireguard-docs.git
synced 2025-10-03 14:26:18 +00:00
rename examples
This commit is contained in:
@@ -1,14 +1,26 @@
|
||||
[Interface]
|
||||
# Name = public-server2.example-vpn.dev
|
||||
Address = 10.0.0.2/32
|
||||
# Name = newyork.example-vpn.dev
|
||||
# LAN = 192.168.2.1/24
|
||||
Address = 10.0.44.2/32
|
||||
ListenPort = 51820
|
||||
PrivateKey = eDwURfg8PhpUAdPp+OA9pQ5oZQYqGqY3LToUORMh220=
|
||||
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-server1.example-vpn.tld
|
||||
Endpoint = public-server1.example-vpn.tld:51820
|
||||
# Name = montreal.example-vpn.dev
|
||||
# LAN = 192.168.1.1/24
|
||||
Endpoint = montreal.example-vpn.dev: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
|
||||
AllowedIPs = 10.0.44.1/32, 192.168.1.1/24
|
||||
|
||||
[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
|
||||
|
Reference in New Issue
Block a user