GithubHelp home page GithubHelp logo

mattfox / home-gateway-routes-selector Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 1.37 MB

Web app for selecting default route for devices on LAN, in Node.js and Python.

Python 37.78% JavaScript 40.25% HTML 21.97%

home-gateway-routes-selector's People

Contributors

mattfox avatar

Watchers

 avatar

home-gateway-routes-selector's Issues

Run node.js app in Docker

Run the node.js web app in Docker. It will need access out to a service on the host- similar to a persistent DB, but it needs to do the ip rule management, not just keep records on disk. Or maybe the service on the host that it talks to can be a real DB (ie Redis), and another process on the host watches the DB and makes the appropriate ip rule changes.

Add systemd unit

So that I don't have to start it manually after a reboot.

For my own reference, here's what needs to be run at boot:

ip route add default via 10.8.0.5 dev tun0 table 100
rm /var/lib/misc/usaroutes.json
sudo -u www-data node /usr/local/share/routes/node/app.js

Support IPv6

Probably should adapt the whole project to work on the basis of MAC addresses instead of IPv4 addresses. Then traffic can be sent to the numbered routing table from specific source MACs no matter its IP version. Continue mapping MAC addresses from /var/lib/misc/dnsmasq.leases to hostnames. Also consider looking up MAC vendor names to show somewhere.

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.