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/08/31 08:21] – [Dynamic IP update with duckdns on OMV] 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 51: | Line 51: | ||
| </ | </ | ||
| If your system is based on an < | 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. | + | 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 518: | 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 537: | Line 538: | ||
| ---- | ---- | ||
| - | === Update | + | === Update DuckDNS |
| - | You can add this script to a scheduled task so that your public IP is updated only if it changes. | + | You can add this script to a scheduled task so that your public IP is updated, and you receive a notification |
| - | Additionally, | + | Additionally, |
| Example command: | Example command: | ||
| - | < | + | < |
| - | [ " | + | |
| - | curl -k " | + | |
| - | echo "$IP" | + | |
| - | systemctl restart wg-quick@wgnet_[MYTUNNEL]</ | + | |
| - | * Replace [MYDOMAIN] with your DuckDNS domain | + | * Replace |
| - | * Replace [MYTUNNEL] with the name you assigned to your tunnel in the WireGuard plugin. | + | * Replace |
| - | * Remember to enable notifications in OMV so you get an alert when this task runs. | + | * If it's a custom tunnel, add an underscore before the tunnel name, like this: '' |
| + | * Remember to enable notifications in OMV to receive | ||
| * Add a descriptive label to the scheduled task so you can easily identify it. | * 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. | + | Once created, simply copy the command into **Scheduled Tasks** and set the execution interval. |
| - | Make sure to run it as root (default). | + | |
| + | Remember | ||
| ---- | ---- | ||