Added IP forwarding section to VPN-article

This commit is contained in:
tastytea 2019-02-16 01:11:14 +01:00
parent 3a56b2b4e6
commit b20d8441f2
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 12 additions and 0 deletions

View File

@ -40,6 +40,14 @@ wg genkey | tee privatekey | wg pubkey > publickey
== Configure servers
.Turn on IP forwarding:
----
{{< highlight sh >}}
echo "net.ipv6.conf.all.forwarding = 1" > /etc/sysctl.d/ip-forward.conf
sysctl -p /etc/sysctl.d/ip-forward.conf
{{< / highlight >}}
----
.`server1:/etc/wireguard/wg0.conf`:
----
{{< highlight cfg >}}
@ -150,3 +158,7 @@ Run `wg-quick up wg0` on each peer.
The article https://www.stavros.io/posts/how-to-configure-wireguard/[How to easily configure WireGuard]
by Stavros Korokithakis helped me a great deal in understanding WireGuard.
== Updates
* Updated 2019-02-16 to include IP forwarding