From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: Billy Crook <billycrook@gmail.com>
Cc: iic1tls@yahoo.com, netfilter <netfilter@vger.kernel.org>
Subject: Re: Bastion Firewall Host Redirect Question
Date: Fri, 17 Dec 2010 22:35:34 +0100 [thread overview]
Message-ID: <4D0BD7A6.7040908@plouf.fr.eu.org> (raw)
In-Reply-To: <AANLkTi=xSuKsKw7UPiR1aTCCf0G9AGt7tiu6Unu3PCUA@mail.gmail.com>
Hello,
Billy Crook a écrit :
> On Tue, Dec 14, 2010 at 08:54, iic1tls <iic1tls@yahoo.com> wrote:
>> I have attempted several iptables rules, including:
>> iptables -v -t nat -A PREROUTING --in-interface eth1 --dport 80 -d
>> www.website.com -j DNAT --to 149.10.10.25
>
> When you hit enter to commit this rule the iptables command resolves
> www.website.com to an ip address, and then hands the request to add a
> rule to netfilter. The in-kernel rule will not change when
> website.com's IP changes, which may happen at any time. If clients
> get a different IP for website.com (say they have multiple IPs), their
> access will not be intercepted by the iptables rule.
Conversely, access to any other site hosted at the same IP address will
be intercepted.
> iptables does not filter on domain names.
Nor web site (HTTP Host:) names. Bottom line.
next prev parent reply other threads:[~2010-12-17 21:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-14 14:54 Bastion Firewall Host Redirect Question iic1tls
2010-12-14 14:59 ` Jonathan Tripathy
2010-12-14 15:10 ` iic1tls
2010-12-14 17:32 ` /dev/rob0
2010-12-14 20:01 ` Billy Crook
2010-12-17 21:35 ` Pascal Hambourg [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-12-14 15:10 iic1tls
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=4D0BD7A6.7040908@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--cc=billycrook@gmail.com \
--cc=iic1tls@yahoo.com \
--cc=netfilter@vger.kernel.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.