sd
This commit is contained in:
31
README.md
31
README.md
@@ -68,6 +68,37 @@ All the configuration at the startup is customizable in [firegex.py](./run.py) o
|
||||
- Create basic firewall rules to allow and deny specific traffic, like ufw or iptables but using firegex graphic interface (by using [nftable](https://netfilter.org/projects/nftables/))
|
||||
- Port Hijacking allows you to redirect the traffic on a specific port to another port. Thanks to this you can start your own proxy, connecting to the real service using the loopback interface. Firegex will be resposable about the routing of the packets using internally [nftables](https://netfilter.org/projects/nftables/)
|
||||
- EXPERIMENTAL: Netfilter Proxy uses [nfqueue](https://netfilter.org/projects/libnetfilter_queue/) to simulate a python proxy, you can write your own filter in python and use it to filter the traffic. There are built-in some data handler to parse protocols like HTTP, and before apply the filter you can test it with fgex command (you need to install firegex lib from pypi).
|
||||
- Traffic Viewer allows you to monitor live network traffic for all services in real-time
|
||||
- Setup Import/Export allows you to backup and restore your entire Firegex configuration as a JSON file, making it easy to deploy identical configurations across multiple servers
|
||||
|
||||
## Configuration Management
|
||||
|
||||
Firegex supports importing and exporting configurations via JSON files. This is useful for:
|
||||
- Backing up your configuration
|
||||
- Deploying the same setup across multiple servers
|
||||
- Version controlling your firewall rules
|
||||
- Quick disaster recovery
|
||||
|
||||
### Using the Web Interface
|
||||
Navigate to "Setup Import/Export" in the sidebar to:
|
||||
- **Export**: Download your current configuration as JSON
|
||||
- **Import from File**: Upload a setup.json file
|
||||
- **Import from JSON**: Paste JSON directly into the interface
|
||||
|
||||
### Using the API
|
||||
```bash
|
||||
# Export configuration
|
||||
curl -H "Authorization: Bearer YOUR_TOKEN" \
|
||||
http://localhost:4444/api/setup/export > setup.json
|
||||
|
||||
# Import configuration
|
||||
curl -X POST -H "Authorization: Bearer YOUR_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d @setup.json \
|
||||
http://localhost:4444/api/setup/import
|
||||
```
|
||||
|
||||
See [setup.example.json](setup.example.json) for the configuration file format.
|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user