All of lore.kernel.org
 help / color / mirror / Atom feed
From: Barry Fawthrop <barry@ttienterprises.org>
To: netfilter@lists.netfilter.org
Subject: Re: IP Vs DNS
Date: Tue, 11 Oct 2005 20:00:15 -0400	[thread overview]
Message-ID: <434C520F.4050308@ttienterprises.org> (raw)
In-Reply-To: <20051011231030.GA18418@salty>


Jim Laurino 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.
>
How can this be done on a per packet basis, where the IP is checked 
regularly
or can the table be flushed and reloaded every hour.
What would be the negative of doing a reload each hour??

Thanks in Advance


-- 
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



  reply	other threads:[~2005-10-12  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-11 21:04 IP Vs DNS Barry Fawthrop
2005-10-11 23:10 ` IP Vs DNS (nfcan: addressed to exclusive sender for this address) Jim Laurino
2005-10-12  0:00   ` Barry Fawthrop [this message]
2005-10-12  0:32     ` IP Vs DNS /dev/rob0
2005-10-12  0:46       ` R. DuFresne
2005-10-12  0:38     ` R. DuFresne
2005-10-12  0:48       ` Anthony Sadler
     [not found] <200510120054.j9C0sDZC013724@darkstar.sysinfo.com>
2005-10-12 23:09 ` R. DuFresne

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=434C520F.4050308@ttienterprises.org \
    --to=barry@ttienterprises.org \
    --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.