[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 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.

-- 
		  http://pobega.wordpress.com
		    http://identica/pobega


Reply to: