FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 02-25-2009, 11:28 PM
Long Wind
 
Default problem with IPTABLEs

I want to specify a domain name in rules
but the domain name often changes IP
Is there anything I can do about it?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-26-2009, 12:36 AM
Alex Samad
 
Default 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?
cron is your friend ?

>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>

--
"I want everybody to hear loud and clear that I'm going to be the president of everybody."

- George W. Bush
01/18/2001
Washington, DC
 
Old 02-26-2009, 12:40 AM
Andrew Reid
 
Default problem with IPTABLEs

On Wednesday 25 February 2009 19:28:35 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?

Can you meet your need with tcpwrappers?
They work quite well with domain names, and if you're
trying to selectively allow a particular service,
are probably the right choice.

Check the man-pages of /etc/hosts.allow and /etc/hosts.deny
for details.

-- A.
--
Andrew Reid / reidac@bellatlantic.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-26-2009, 05:14 AM
Long Wind
 
Default problem with IPTABLEs

Thanks to those who reply!

Gmail has changed! it combine many mails into one. I am confused. I am mad.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 03-07-2009, 11:30 PM
Michael Pobega
 
Default 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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 01:39 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org