Posts by bhups

    Hello,

    Firstly, thank you for this great Add-on.

    I understand that NordVPN is very troubling with this add-on due to Nords constant change of API's.

    Therefore I've created a simple script of my own to download the config file of the recommended UK server with my filters from Nord

    Code
    protocol="udp"
    vpnHostName=$(curl -s -g 'https://nordvpn.com/wp-admin/admin-ajax.php?action=servers_recommendations&filters={%22country_id%22:227,%22servers_groups%22:[15],%22servers_technologies%22:[3]}' | jq '.[0].hostname' | tr -d '"' )
    sleep 1
    wget "https://downloads.nordcdn.com/configs/files/ovpn_$protocol/servers/$vpnHostName.$protocol.ovpn" -O "/storage/.kodi/userdata/addon_data/service.vpn.manager/UserDefined/NordVPN ($protocol).ovpn"
    
    sleep 1
    
    killall openvpn
    
    # PATH SHOULD BE PUT IN E.G.    /storage/.kodi/userdata/addon_data/service.vpn.manager/UserDefined/NordVPN ($protocol).ovpn

    I've been able to use the file downloaded and import it into VPN Manager, however, when trying to set up a script to replace the file in "

    /storage/.kodi/userdata/addon_data/service.vpn.manager/UserDefined/", with the newer downloaded file, it seems to not take on the config of the new UserDefined .ovpn file and looks like its holding the old config settings elsewhere to reconnect to it.

    I may be wrong, but should this work in theory?

    I'm looking to cron job this script and update it every couple of hours, or at-least when it matters most to me (upon startup).

    Any tips will help.

    I've had a look at https://github.com/Zomboided/serv…er-Defined-VPNs and other searches, but it does not delve into what I'm trying to do.