From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: Netfilter ML <netfilter@vger.kernel.org>
Subject: Re: Alias reference in iptables
Date: Fri, 01 Feb 2008 15:10:08 +0100 [thread overview]
Message-ID: <47A32840.60201@plouf.fr.eu.org> (raw)
In-Reply-To: <1201872114.25131.14.camel@wtprcwbti01002>
Hello,
Cloves Pereira Costa Jr a écrit :
>
> I'm configuring a linux router and i will create some alias in the LAN
> interface (eth1) for a network 10.1.1.0/27. For example:
> eth1 --> 10.1.1.33
> eth1:0 --> 10.1.1.65
> eth1:1 --> 10.1.1.97
> ...
>
> My question is: I can use in iptables rules the reference to the alias
> interfaces (eth1:0, eth1:1, ...)
No. IP aliases are just extra addresses, not interfaces. IP aliases are
some kind of old IPv4-specific legacy used by ifconfig. They are not
required to add extra IPv4 addresses to an interface and do not even
exist in IPv6.
> or I can only refer to the main interface (eth1)?
Yes. Same with routing : you won't find any alias name in the routing table.
prev parent reply other threads:[~2008-02-01 14:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-01 13:21 Alias reference in iptables Cloves Pereira Costa Jr
2008-02-01 14:10 ` Pascal Hambourg [this message]
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=47A32840.60201@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox