# IGD-mapper
IGD-mapper is a simple Python script used to setup IGD (Internet Gateway Device) NAT rules though UPnP. The script use a config file (/etc/igd-mapper.ini) that contains the rules for a given host.
IGD-mapper can be used in network “PostUP” script and crontab.

## Install Several options are available:
python setup.py install (or develop)
Install directly from pipy (easier)
pip install igdmapper
Run in a pipenv
pipenv sync pipenv run igd-mapper
## Run
igd-mapper
Options
usage: idg-mapper [-h] [-c CONFIG] [-l] [-f] [-d] [-q]
optional arguments: -h, –help show this help message and exit -c CONFIG config file -l only list nat rules -f only drop nat rules -d enable debug -q quiet, disable output
## Notes IGD-mapper use custom string to name rules (igd-mapper-hostname). This provides an easy way to find them, and clear old rules.
Metadata
Release files for igdmapper 0.5.1
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 |
|---|---|---|---|---|
| igdmapper-0.5.1.tar.gz | 15.7 kB | Without provenance | Details for igdmapper-0.5.1.tar.gz |
Release files / igdmapper-0.5.1.tar.gz
| Download URL | igdmapper-0.5.1.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1eb31132550907d454986f9abf702f9c36e2f6898c656ad767973b1e9b1d5cfe
|
|
BLAKE2b-256 checksum How to use checksums |
7dc951f190f14eeb698e29aef6f51f7b46a025088a7c952ca1577d87c18a1f1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for igdmapper 0.5.1
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.