NetFilter
[Top] [All Lists]

Re: Accept DNS Suffix

To: Dominic Caputo <dominic.caputo@gmail.com>
Subject: Re: Accept DNS Suffix
From: Cedric Blancher <blancher@cartel-securite.fr>
Date: Tue, 20 Mar 2007 15:44:05 +0100
Cc: netfilter@lists.netfilter.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: netfilter-list1@securepoint.com
In-reply-to: <013901c76a83$0deb8f70$6f05b00a@au.schpac.local>
List-archive: </pipermail/netfilter>
List-help: <mailto:netfilter-request@lists.netfilter.org?subject=help>
List-id: General discussion and user questions <netfilter.lists.netfilter.org>
List-post: <mailto:netfilter@lists.netfilter.org>
List-subscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=subscribe>
List-unsubscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=unsubscribe>
Organization: Cartel Securite
References: <013901c76a83$0deb8f70$6f05b00a@au.schpac.local>
Sender: netfilter-bounces@lists.netfilter.org
Le mardi 20 mars 2007 à 11:02 +1100, Dominic Caputo a écrit :
> I currently have an ISP that has multiple address ranges that I wish to 
> accept in my iptables ruleset. Is it possible for me to use the DNS Suffix 
> instead of the actual ip as they are currently dynamically assigned. e.g. 
> iptables -s nsw.bigpond.net.au   (current assigned address is 
> cpe-203-45-103-100.nsw.bigpond.net.au).

No it's not possible. Netfilter only works on IPs, which means if you do
that, iptables will resolve the DNS name _now_ and use the result to
push the rule that won't be updated afterwards if IP changes.

However, if you have an idea of how often the IP changes, you can write
a script that queries the name regularly and update your ruleset
accordingly when it changes.


-- 
http://sid.rstack.org/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE
>> Hi! I'm your friendly neighbourhood signature virus.
>> Copy me to your signature file and help me spread!


<Prev in Thread] Current Thread [Next in Thread>