Saturday, June 28, 2025

Offers A Firewall Supervisor API Designed To Centralize And Streamline The Administration Of Firewall Configurations




Set up

Comply with these steps to arrange and run the API venture:

1. Clone the Repository

git clone https://github.com/adriyansyah-mf/CentralizedFirewall
cd CentralizedFirewall

2. Edit the .env File

Replace the setting variables in .env based on your configuration.

nano .env

3. Begin the API with Docker Compose

docker compose up -d

This can begin the API in indifferent mode.

4. Confirm the API is Operating

Verify if the containers are up:

docker ps

Further Instructions

Cease the API

docker compose down

Restart the API

docker compose restart

Let me know for those who want any modifications! 🚀

Tips on how to setup for the primary time and hook up with firewall shopper

  1. Set up Firewall Agent in your node server
  2. Run the agent with the next command
sudo dpkg -i firewall-client_deb.deb
  1. Create a New Group on the Firewall Supervisor
  2. Create New API Key on the Firewall Supervisor
  3. Edit the configuration file on the node server
nano /usr/native/bin/config.ini
  1. Add the next configuration
[settings]
api_url = API-URL
api_key = API-KEY
hostname = Node Hostname (make it distinctive and similar because the hostname on the SIEM)
  1. Restart the firewall agent
systemctl daemon-reload
systemctl begin firewall-agent
  1. Verify the standing of the firewall agent
systemctl standing firewall-agent
  1. You will notice the linked node on the Firewall Supervisor

Default Credential

Username: admin
Password: admin

You possibly can change the default credential on the setting web page

Tips on how to Integration with SIEM

  1. Set up the SIEM in your server
  2. Configure the SIEM to ship the log to the Firewall Supervisor (You are able to do this by way of SOAR or SIEM configuration) The request ought to be POST with the next format
  3. The format of the log ought to be like this
curl -X 'POST' 
'http://api-server:8000/normal/add-ip?ip=123.1.1.99&hostname=check&apikey=apikey&remark=log'
-H 'settle for: software/json'
-d ''

You possibly can see the swagger documentation on the next hyperlink

http://api-server:8000/docs

The .env element configuration

DB=changeme
JWT_SECRET=changeme
PASSWORD_SALT=changme
PASSWORD_TOKEN_KEY=changme
OPENCTI_URL=changme
OPENCTI_TOKEN=changme

Sponsor This Venture 💖

In case you discover this venture useful, contemplate supporting me via GitHub Sponsors



Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles

PHP Code Snippets Powered By : XYZScripts.com