Skip to content

Manage iptables entries with dynamic ip addresses

Notifications You must be signed in to change notification settings

thu-traub-old/ipdyn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

ipdyn

This simple python script manages IP-tables entries by replacing IP-addresses with actual addresses from a DNS lookup. The DNS names are stored in IP-tables comment section.

Example:

iptables -A INPUT -p tcp -s 0.0.0.0 -j ACCEPT -m comment --comment "DYN:myaddress.dyndns.org=0.0.0.0"

The script replaces the "0.0.0.0" with the actual IP-Address. I suggest running the script within a cronjob.

About

Manage iptables entries with dynamic ip addresses

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages