OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: tracerrx on August 08, 2024, 05:13:51 PM

Title: Wiregaurd Widget - Feature request
Post by: tracerrx on August 08, 2024, 05:13:51 PM
Would love to see the green horizontal arrows indicating a wiregaurd connection/tunnel is active like the ipsec tunnel widget uses. 

I understand wiregaurd makes this harder then ipsec to tell if tunnel is active, but maybe we can say if last wiregaurd handshake is < X the tunnel/connection is active and display the green arrows or dot.
Title: Re: Wiregaurd Widget - Feature request
Post by: Monviech (Cedrik) on August 08, 2024, 05:27:49 PM
I am taking it into consideration here if it does not create too much overhead.

Thank you for your suggestion.

Since wireguard does a handshake every 2 minutes by default maybe I can do something, not sure yet though.

https://github.com/opnsense/core/pull/7747
Title: Re: Wiregaurd Widget - Feature request
Post by: tracerrx on August 08, 2024, 05:31:16 PM
Cool.. Sorry I should have searched the PR's

Thanks for the hard work!
Title: Re: Wiregaurd Widget - Feature request
Post by: Seimus on August 08, 2024, 05:42:08 PM
+1 to this idea, it maybe looks like a dull idea (it isnt), but if there is an indicator showing UP and DOWN even if the Handshake is 2min, its eye catching.

For example when I do or do not expect the Tunnel to be UP this would help me to identify it much more sooner.

Regards,
S.
Title: Re: Wiregaurd Widget - Feature request
Post by: Monviech (Cedrik) on August 08, 2024, 05:59:45 PM
It was not in the PR before. I added it because of your feedback. I will link this post to it.
Title: Re: Wiregaurd Widget - Feature request
Post by: Monviech (Cedrik) on August 14, 2024, 04:40:13 PM
The improved wireguard widget has online/offline status per tunnel. You can test it now:

https://github.com/opnsense/core/commit/8c32249


opnsense-patch 8c32249
Title: Re: Wiregaurd Widget - Feature request
Post by: Patrick M. Hausen on August 14, 2024, 04:44:38 PM
Hey there, pretty!  :)
Title: Re: Wiregaurd Widget - Feature request
Post by: Monviech (Cedrik) on August 14, 2024, 04:46:50 PM
Thanks, took a while and 3 people to get it just right xD

Also check out the improved IPsec widget, it now has buttons to connect and disconnect the tunnels. Stole that from the OpenVPN widget.
Title: Re: Wiregaurd Widget - Feature request
Post by: tracerrx on August 14, 2024, 04:58:56 PM
Looks great... Black boxes added for privacy in the screenshot below


Title: Re: Wiregaurd Widget - Feature request
Post by: Monviech (Cedrik) on August 14, 2024, 05:01:15 PM
Happy you like it.  ;D
Title: Re: Wiregaurd Widget - Feature request
Post by: cookiemonster on August 14, 2024, 05:01:58 PM
I like it. Useful. Quick glance and a status is known.
Title: Re: Wiregaurd Widget - Feature request
Post by: tracerrx on August 14, 2024, 05:27:05 PM
@Monviech it really looks great and I love how all the VPN widgets look alike now... Great work... BTW congrats on the new Job  :)
Title: Re: Wiregaurd Widget - Feature request
Post by: Monviech (Cedrik) on August 14, 2024, 06:18:18 PM
Thank you.  ;D
Title: Re: Wiregaurd Widget - Feature request
Post by: Seimus on August 15, 2024, 12:33:53 PM
Quote from: Monviech on August 14, 2024, 04:40:13 PM
The improved wireguard widget has online/offline status per tunnel. You can test it now:

https://github.com/opnsense/core/commit/8c32249


opnsense-patch 8c32249


Love it! BTW it was already useful for Tshoot.

Keep it rolling.

Regards,
S.