Skip to content

Commit

Permalink
Edited wireguardvpn doc for conciseness. Shortened IP forwarding sysc…
Browse files Browse the repository at this point in the history
…tl commands into 1 command. (#2300)

Co-authored-by: sspencerwire <[email protected]>
  • Loading branch information
j0eybrinkman and sspencerwire authored Aug 27, 2024
1 parent d0f38ad commit 55fb168
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions docs/guides/security/wireguard_vpn.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,12 @@ Finally, you can choose any UDP port to accept connections with WireGuard VPN. H

## Enable IP forwarding

IP forwarding allows the routing of packets between networks. To enable IP forwarding on your WireGuard server, use the below command to open the configuration file:
IP forwarding allows the routing of packets between networks. This allows internal devices to communicate with each other through the WireGuard tunnel:

```bash
sudo vim /etc/sysctl.d/99-sysctl.conf
```

Add a rule for IP forwarding. Turn on IP forwarding for IPv4 and IPv6. This allows internal devices to communicate with each other through the WireGuard tunnel:

```bash
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
```

Apply these configuration changes with:
Turn on IP forwarding for IPv4:

```bash
sudo sysctl -p
sudo sysctl -w net.ipv4.ip_forward=1 && sudo sysctl -w net.ipv6.conf.all.forwarding=1
```

## Configure `firewalld`
Expand Down

0 comments on commit 55fb168

Please sign in to comment.