Wiregaurd Widget - Feature request

Started by tracerrx, August 08, 2024, 05:13:51 PM

Previous topic - Next topic
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.

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
Hardware:
DEC740

Cool.. Sorry I should have searched the PR's

Thanks for the hard work!

August 08, 2024, 05:42:08 PM #3 Last Edit: August 08, 2024, 05:43:47 PM by Seimus
+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.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD

It was not in the PR before. I added it because of your feedback. I will link this post to it.
Hardware:
DEC740

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
Hardware:
DEC740

Hey there, pretty!  :)
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

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.
Hardware:
DEC740

Looks great... Black boxes added for privacy in the screenshot below



Happy you like it.  ;D
Hardware:
DEC740

I like it. Useful. Quick glance and a status is known.

@Monviech it really looks great and I love how all the VPN widgets look alike now... Great work... BTW congrats on the new Job  :)


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.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD