Skip to content

jkerdreux-imt/igd-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

About

Python script to automate UPnP port mapping

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages