raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.03k stars 2.76k forks source link

[Connect to VPN] manually check active VPNs in list #13163

Open zlobnic opened 1 week ago

zlobnic commented 1 week ago

Extension

https://www.raycast.com/rasmusbe/connect-to-vpn

Description

I have 6+ vpns in list. Not all of them is vpn. And I usually use only one. Can you add settings to disable unnecessary in list?

Image below (it is not vpn):

CleanShot 2024-06-25 at 18 41 27@2x

and I'd like to disable them from the extension's settings

CleanShot 2024-06-25 at 18 47 05@2x

Who will benefit from this feature?

No response

Anything else?

No response

raycastbot commented 1 week ago

Thank you for opening this issue!

🔔 @rasmusbe @sato11 @stonerl you might want to have a look.

💡 Author and Contributors commands The author and contributors of `rasmusbe/connect-to-vpn` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
stonerl commented 1 week ago

You can add the ones you are using the most to your favorites list.

stonerl commented 1 week ago

What kind of services are these? Can you run networksetup -listnetworkserviceorder and give us the output

zlobnic commented 1 week ago

What kind of services are these? Can you run networksetup -listnetworkserviceorder and give us the output

CleanShot 2024-06-25 at 19 38 30@2x

Attached. I'd like to see that list via extension setting and disable using checkbox, for example.

Thank you for your response!

rasmusbe commented 1 week ago

What do you get when you run networksetup -showpppoestatus "Handheld Barcode Scanner" and networksetup -showpppoestatus "LG Monitor Controls"?

Right now we take the list from networksetup -listnetworkserviceorder and check the PPOoE Status. If it returns "invalid" we mark it as a non VPN interface.

zlobnic commented 1 week ago

networksetup -showpppoestatus "Handheld Barcode Scanner" and networksetup -showpppoestatus "LG Monitor Controls"

disconnected

stonerl commented 1 week ago

Are both devices registered as usbmodem? You blurred them in your first output.

zlobnic commented 1 week ago

Yup!

I'd like to input "VPN" in Raycast and immidiately get connected to VPN, without choosing any (would be great option).

stonerl commented 1 week ago

I'd like to input "VPN" in Raycast and immidiately get connected to VPN, without choosing any (would be great option).

That is a separate issue.

@rasmusbe maybe we should also sort out usbmodem devices. I don't have such a device, so I can't properly test this, though.

stonerl commented 1 week ago

@zlobnic what is the output for networksetup -listallhardwareports

We might compare the service list with the hardware ports and sort them out.

zlobnic commented 1 week ago

networksetup -listallhardwareports

CleanShot 2024-06-27 at 19 33 09@2x