按照以下步骤设置并运行 API 项目:
git clone https://github.com/adriyansyah-mf/CentralizedFirewall
cd CentralizedFirewall
.env 文件根据你的配置更新 .env 中的环境变量。
nano .env
docker compose up -d
这将以分离模式启动 API。
检查容器是否已启动:
docker ps
docker compose down
docker compose restart
如果需要任何修改,请告诉我!🚀
sudo dpkg -i firewall-client_deb.deb
nano /usr/local/bin/config.ini
[settings]
api_url = API-URL
api_key = API-KEY
hostname = Node Hostname (make it unique and same as the hostname on the SIEM)
systemctl daemon-reload
systemctl start firewall-agent
systemctl status firewall-agent
Username: admin
Password: admin
你可以在设置页面上更改默认凭据
curl -X 'POST' \
'http://api-server:8000/general/add-ip?ip=123.1.1.99&hostname=test&apikey=apikey&comment=log' \
-H 'accept: application/json' \
-d ''
你可以在以下链接查看 Swagger 文档
http://api-server:8000/docs
DB=changeme
JWT_SECRET=changeme
PASSWORD_SALT=changme
PASSWORD_TOKEN_KEY=changme
OPENCTI_URL=changme
OPENCTI_TOKEN=changme
如果你觉得这个项目有用,请考虑通过 GitHub Sponsors 支持我: