Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sudomesh/everythingisdownredirect

An OpenWRT package to issue HTTP 303 redirects and reverse-proxy HTTP connections for whitelisted URLs.
https://github.com/sudomesh/everythingisdownredirect

Last synced: about 1 month ago
JSON representation

An OpenWRT package to issue HTTP 303 redirects and reverse-proxy HTTP connections for whitelisted URLs.

Awesome Lists containing this project

README

        

An OpenWRT package to issue HTTP 302 redirects to all GET requests. It uses no libraries and has no dependencies.

This is part of a minimal captive portal for the east bay mesh network.

Usage:

everythingisdownredirect: [debug]
is the IP where everythingisdownredirect binds and listens.
Put ALL to bind to all IPs.
is the port where the everythingisdownredirect listens (required).
is the url to which http GET and POST
requests are redirected (required).
If debug is specified as the third argument,
debug output will be enabled (optional).

The idea is that nodes detect if the internet is up by checking if the l2tp tunnel is up (the tunnel has a built-in periodic check) and check if they are connected to other mesh nodes using batctl. If neither internet nor mesh is functioning, then everythingisdownredirect is enabled.