From b20d8441f2e12b98abfb3d6630ce3f126a9dbd90 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 16 Feb 2019 01:11:14 +0100 Subject: [PATCH] Added IP forwarding section to VPN-article --- .../posts/wireguard-vpn-with-2-or-more-subnets.adoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/posts/wireguard-vpn-with-2-or-more-subnets.adoc b/content/posts/wireguard-vpn-with-2-or-more-subnets.adoc index 2608e8a..04fbc48 100644 --- a/content/posts/wireguard-vpn-with-2-or-more-subnets.adoc +++ b/content/posts/wireguard-vpn-with-2-or-more-subnets.adoc @@ -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