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.

![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.

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

Uploaded Source

File details

Details for the file igdmapper-0.5.1.tar.gz.

File metadata

  • Download URL: igdmapper-0.5.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for igdmapper-0.5.1.tar.gz
Algorithm Hash digest
SHA256 1eb31132550907d454986f9abf702f9c36e2f6898c656ad767973b1e9b1d5cfe
MD5 8162e736ae3ca4b21e60925b164e50c3
BLAKE2b-256 7dc951f190f14eeb698e29aef6f51f7b46a025088a7c952ca1577d87c18a1f1c

See more details on using hashes here.

Supported by

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