Works like a charm. Thanks again!
Hello,
first of all thank you very much for the tool.
Unfortunately I have a problem. When I click the button, the VPN connects, but when I click it again it doesn't disconnect.
I took your preset and only changed the VPN name. In addition, the button color does not change when the VPN is connected.
Can nobody help me?
@K2DesignLab can you help me please?
Run this in terminal and report back what it shows while connected and not connected to VPN.
ifconfig -lu
VPN connected: lo0 en0 en3 en4 en1 en2 p2p0 awdl0 llw0 utun0 utun1 utun2 utun3 utun4 utun5 en5 utun6
VPN disconnected: lo0 en0 en3 en4 en1 en2 p2p0 awdl0 llw0 utun0 utun1 utun2 utun3 utun4 utun5 en5
I found the mistake. I have entered utun6 instead of ipsec, now I can connect and disconnect VPN. But unfortunately, that's not gonna change icon. You got another tip for me?
Thanks thanks thanks, it works perfekt!
@K2DesignLab Unfortunately I still have a problem. For me, the value utun6 changes constantly. Sometimes it's utun6, sometimes it's utun2 or utun3. I have no clue whats the cause of this. Can you insert an either or for the values?
You're probably using a VPN like Tunnelblick or other openVPN and its not using a default or single interface. You may be able to force it to use a default interface or force it to close all interfaces before starting and after stopping. Worth a try...
I use a VPN from my Fritzbox. How can I force a standard interface? I'm a little overwhelmed
thanks guys, this works, I tried it with ClearVPN using utun3