Submitted by bwwill on Mon, 02/16/2015 - 08:39
Webmin allows me to put domain names into the firewall rules (e.g. source IP). When the rules are deployed the domain name gets translated to its corresponding IP address in iptables. Because these domain names are dynamic IP addresses, iptables needs to be refreshed periodically in order to pick up any address changes. Is there a way do automate this in Webmin so that iptables gets refreshed every few hours or so?
Status:
Active
Comments
Submitted by JamieCameron on Mon, 02/16/2015 - 23:19 Comment #1
Not built into Webmin, but you could create a cron job that every hour runs a command like :
iptables-restore </etc/iptables.up.rules
This will re-apply the rules, and force re-resolution of domains.