Firewall rule exporter and documenter — export iptables/nftables rules to readable, shareable formats
Project description
dargslan-iptables-export
Firewall Rule Exporter & Documenter — Export iptables/nftables rules to readable, JSON, and CSV formats. Auto-detects backend. Zero external dependencies.
Installation
pip install dargslan-iptables-export
CLI Usage
dargslan-iptexp report # Full firewall report
dargslan-iptexp readable # Human-readable export
dargslan-iptexp json # JSON export
dargslan-iptexp csv # CSV export
dargslan-iptexp raw # Raw iptables output
dargslan-iptexp stats # Rule statistics
dargslan-iptexp readable -o rules.txt # Export to file
Python API
from dargslan_iptables_export import IptablesExport
ie = IptablesExport()
rules = ie.parse_iptables_rules()
readable = ie.export_readable()
ie.print_report()
More from Dargslan
- Dargslan.com — Linux & DevOps eBook Store
- Free Cheat Sheets
- Blog & Tutorials
License
MIT — see LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dargslan_iptables_export-1.0.0.tar.gz.
File metadata
- Download URL: dargslan_iptables_export-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc82e727b89f93473d905dcd90008530f7b55588b7f92f0561f84e60f4f0b9de
|
|
| MD5 |
1ba4b2feed4225a17a50c40212185f84
|
|
| BLAKE2b-256 |
27cc7f48beb1362cbcf78dd37e66641d7fc22e81d8e86b1ddddc8add01db36d5
|
File details
Details for the file dargslan_iptables_export-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dargslan_iptables_export-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4efe303b4e30f703c0b37b73f3b631e46078e16c6a429a72765494e271617fa5
|
|
| MD5 |
5e909352f267d99a3bbb47ef65e62523
|
|
| BLAKE2b-256 |
0bc24239eb263e89a11d27596a423cbfece2d2b6cb9056a369cd826c28c0b38f
|