Git Product home page Git Product logo

host-based-vpn-routing's People

Contributors

kabadisha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

host-based-vpn-routing's Issues

domain level filtering possible issue

when adding the domains does it do filtering such as *.bamgrid.com or do you have to put analytics.clients.bamgrid.com in the rules file? Great script btw. Love the flexibility for my Merlin powered Asus router.?

Sorry not a question. Hopefully you will give an answer and I am not bothering you too much.

Some hosts cause the script to always think that changes have occurred

Some domains (like netflix.com) use DNS based load-balancing and so return different IPs each time you do a lookup.
This causes two issues:

  1. That nslookup always gets different IPs and so the script will always think that IPs have changed.
  2. That the IPs in VPN Director rules will be different to those in use by client devices that are using cached DNS lookups.

I'm not sure how to fix this right now. I'm experimenting with using the dig command instead of nslookup, but dig is not installed by default and so requiring it would make entware a prerequisite.

Use Ram Instead of JFFS

If you are worried about wearing out JFFS try using symlink and writing to ram. This will allow you constantly update websites that load balance for changes without worry about JFFS writes.

script_name=$(basename "$0")
ram_file_path="/var/vpndirector_rulelist"
jffs_path="/jffs/openvpn/vpndirector_rulelist"

if [ ! -L $jffs_path ]
then
  logger "$script_name: $jffs_path is not a symlink moving file to $ram_file_path and linking"
  mv $jffs_path $ram_file_path 
  ln -s $ram_file_path $jffs_path
elif [ $(readlink -f $jffs_path) != $ram_file_path ]
then
  logger "$script_name: remaking $jffs_path symlink to point to $ram_file_path"
  rm $jffs_path
  ln -s $ram_file_path $jffs_path
else
  logger "$script_name: no symlink change $jffs_path already points to $ram_file_path"
fi

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.