Giter Site home page Giter Site logo

resolvconf's Introduction

resolvconf

Alt text

Resolvconf binary

Used to set up VPN connections for Kodi running LibreElec, running on a RasberryPi, using ProtonVPN (https://protonvpn.com/) as a service provider

LibreElec is a minimilized Linux operating system used to exclusively run Kodi. This means that the root file system is read only and it is difficult to add additional applications outside of the Kodi interface.

Components

  1. Openresolv is an OpenVPN addon to allow for the updating to DNS servers and in particular /etc/resolv.conf - http://roy.marples.name/projects/openresolv/

  2. update-resolv-conf.sh - https://github.com/alfredopalhares/openvpn-update-resolv-conf This repo contains a "reworked" version of update-resolv-conf.sh. Testing with the original script didn't work

Steps to install

  1. Install the OpenVPN addon for Kodi with the following zip file https://github.com/Zomboided/repository.zomboided.plugins/releases/download/1.0.0/repository.zomboided.plugins-1.0.0.zip

  2. Enable ssh access to Kodi

  3. ssh onto your Kodi machine

  mkdir /storage/local
  cd /tmp
  wget https://github.com/RamSailopal/resolvconf/raw/main/resolvconf.zip
  cd /storage/local
  unzip /tmp/resolvconf.zip
  1. Download the .ovpn files for ProtonVPN using the following guide https://protonvpn.com/support/vpn-config-download/

  2. scp the downloaded zip file to the /tmp folder of your Kodi machine.

  mkdir /tmp/ProtonVPN
  cd /tmp/ProtonVPN
  unzip /tmp/ProtonVPN_server_configs.zip
  1. Set up a User Defined connection in the Kodi OpenVPN addon using the following guide - https://github.com/Zomboided/service.vpn.manager/wiki/09.-User-Defined-VPNs Use /tmp/ProtonVPN as the location of the opvpn files. When entering username and password credentials, make sure that you use the Open VPN credentials supplied by Proton VPN as opposed to the Proton VPN account credentials

  2. Amend the imported vpn files with the following command:

     find /storage/.kodi/userdata/addon_data/service.vpn.manager/UserDefined/ -name "*.ovpn" -exec sed -i 's@/etc/update-resolv-conf.sh@/storage/local/sbin/update-resolv-conf.sh@' '{}' \\;
    

Configuration

There will be two DNS configuration files in /storage/local/etc

VPNDNS.conf - This file will contain DNS servers when disconnected i.e.

nameserver 8.8.8.8

NOVPNDNS.conf - This file will contain "leak proof" DNS servers for when connected i.e.

nameserver 1.1.1.1

Amend the NOVPNDNS.conf file as neccesary for you local network DNS server.

resolvconf's People

Contributors

ramsailopal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.