Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sudomesh/everythingisdownredirect
- Owner: sudomesh
- License: other
- Created: 2013-07-19T10:19:27.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-15T08:37:18.000Z (about 11 years ago)
- Last Synced: 2024-04-13T08:12:52.862Z (9 months ago)
- Language: C
- Homepage:
- Size: 164 KB
- Stars: 5
- Watchers: 13
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
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.