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:20] – [Web interface or command-line configuration] hogwild | wireguard_on_freshtomato [2024/11/27 21:54] (current) – [Syntax] hogwild | ||
---|---|---|---|
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 62: | Line 62: | ||
===== Syntax ===== | ===== Syntax ===== | ||
- | The first step is familiarize yourself with the '' | + | The first step is to familiarize yourself with the '' |
\\ | \\ | ||
Line 90: | Line 90: | ||
For example: | For example: | ||
- | |||
- | \\ | ||
<code -> | <code -> | ||
Line 131: | Line 129: | ||
\\ | \\ | ||
- | If that storage becomes unavailable, | + | If the storage becomes unavailable, |
+ | |||
+ | For this example, and the final setup, we' | ||
\\ | \\ | ||
Line 148: | Line 148: | ||
\\ | \\ | ||
- | The above two key generation programs should | + | The above two key generation programs should |
<code -> | <code -> | ||
Line 160: | 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 206: | 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 222: | Line 224: | ||
\\ | \\ | ||
- | A // | + | A // |
\\ | \\ | ||
Line 234: | Line 236: | ||
{{: | {{: | ||
- | On a point-to-point connection, | + | On a point-to-point connection, |