Need to create firewall rules for hosts which do not have static IP addresses? This program allows you to do so if you're able to assign DDNSes to each of those hosts. This is how the program operates:
- At each time interval defined by you (e.g. 1 hourly), it will:
- Read your list of whitelisted hosts and ports
- Resolve those whitelisted hostnames to IP addresses
- Add those whitelisted IP addresses and ports to Windows Firewall
- Remove the outdated rules
That's it! It's a bit hack-ish but unfortunately I could not find anything better for free at this moment.
- Make sure you have Python 2.7 and py2exe installed.
- In the project root folder, execute
python setup.py
. - Distribute
dist\main.exe
.
- Make sure you have the necessary runtime DDLs.
- Create
whitelist.txt
containing a list of whitelisted hosts/IP addresses and ports. For example:google.com 9999 192.168.1.1 3000
- Run
main.exe
as Administrator. - Add
main.exe
to startup, if necessary. - Enable Windows Firewall.