ArchLinux:Wireguard: Difference between revisions

From Wiki³
(Created page with "{{DISPLAYTITLE:{{TitleIcon|arch=true}} Wireguard}}<metadesc>Wireguard setup for Arch Linux using systemd and nftables.</metadesc> <div id="tocalign">__TOC__</div> {{Back|Arch...")
 
Line 7: Line 7:
Install the {{mono|wireguard-tools}} package on the machine that will manage the entire VPN.
Install the {{mono|wireguard-tools}} package on the machine that will manage the entire VPN.
{{Console|1=pikaur -S wireguard-tools}}
{{Console|1=pikaur -S wireguard-tools}}
 
On the server (or internet facing machine) enable forwarding.
{{Console|1=echo "net.ipv4.ip_forward{{=}}1" {{!}} sudo tee --append /etc/sysctl.d/50-security.conf}}
Activate forwarding as well.
{{Console|1=sudo sysctl -w net.ipv4.ip_forward{{=}}1}}


= {{Icon24|sitemap}} References =
= {{Icon24|sitemap}} References =

Revision as of 00:28, 14 May 2021

Icon Introduction

As of Linux 5.6[1] wireguard is included in the Linux kernel. Due to the use of Systemd, installation of the tools package will only be required on a single machines in order to generate keys.

Icon Wireguard Installation

Install the wireguard-tools package on the machine that will manage the entire VPN.

# pikaur -S wireguard-tools

On the server (or internet facing machine) enable forwarding.

# echo "net.ipv4.ip_forward=1" | sudo tee --append /etc/sysctl.d/50-security.conf

Activate forwarding as well.

# sudo sysctl -w net.ipv4.ip_forward=1

Icon References

  1. ^ Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
    Github: torvalds/linux@bd2463a