Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| omv7:omv7_plugins:wireguard [2024/06/28 13:04] – [Configuring a tunnel] chente | omv7:omv7_plugins:wireguard [2025/12/22 19:50] (current) – [Update DuckDNS IP. Receive notifications only when it changes and restart WireGuard automatically] chente | ||
|---|---|---|---|
| Line 47: | Line 47: | ||
| In OMV7's GUI:\\ | In OMV7's GUI:\\ | ||
| Under **System** > **Plugins**, | Under **System** > **Plugins**, | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | If your system is based on an < | ||
| + | To solve it you must reinstall the Armbian Kernel once the plugin is installed and everything will work normally.< | ||
| + | Read this forum thread: https:// | ||
| + | </ | ||
| ---- | ---- | ||
| Line 149: | Line 156: | ||
| * Click **Save**. At this point, if you have already activated the tunnel and the client, the connection will be up and running. | * Click **Save**. At this point, if you have already activated the tunnel and the client, the connection will be up and running. | ||
| * By pressing the button **Client Config** you can see the client configuration file, you can copy and paste the text in a file to configure the connection in the client. If you do it this way, add the ending " | * By pressing the button **Client Config** you can see the client configuration file, you can copy and paste the text in a file to configure the connection in the client. If you do it this way, add the ending " | ||
| - | * A QR will appear in the table (if the client is enabled), which you can scan from a smartphone to configure the connection without having to copy a file. If you need to send it you can take a photo. Treat this image as a password, it is the access key to your network | + | * A QR will appear in the table (if the client is enabled), which you can scan from a smartphone to configure the connection without having to copy a file. If you need to send it you can take a photo. Treat this image as a password, it is the access key to your network. Press the " |
| * Use a different client configuration for each client. If you configure the same connection on several clients at the same time, they will not be able to connect simultaneously. | * Use a different client configuration for each client. If you configure the same connection on several clients at the same time, they will not be able to connect simultaneously. | ||
| Line 512: | Line 519: | ||
| * This will have installed the '' | * This will have installed the '' | ||
| * Type the following command in the **Command** field of the dialog box. | * Type the following command in the **Command** field of the dialog box. | ||
| - | < | + | < |
| - | * Replace '' | + | * Replace '' |
| - | * Replace '' | + | * Replace '' |
| * In the **Time of execution** field, choose the Hourly option. | * In the **Time of execution** field, choose the Hourly option. | ||
| * This will run the command every hour. If your IP changes frequently you can change this to run for shorter periods of time. Every 5 minutes may be reasonable. | * This will run the command every hour. If your IP changes frequently you can change this to run for shorter periods of time. Every 5 minutes may be reasonable. | ||
| Line 528: | Line 535: | ||
| This task will create a log file at / | This task will create a log file at / | ||
| </ | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === Update DuckDNS IP. Receive notifications only when it changes and restart WireGuard automatically === | ||
| + | |||
| + | You can add this script to a scheduled task so that your public IP is updated, and you receive a notification only if it changes. | ||
| + | |||
| + | Additionally, | ||
| + | |||
| + | Example command: | ||
| + | |||
| + | < | ||
| + | |||
| + | * Replace '' | ||
| + | * Replace '' | ||
| + | * If it's a custom tunnel, add an underscore before the tunnel name, like this: '' | ||
| + | * Remember to enable notifications in OMV to receive an alert when the public IP changes. | ||
| + | * Add a descriptive label to the scheduled task so you can easily identify it. | ||
| + | |||
| + | Once created, simply copy the command into **Scheduled Tasks** and set the execution interval. | ||
| + | |||
| + | Remember to install '' | ||
| ---- | ---- | ||
| Line 567: | Line 596: | ||
| ---- | ---- | ||
| + | |||
| + | === I can't access some of my containers. MacVLAN. === | ||
| + | |||
| + | If you have containers configured using a MacVLAN network interface, you won't be able to access them using Wireguard. Containers with this configuration can't communicate with the host, so Wireguard can't access them either. This is a limitation of the Linux kernel. | ||
| + | |||
| + | There are workarounds, | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === I can access my LAN, but I don't have internet access. === | ||
| + | |||
| + | We've received reports of some Mac clients where the network remains split even with '' | ||
| + | |||
| + | Try adding a generic DNS to your Wireguard tunnel on the client. Something like '' | ||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| ===== Source Code ===== | ===== Source Code ===== | ||