This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| vpn-wireguard [2025/09/16 16:21] – [Import Config from file] hogwild | vpn-wireguard [2025/11/19 20:30] (current) – [Problem: Traffic flowing in one Direction] -Change to: " hogwild | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| Note that tabs or other interface components in your menus may be different colours, depending on which web interface theme is chosen in the Admin Access menu. | Note that tabs or other interface components in your menus may be different colours, depending on which web interface theme is chosen in the Admin Access menu. | ||
| - | This HOWTO: | + | For an introduction to WireGuard, and some basic theory, the [[wireguard_on_freshtomato|Set up WireGuard]] |
| Unless using an external VPN provider, it's best to " | Unless using an external VPN provider, it's best to " | ||
| Line 99: | Line 99: | ||
| \\ | \\ | ||
| - | **Poll Interval** - WireGuard's PersistentKeepalive setting. | + | **Poll Interval** - a watchdog timer for the WireGuard |
| - | This determines how often clients behind NAT send keepalive packets | + | This causes FreshTomato |
| - | + | ||
| - | \\ | + | |
| - | + | ||
| - | * The recommended setting is 25 seconds. This causes | + | |
| - | * Default: 0. This disables the feature, so packets are sent only\\ as needed. This is fine for most users not behind restrictive NAT. | + | |
| \\ | \\ | ||
| Line 293: | Line 288: | ||
| ===== Import Config from file ===== | ===== Import Config from file ===== | ||
| - | Available since r2025.3, this lets you quickly and easily import a pre-generated WireGuard configuration file. This file can come from an external VPN provider, or other source, such as another WireGuard endpoint. Files must be compatible with the wg-quick format (usually ending in " | + | Available since r2025.3, this lets you quickly and easily import a pre-generated WireGuard configuration file. This file can come from an external VPN provider, or another WireGuard endpoint. Files must be compatible with the wg-quick format (usually ending in " |
| Typically, with an external VPN provider, you choose appropriate settings on their website for the configuration you want. The VPN provider then generates a corresponding configuration file to import. For most providers, this will be a wg-quick compatible file. | Typically, with an external VPN provider, you choose appropriate settings on their website for the configuration you want. The VPN provider then generates a corresponding configuration file to import. For most providers, this will be a wg-quick compatible file. | ||
| - | While FreshTomat' | + | Even though FreshTomato |
| For example, to display all variables and their settings for the " | For example, to display all variables and their settings for the " | ||
| - | "nvram show|grep wg0_" | + | "nvram show|grep wg0_" |
| - | \\ | + | |
| - | \\ | + | \\ |
| The only exception occurs when you copy a configuration file to a folder on the router and enter a path to that file in the //Config File// field. In that case, that file will be saved as a configuration file, in wg-quick format. | The only exception occurs when you copy a configuration file to a folder on the router and enter a path to that file in the //Config File// field. In that case, that file will be saved as a configuration file, in wg-quick format. | ||
| Line 433: | Line 429: | ||
| If a link is up, the handshake done and the tunnel established, | If a link is up, the handshake done and the tunnel established, | ||
| + | |||
| + | \\ | ||
| For example, for this WireGuard instance: | For example, for this WireGuard instance: | ||
| - | |||
| - | \\ \\ {{:: | ||
| - | |||
| - | \\ | ||
| The first block of text includes this router' | The first block of text includes this router' | ||
| Line 447: | Line 441: | ||
| - UDP listening port | - UDP listening port | ||
| - | \\ | + | \\ \\ {{:: |
| + | |||
| + | \\ | ||
| The second block of text displays the Peer' | The second block of text displays the Peer' | ||
| Line 485: | Line 481: | ||
| * Remote LAN IP | * Remote LAN IP | ||
| - | | + | |
| \\ | \\ | ||
| + | |||
| + | |||
| + | ==== Problem: Traffic flowing in only one Direction ==== | ||
| \\ | \\ | ||
| + | |||
| + | Sometimes, it may occur that from one end of your setup (" | ||
| + | |||
| + | It this occurs, please check that there are default routes setup from B to A. Also, please check that on the client side, (in this case, end B), the " | ||