problem with IPTABLEs
On Wed, Feb 25, 2009 at 07:28:35PM -0500, Long Wind wrote:
> I want to specify a domain name in rules but the domain name often
> changes IP Is there anything I can do about it?
Cronjob, every four hours or so gets the current IP of the domain. Then,
in iptables, do something like
iptables -arg rule -ip $(cat /file/you/stored/ip/in)
Note: this is an ugly workaround, so if you need to do this for more
than one domain you may want to find another method.
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact email@example.com