VPN Manager for OpenVPN

  • Hello Zomboidded,

    What I understand is, that CG changed her servers in december 2019 en now vpnmanager is not working.

    Example new server:

    87-1-ch.cg-dialup.net

    vpmanger still connect to older server:

    4-1-ch-cg-dialup.net

    then u get: Cannot resolve host address:4-1-ch-cg-dialup.net (beacuse old server?)

    Then the workaround should be replacing the older server with the new on in "LOCATIONS.txt" but vpnmanger ignore this and

    still try to connect to the older server.

    I this right?

    Now the latest version of vpnmanger is: 6.3.4 and this problem is from december 2019.

    The question is will be CG be supporterd again bij vpnmanger and when and is there a better workarround?

    Thanks in advance.

  • avennis:

    My workaround is from this website: I will try to translate it into English: CyberGhost in Kodi installieren und einrichten (LibreELEC) – Kodi-Tipps.de

    1) Start Libreelec and activate SAMBA. Normally SAMBA is activated. If SAMBA is activated you can see a map LIBREELEC in your own network. Open this map.

    2) then go to \\libreelec\Userdata\addon_data\service.vpn.manager\Downloads\CyberGhost

    3) there you find the data "Location.txt"

    4) open this data with a text-editor

    5) Then go to Switzerland

    6) Change everything to :

    Switzerland (TCP),97-1-ch.cg-dialup.net,tcp,443,#REMOVE=1 #PINGSPEED=15 #PINGEXIT=90

    Switzerland (UDP),87-1-ch.cg-dialup.net,udp,443,#PINGSPEED=5 #PINGEXIT=60

    7) save the data

    8) For me this workaround has worked

    HOWEVER, THE CONNECTION IS INTERRUPTING THE WHOLE TIME. YOU CANNOT USE IT LIKE THIS. SO ALSO COMPLAIN TO CYBERGHOST. I Have done it, but they do not give an answer anyway. :@ Actually I watch channels like Pro 7 with "ZEPPN TV"

    Edited once, last by Bergfex2 (February 15, 2020 at 9:07 PM).

  • Hi zomboided

    I have a vpn from a friend which is his own vpn.

    Reason why is because he is cheap compared to all the big names.

    He supplies a android app and also a a config file for openvpn.

    My question is can I put this config file into your addon somehow to make it work, or is it not that easy. Thanks

    Rob

  • Hi!

    Is there anyone who can be kind and help me?

    Attempts to get VPN Manager to work, but gets "update-systemd-resolved: line 33: syntax error: bad substitution".

    Looked up what the error code was, and it apparently has to do with sh and bash.

    Since I am a nooby on both Linux and Kodi, and also have a severe fatigue syndrome, so i have some trouble getting it to work.

    Uses LibreELEC 9.2.

    And have tried this:

    Have run "systemd-resolve --status" and got "-sh: systemd-resolve: not found".

    Then ran "systemctl enable systemd-resolved.service" and got "Failed to enable unit: Unit file systemd-resolved.service does not exist."

    Then I tried to run "git clone GitHub - jonathanio/update-systemd-resolved: Helper script for OpenVPN to directly update the DNS settings of a link through systemd-resolved via DBus.", but then "Git" is not installed.

    Everything else works, but if you look in the openvpn log, this error comes at the end of the run of .ovpn.

    Used verbosity = 4 when I tested first time.

    Used verbosity = 4 and debug when I tested second time.

    hastebin

    hastebin

    hastebin

    Regards

    Tomas

  • You’re trying to run the referenced scripts when they don’t appear to be available or properly installed on you box.


    You could try removing the up and down lines from the ovpn script but the dns might not get updated properly. Try it and see

  • Thanks so much zomboided for your answer.

    If I remove everything from "dhcp-option DNSSEC allow-downgrade" and below, my .ovpn will work without problems.

    But I want the "Up and Down" feature to work, and it doesn't if I remove the "up and down lines from the ovpn script" that you recommend.

    How should I do to make it work?

    Have tried to follow your instructions in your Wiki for "VPN Manager", but as I said it is difficult to read long instructions because of. my "problem" that I have.

    Should I install Git and follow jonathanio's instructions on his github pages about "update-systemd-resolved"?

    After all, LibreELEC is not built up as a "regular" Linux dist is, with the usual paths.

    Must make it work so that DNS is updated from the VPN server that I connect to.

    Hope to get help from someone so I can make this work.

    Regards

    Tomas

  • jotakswe You're saying it works without up and down, but that you want up and down to work. But you don't want to / can't put the effort in to learn Linux (or more accurately, just enough of it to solve your problem).


    LE is a pretty closed environment. Unless you're willing to learn a lot more than you know now, or understand the errors you're getting, you're not going to get very far. I certainly don't have the time or inclination to work through everything you're asking here - all of which is outside the scope of this add-on.

    OSMC might be a better option for you (if that's still maintained?) as that's a bit more of an open distribution than LE and may even have the packages you need already installed.

  • Hello,

    Great addon, I've used it for years with very little issues. Recently, I had a problem with my own router firmware software update which broke my own vpn for a few months. That is sorted now, my phone and laptop work with the vpn again but unfortunately vpn manager won't.

    I've always used the import wizard for my user defined vpn with minimum fuss but now it wont connect and is reporting errors. Any advice please?

    Please see screen shot.

    Thank you.

    Update.

    I deleted the keep alive 60 15 line from the client.opvn file and it now works.

    Hopefully this won't cause issues?

    Edited once, last by Paul_: found work around (February 25, 2020 at 2:46 PM).

  • I force ping settings into the configs (controllable by one of the advanced options) to keep the connection active when there's no work flowing. What the error is telling you is that it clashes as it does exactly the same thing. If you see the connection drop occassionally then you might wanna work out which option turns off the ping (its on the wiki) and go with the keepalive option.

  • Hi Zomboided.

    i signed up to say thanks for this great addon - i am using in CoreELEC. Also i would like to report i have got it working on user defined with Surfshark VPN, and it is working well, with HD streaming smooth as butter!

    i can share the open.vpn files for Surfshark if you want to add it to the inbuilt connections at some point, although the user defined method is working fine, so for me i don't really need it built in, but may be nice for others...

    Thanks again!!

  • Hi there,

    Great addon, since moving to LibreELEC.

    I do have a question though - is there any possibility to run a custom script upon reconnect? Would be great to know how to configure it.

    Appreciate - as the search function did not return my desired result actually.

    Thanks!

  • You can use up and down scripts. See the wiki on the github page, it has all the details

    Thanks - I was already trying this - maybe got the wrong folder:

    Does it need to be here:

    Code
    /.kodi/userdata/addon_data/service.vpn.manager/Downloads/PIA

    or here:

    Code
    /.kodi/addons/service.vpn.manager/PIA

    I have been trying here /.kodi/addons/service.vpn.manager (because here I saw the default up.sh script)

  • I just tried to use this addon with a free test account from ProtonVPN

    1 My config files were at : ~/.kodi/downloads/LongFileNamewithserverinfo.ovpn

    2 changed filenames to something simple like us1.ovpn

    3 when files were loaded into open VPN Kodi client I had to se the same name as the file us1.ovpn. I previously saw in the log file it could not load <entered name>, so I conformed it all and it loaded

    4 OpenVPN addon now says it can not connect to management interfce which I could not load at 127.0.0.1:port from the LibreELEC Chrome browser.

    Edited once, last by tekno (April 6, 2020 at 5:56 AM).