Skip to main content

Python script to automate UPnP port mapping

Project description

# 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 install (or develop)

Install directly from pipy (easier)

pip install igdmapper

Run in a pipenv

pipenv sync pipenv run igd-mapper

## Run



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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

igdmapper-0.5.1.tar.gz (15.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page