Skip to main content

# 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.

![IGD-mapper](./screenshots/shot.jpg)

## 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)

Source distribution for igdmapper 0.5.1
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

Release history Release notifications | RSS feed

This release

0.5.1 This release

1 release file

0.4

1 release file

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