kabadisha / host-based-vpn-routing Goto Github PK
View Code? Open in Web Editor NEWScripts for host-based vpn routing on Asus routers
License: MIT License
Scripts for host-based vpn routing on Asus routers
License: MIT License
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 domains (like netflix.com) use DNS based load-balancing and so return different IPs each time you do a lookup.
This causes two issues:
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.