This release is a pre-release and may not be stable for production use.
About
This package allows you to describes firewall rules and dump it out, there is support for iptables and ip6tables.
Example Usage
>>> import iptdump
>>> ipt = iptdump.Iptables()
>>> chain = ipt.table(iptdump.TABLE_FILTER).chain(iptdump.CHAIN_INPUT)
>>> chain.new().src('192.168.23.0/24').target(iptdump.TARGET_DROP)
<iptdump.Rule instance at 0x7f922dfb8cb0>
>>> print ipt.dump()
# Generated by python-iptdump v1b1 on Mon Dec 3 18:25:27 2012
*filter
:INPUT ACCEPT [0:0]
-A INPUT -s 192.168.23.0/24 -j DROP
COMMIT
# Completed on Mon Dec 3 18:25:27 2012
>>> ipt = iptdump.Ip6tables()
>>> chain = ipt.table(iptdump.TABLE_FILTER).chain(iptdump.CHAIN_INPUT)
>>> chain.new().src('fe80::/64').target(iptdump.TARGET_DROP)
<iptdump.Rule instance at 0x7f7ed18a1b48>
>>> print ipt.dump()
# Generated by python-iptdump v1b1 on Mon Dec 3 18:25:32 2012
*filter
:INPUT ACCEPT [0:0]
-A INPUT -s fe80::/64 -j DROP
COMMIT
# Completed on Mon Dec 3 18:25:32 2012
Metadata
Release files for iptdump 1b1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iptdump-1b1.3.tar.gz | 7.0 kB | Without provenance | Details for iptdump-1b1.3.tar.gz |
Release files / iptdump-1b1.3.tar.gz
| Download URL | iptdump-1b1.3.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62a981b4250810d4f76924e3ea25d40926c23cd2ebdeb194622563376ed827f7
|
|
BLAKE2b-256 checksum How to use checksums |
dbbf85f714df9dd4de880c45e240fdfe479b18d88826829fe3ead1aa4ce5ca13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for iptdump 1b1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.