Metadata-Version: 2.4
Name: dargslan-firewall-audit
Version: 1.0.0
Summary: Linux firewall audit tool — check iptables/nftables rules, detect open ports, and generate security reports
Author-email: Dargslan <info@dargslan.com>
License: MIT
Project-URL: Homepage, https://dargslan.com
Project-URL: Documentation, https://dargslan.com/blog
Project-URL: Repository, https://github.com/Dargslan/dargslan-firewall-audit
Project-URL: Free Cheat Sheets, https://dargslan.com/cheat-sheets
Project-URL: Security Books, https://dargslan.com/books?category=security
Keywords: firewall,iptables,nftables,security,audit,linux,hardening
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# dargslan-firewall-audit

**Linux Firewall Audit Tool** — Audit iptables/nftables rules, detect security gaps, check default policies, and generate compliance reports.

[![PyPI version](https://img.shields.io/pypi/v/dargslan-firewall-audit)](https://pypi.org/project/dargslan-firewall-audit/)

## Installation

```bash
pip install dargslan-firewall-audit
```

## Usage

```python
from dargslan_firewall_audit import FirewallAudit

audit = FirewallAudit()
report = audit.full_audit()
print(f"Score: {report['score']}/100")
print(f"Issues: {len(report['issues'])}")
```

```bash
sudo dargslan-fwaudit           # Full audit
sudo dargslan-fwaudit --json    # JSON output
sudo dargslan-fwaudit --fix     # Show fix suggestions
```

## Checks

- Default INPUT/FORWARD policy (should be DROP)
- SSH rate limiting rules
- Open ports without firewall rules
- ICMP flood protection
- IP forwarding status
- Logging configuration

## Resources

- [Linux & Security eBooks](https://dargslan.com/books)
- [Free Cheat Sheets](https://dargslan.com/cheat-sheets)
- [Security Tutorials](https://dargslan.com/blog)

MIT — **[Dargslan](https://dargslan.com)**
