All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Laurino <nfcan.x.jimlaur@dfgh.net>
To: netfilter@lists.netfilter.org
Subject: Re: IP Vs DNS (nfcan: addressed to exclusive sender for this address)
Date: Tue, 11 Oct 2005 19:10:30 -0400	[thread overview]
Message-ID: <20051011231030.GA18418@salty> (raw)
In-Reply-To: <434C28FB.3000805@ttienterprises.org> (from +nfcan+jimlaur+eb82a5d024.barry#ttienterprises.org@spamgourmet.com on Tue, Oct 11, 2005 at 17:04:59 -0400)

On 2005.10.11 17:04, Barry Fawthrop - barry@ttienterprises.org wrote:
> Greetings all
> 
> with an IPTABLES ruleset you can specify an IP address to be allowed/blocked
> iptables INPUT -s 12.12.12.12 -j ALLOW
> 
> But can this be done with a DNS name
> iptables INPUT -s www.name.com -j ALLOW

IPTABLES accepts DNS names, but the DNS lookup is performed
when the rule is placed in the kernel,
not when the rule is evaluated against a packet.
The kernel (netfilter) rules use ip address only.

To achieve what you want, I think you would have to
update the rule whenever the DNS mapping changed.

> 
> since 12.12.12.12 may be www.name.com but it can also be
> 12.12.15.12 or 12.15.12.19
> eg www.nasa.gov this address does vary depending on location and sometimes  
> time of day
> from a single point I can ping www.nasa.gov and get different IP addresses  
> for it.
> 
> Yet I would like to allow access but preferably not to a whole range.
> Also by allowing a DNS name then if a single IP addresses hosts many sites,  
> I can be specific about the site?
> 
> 
> Thanks in advance
> B
> 
> 
>-- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.11.14/129 - Release Date: 10/11/2005
> 
> 
>
-- 
Jim Laurino
nfcan.x.jimlaur@dfgh.net
Please reply to the list.
Only mail from the listserver reaches this address.


  reply	other threads:[~2005-10-11 23:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-11 21:04 IP Vs DNS Barry Fawthrop
2005-10-11 23:10 ` Jim Laurino [this message]
2005-10-12  0:00   ` Barry Fawthrop
2005-10-12  0:32     ` /dev/rob0
2005-10-12  0:46       ` R. DuFresne
2005-10-12  0:38     ` R. DuFresne
2005-10-12  0:48       ` Anthony Sadler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051011231030.GA18418@salty \
    --to=nfcan.x.jimlaur@dfgh.net \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.