Skip to main content

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.

PyPI version License: MIT

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

License

MIT — see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dargslan_iptables_export-1.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dargslan_iptables_export-1.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for dargslan_iptables_export-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dc82e727b89f93473d905dcd90008530f7b55588b7f92f0561f84e60f4f0b9de
MD5 1ba4b2feed4225a17a50c40212185f84
BLAKE2b-256 27cc7f48beb1362cbcf78dd37e66641d7fc22e81d8e86b1ddddc8add01db36d5

See more details on using hashes here.

File details

Details for the file dargslan_iptables_export-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dargslan_iptables_export-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4efe303b4e30f703c0b37b73f3b631e46078e16c6a429a72765494e271617fa5
MD5 5e909352f267d99a3bbb47ef65e62523
BLAKE2b-256 0bc24239eb263e89a11d27596a423cbfece2d2b6cb9056a369cd826c28c0b38f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page