This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wireguard_on_freshtomato [2024/10/10 17:13] – [Introduction] -Condense hogwild | wireguard_on_freshtomato [2024/11/27 21:54] (current) – [Syntax] hogwild | ||
---|---|---|---|
Line 11: | Line 11: | ||
===== Web interface or command-line configuration ===== | ===== Web interface or command-line configuration ===== | ||
- | Release 2024.1 and later include | + | Release 2024.1 and later allow Wireguard |
Line 20: | Line 20: | ||
Wireguard is not a " | Wireguard is not a " | ||
- | Before configuring Wireguard, consult the official documentation' | + | Before configuring Wireguard, consult the official documentation' |
Line 27: | Line 27: | ||
Wireguard is now available in FreshTomato' | Wireguard is now available in FreshTomato' | ||
- | Once you understand some basic principles, it is fairly simple to configure. Currently, only ARM-based devices include the code needed to run Wireguard. | + | Once you understand some basic principles, it is fairly simple to configure. Currently, only ARM-based devices include the code needed to run Wireguard. |
\\ | \\ | ||
+ | |||
+ | === Checking if Modules are Available/ | ||
+ | |||
+ | \\ If you're unsure, try loading the kernel module as follows: | ||
<code -> | <code -> | ||
Line 48: | Line 52: | ||
\\ | \\ | ||
- | If Wireguard | + | If Wireguard |
<code -> | <code -> | ||
Line 58: | Line 62: | ||
===== Syntax ===== | ===== Syntax ===== | ||
- | The first step is familiarize yourself with the '' | + | The first step is to familiarize yourself with the '' |
\\ | \\ | ||
Line 86: | Line 90: | ||
For example: | For example: | ||
- | |||
- | \\ | ||
<code -> | <code -> | ||
Line 127: | Line 129: | ||
\\ | \\ | ||
- | If that storage becomes unavailable, | + | If the storage becomes unavailable, |
+ | |||
+ | For this example, and the final setup, we' | ||
\\ | \\ | ||
Line 144: | Line 148: | ||
\\ | \\ | ||
- | The above two key generation programs should | + | The above two key generation programs should |
<code -> | <code -> | ||
Line 156: | Line 160: | ||
The content of these files must be added to the configuration file. In this case, we will call that file: " | The content of these files must be added to the configuration file. In this case, we will call that file: " | ||
- | **Do not** use the keys from this example. They are fake/hypothetical and only serve as an example. | + | **Do not** use the keys from this example. They are hypothetical and only an example. |
- | \\ The contents of the wg0.conf file on routerA are as follows: | + | |
<code -> | <code -> | ||
Line 202: | Line 206: | ||
\\ | \\ | ||
- | On a network with private addressing (behind NAT) that is unreachable from the Internet, the connection | + | On a network with private addressing (behind NAT), unreachable from the Internet, the connection |
+ | |||
+ | \\ | ||
- | Let's assume routerB is behind an unmanaged NAT device (so your WAN has a private IP) your routerA [peer] definition | + | Let's assume routerB is behind an unmanaged NAT device (your WAN has a private IP). Your routerA [peer] definition |
- | \\ \\ The necessary changes to the wg0.conf | + | \\ \\ The necessary changes to wg0.conf for this are: \\ |
<code -> | <code -> | ||
Line 218: | Line 224: | ||
\\ | \\ | ||
- | A // | + | A // |
\\ | \\ | ||
Line 230: | Line 236: | ||
{{: | {{: | ||
- | On a point-to-point connection, | + | On a point-to-point connection, |