Added IP forwarding section to VPN-article
This commit is contained in:
parent
3a56b2b4e6
commit
b20d8441f2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue