Closed CharlieTemplar closed 2 years ago
Default the VPN to off (ie don't connect on startup). Use filtering to turn the VPN on when you enter the addon that needs it. Enable the up and down scripts and use those as a hook to change the DNS. All of these things are documented on the wiki if you need more info.
On Sat, Feb 5, 2022 at 10:34 AM CharlieTemplar @.***> wrote:
Not really a bug with this plugin, more a question of how to achieve. I have one addon that needs vpn for geo-location but doesn't work with the smartDNS configured at the same time. Another addon (different country) that only works with smart DNS proxy and won't work properly with openVPN for the same country. Currently I have to manually change /etc/resolv.conf to change between smart DNS and real DNS. Is there a way to handle this in vpn.manager? like force the DNS to local or 8.8.8.8 when connecting to the VPN? and turning off vpn for the other addon.
— Reply to this email directly, view it on GitHub https://github.com/Zomboided/service.vpn.manager/issues/361, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECJZZPNCKGV3Z3IELFYQPTUZT4MJANCNFSM5NTY2LQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
thanks, trying to work it out from the wiki now. running libreelec on rpi3 with kodi 18.
put a simple up.sh in the provider dir but is never run, neither is down.sh is there an option someplace to enable?
Yes, in the advanced tab i think. You can see the effect from looking at the generated ovpn files in .../kodi/addons/service.vpn.manager/
On 5 Feb 2022, at 14:30, CharlieTemplar @.***> wrote:
put a simple up.sh in the provider dir but is never run, neither is down.sh is there an option someplace to enable?
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.
had the up.sh and down.sh in wrong place, had put them in the addons dir with the ovpn file... now working great and added the other addon to excluded list from vpn, otherwise it didn't disconnect after switching from the addon that didn't use it.
Thanks
Not really a bug with this plugin, more a question of how to achieve. I have one addon that needs vpn for geo-location but doesn't work with the smartDNS configured at the same time. Another addon (different country) that only works with smart DNS proxy and won't work properly with openVPN for the same country. Currently I have to manually change /etc/resolv.conf to change between smart DNS and real DNS. Is there a way to handle this in vpn.manager? like force the DNS to local or 8.8.8.8 when connecting to the VPN? and turning off vpn for the other addon.