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 [2025/05/23 18:55] – [I can access my LAN, but I don't have internet access.] chente | omv7:omv7_plugins:wireguard [2025/09/02 18:20] (current) – [Update DuckDNS IP. Receive notifications only when it changes and restart WireGuard automatically] chente | ||
---|---|---|---|
Line 518: | Line 518: | ||
* 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 534: | Line 534: | ||
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 '' | ||
+ | * 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 590: | Line 611: | ||
---- | ---- | ||
- | === Port configuration on the router. === | ||
- | The port configured on the router that provides access to the Wireguard tunnel on your server must be open only with the UDP protocol. If you configure it with both protocols (TCP and UDP), the Wireguard tunnel may not function properly. | ||
- | |||
- | ---- | ||
===== Source Code ===== | ===== Source Code ===== | ||