Skip to main content

# Purpose This project aims to provide some tools to write test suites for network firewalls.

Imagine an office network separated into several subnets all connected through a router firewalling according to the purpose of these networks. It can be really easy to mess up with firewall rules and unintentionally allow clients in the guest subnet access to protected resources.

Writing a testsuite can help to have a good amount of confidence on firewall changes.

# Local run

python setup.py -r requirements.txt python setup.py install

# Installation

pip install netunit

# Upload to PyPi

Run from project root:

python setup.py -r requirements-dev.txt ./publish.sh

# Usage

from netunit import NetworkTestCase from ipaddress import ip_network

class MyNetworkTests(NetworkTestCase):

network = ip_network(“192.168.179.0/24”)

def test_router_webinterface_access(self):

self.assertReachable(ip_address(“192.168.178.1”), 443)

def test_switching_hardware_access(self):

self.assertNotReachable(ip_address(“192.168.10.2”), 443)

Metadata

Release files for netunit 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netunit 0.2.5
File Size Uploaded Provenance Actions
netunit-0.2.5.tar.gz 2.0 kB Without provenance Details for netunit-0.2.5.tar.gz

Release files / netunit-0.2.5.tar.gz

Download URL netunit-0.2.5.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
81d7d544bfd1d4d60d231d9cdbe9a61542725cca20636f112fafa4d958ccffd7
BLAKE2b-256 checksum
How to use checksums
f6d3b8f90fa0c78f7f52301b1407214e42f621f468e05782b7b12412a9589b2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Security for netunit 0.2.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page