tornado-http-firewall
An HTTP proxy that utilizes ACLs to control access to URIs.
NOTE: Consider this software alpha and extremely buggy and insecure. You probably shouldn't use this unless you're desparate for something like me. Pull requests are welcome and encouraged.
Requires Python>=3.6
Usage
usage: thfirewall [-h] [-a ADDRESS] [-p PORT] [-t TARGET] [-c CONFIG] [-d]
An HTTP proxy that utilizes ACLs to control access to URIs
optional arguments:
-h, --help show this help message and exit
-a ADDRESS, --address ADDRESS
Port number to listen on
-p PORT, --port PORT Port number to listen on
-t TARGET, --target TARGET
The target top level URL to forward requests
-c CONFIG, --config CONFIG
The ACL config YAML file
-d, --debug Show debug messages
ACL Config Format
Here's an example ACL file. This is a whitelist. All URLs are evaluated
from each path part at a time until one matches. So if someone requests
/api/v0/get/QmASFD..., it will first see if /api is allowed, then
/api/v0, etc...
public is the only named role. Every other one should be by IP address.
---
roles:
public:
- /api/v0/get
- /api/v0/pin/ls
127.0.0.1:
- /api/v0/ping
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tornado-http-firewall-0.0.3.tar.gz.
File metadata
- Download URL: tornado-http-firewall-0.0.3.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e47a5f6900ee60633e399c1219bf7d693e5413b6bae6a58d6ecd745b3abef470
|
|
| MD5 |
f78a8d7ff2d2c992643dab06de0be625
|
|
| BLAKE2b-256 |
cfed825a71c961dfbc4ab6bd3c1fae33591cb43084ef388609ee0f2aecafbe4e
|