From: Cloves Pereira Costa Jr <cloves.costa@m2sys.com.br>
To: Netfilter ML <netfilter@vger.kernel.org>
Subject: Alias reference in iptables
Date: Fri, 01 Feb 2008 11:21:54 -0200 [thread overview]
Message-ID: <1201872114.25131.14.camel@wtprcwbti01002> (raw)
Hi all...
I have a doubt...
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, ...) or I can only refer to the main
interface (eth1)?
Example: iptables -A FORWARD -i eth1:0 -s 10.1.1.68 -o eth2 -d 10.1.2.5
-p tcp --dport 80 -j ACCEPT
[]s
--
Cloves Jr
next reply other threads:[~2008-02-01 13:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-01 13:21 Cloves Pereira Costa Jr [this message]
2008-02-01 14:10 ` Alias reference in iptables Pascal Hambourg
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=1201872114.25131.14.camel@wtprcwbti01002 \
--to=cloves.costa@m2sys.com.br \
--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