# 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 | |
|---|---|---|---|
| igdmapper-0.5.1.tar.gz | 15.7 kB | Details |
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
|