Delete all VPN entries at once
TechArea opened this issue · 14 comments
I miss the feature to remove all VPN entries at once.
Can you please add that function?
For ex.
macosvpn delete --all
macosvpn delete -a
or whatever...
Thanks in advance
I like the idea! I will implement it once I find the time. My guess is a week or two.
Alas, I was a little bit too optimistic. I'm using outdated third-party code and I would have to upgrade all that to Swift first.
So, unfortunately I cannot do this in any quick and dirty manner and it requires quite some time. Sorry.
Don't worry. We can wait few weeks. :-)
I have two questions:
- What is your use-case exactly that you'd want to delete all VPN services? I'm curious about how this app is used.
- Is it not easier/more flexible for you to use IKEv2 VPN configurations (.mobileconfig) instead? (I'm not sure why so many people still use L2TP and IPSec)
Thank you!
-
I'm managing a few destinations with dyndns and unfortunately macOS has an issue there. If the IP changed recently and didn't update your DNS server, you've to delete the whole VPN entry and add it again or wait a few hours. But usually I can't wait few hours. So what I'm doing? I'm deleting all VPN connections, because I've so many of them, that it's not practicable to search for a specific, because macOS don't sort them by A-Z.
-
IPSec because of Cisco ASA 5505 and similar... for ex.
Hi, how exactly should this feature work?
macosvpn delete --all
macosvpn delete --ipsec --all
macosvpn delete --l2tp --name London --name Sydney
One of those? All of those? :)
macosvpn delete --all
should be enough (for my purpose), but feel free to add some easter eggs :-D
you've to delete the whole VPN entry and add it again
By the way, can this not be achieved already using the --force
flag? I assume that you know the names of the VPN services you want to delete and then re-create?
That's what I'm doing right now, because of missing "delete" function.
I've few VPN's and it takes double of time amount to do an import when I'm using the --force flag.
It's not the end of the world if it wouldn't be possible to implement this feature, but it would half the time for an import.
Hi, I just wanted to let you know that I implemented your feature here but you'll need a little more patience until I can officially release a new version. I need to improve tests, clean up some code, and make sure everything works 100%.
Would you mind trying it out? I recommend that you clone and build the project yourself using Xcode 11. Alternatively, you can download the executable here:
https://github.com/halo/macosvpn/releases/download/1.0.0.beta2/macosvpn.zip
It works like a charm! (Finished without errors)
Deleting works.
But my old script doesn't work anymore...
Unknown arguments: -oceupsg XXXXXXXXXXXX
Deleting works.
Nice!
But my old script doesn't work anymore...
Unknown arguments: -oceupsg XXXXXXXXXXXX
I had to replace the 3rd-party library that was responsible for parsing the command line argument. The new library does not support such a syntax. You will have to start using -c XXX -u XXX
.
(Since the -oceupsg
syntax was somewhat unusual anyway, I'm OK with that breaking change. Sorry for the inconvenience, though :)
If it's OK with you, I'll close this issue and refer to #41 instead. Now I just need some beta-testers and if no bugs turn up, it will be officially released.
Thank you for reporting and thanks for trying it out. I'm glad it works not only on my machine ;)