Skip to content

watchcat: Use ifup to restart interface#27248

Open
rondoval wants to merge 1 commit intoopenwrt:masterfrom
rondoval:watchcat-inteface-restart
Open

watchcat: Use ifup to restart interface#27248
rondoval wants to merge 1 commit intoopenwrt:masterfrom
rondoval:watchcat-inteface-restart

Conversation

@rondoval
Copy link
Copy Markdown

📦 Package Details

Maintainer: @roger-

Description:
The currently implemented method of restarting a network interface does not work for Wireguard interfaces.
Resolves issue #23410


🧪 Run Testing Details

  • OpenWrt Version: main
  • OpenWrt Target/Subtarget: mediatek/filogic
  • OpenWrt Device: Xiaomi AX6000

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

Signed-off-by: Łukasz Winczura <rondoval@gmail.com>
@feckert
Copy link
Copy Markdown
Member

feckert commented Aug 21, 2025

You have to write why you want to change it and why we should use.

@danielfdickinson
Copy link
Copy Markdown
Contributor

@rondoval @feckert This is in reference to #23410 . If @rondoval is unable / unwilling to update this PR I will submit a new one with the fix, because I have the same issue.

danielfdickinson added a commit to danielfdickinson/packages that referenced this pull request Jan 25, 2026
As reported in openwrt#23410 Network interface reset doesn't work as expected
on a Wireguard VPN interface and in openwrt#27927 lt2p interface won't reboot,
and mentioned in openwrt#27248, the current implementation of the option to
restart an interface when connectivity check fails for some period does
not result in an interface restart for all interface.

Notably 'virtual' interfaces such as Wireguard and L2TP do not restart.

The solution that works is to use `ifup <interface>` instead of only
changing the link status.

This commit is based on the one in openwrt#27248 by @rondoval, who unfortunately
has not updated the commit message as requested for half a year.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
hnyman pushed a commit that referenced this pull request Mar 3, 2026
As reported in #23410 Network interface reset doesn't work as expected
on a Wireguard VPN interface and in #27927 lt2p interface won't reboot,
and mentioned in #27248, the current implementation of the option to
restart an interface when connectivity check fails for some period does
not result in an interface restart for all interface.

Notably 'virtual' interfaces such as Wireguard and L2TP do not restart.

The solution that works is to use `ifup <interface>` instead of only
changing the link status.

This commit is based on the one in #27248 by @rondoval, who unfortunately
has not updated the commit message as requested for half a year.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
slow-boat pushed a commit to slow-boat/packages that referenced this pull request Mar 19, 2026
As reported in openwrt#23410 Network interface reset doesn't work as expected
on a Wireguard VPN interface and in openwrt#27927 lt2p interface won't reboot,
and mentioned in openwrt#27248, the current implementation of the option to
restart an interface when connectivity check fails for some period does
not result in an interface restart for all interface.

Notably 'virtual' interfaces such as Wireguard and L2TP do not restart.

The solution that works is to use `ifup <interface>` instead of only
changing the link status.

This commit is based on the one in openwrt#27248 by @rondoval, who unfortunately
has not updated the commit message as requested for half a year.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
danielfdickinson added a commit to danielfdickinson/packages that referenced this pull request Apr 11, 2026
As reported in openwrt#23410 Network interface reset doesn't work as expected
on a Wireguard VPN interface and in openwrt#27927 lt2p interface won't reboot,
and mentioned in openwrt#27248, the current implementation of the option to
restart an interface when connectivity check fails for some period does
not result in an interface restart for all interface.

Notably 'virtual' interfaces such as Wireguard and L2TP do not restart.

The solution that works is to use `ifup <interface>` instead of only
changing the link status.

This commit is based on the one in openwrt#27248 by @rondoval, who unfortunately
has not updated the commit message as requested for half a year.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
(cherry picked from commit 14e0e9e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants