httptables-manager is a simple model-backed API, to provide management services for httptables
default port
: 10085
- Centos7
- Python3
- MySQL
- Django1.95
create two read-write API for accessing information on the rule_types and rules
-
install base package
run depends.sh
-
start MySQL
systemctl start mariadb
-
create database
CREATE DATABASE httptables CHARACTER SET utf8;
-
import SQL
MariaDB [(none)]> use httptables
MariaDB [httptables]> source httptables.dump.sql
note:
- default user:
admin
- default password:
123456@admin
- default user:
-
start django
run manager/run.sh
you can now open the API in your browser at http://127.0.0.1:10085/, and view 'rule_types' and 'rules' API. If you use the login control in the top right corner you'll also be able to add, create and delete rule_types,rules from the system.
open manager/project/setting.py, modify the value of the HTTPTABLES_NOTIFY_URL.
HTTPTABLES_NOTIFY_URL=["http://172.28.32.105:8001/admin/notify"]
172.28.32.105
is httptables's ip address, if you have multiple httptables, need to be added to this list.
One of the most powerful parts of Django is the automatic admin interface, the admin is enabled in the default, you can easily use if needed. you can now open the Admin page in your browser at http://127.0.0.1:10085/admin/