Metadata-Version: 2.1
Name: igdmapper
Version: 0.4
Summary: Python script to automate UPnP port mapping
Author: Jerome Kerdreux
Author-email: Jerome.Kerdreux@imt-atlantique.fr
License: GPL License
Keywords: upnp,igd,nat
Platform: any
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
License-File: LICENSE

# 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 github (easier) 

    pip install git+https://github.com/jkerdreux-imt/igd-mapper.git

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.
