From: Luciano Ruete <kies@myrealbox.com>
To: netfilter@lists.netfilter.org
Subject: Re: Iptables with IP Alias
Date: Sun, 24 Nov 2002 15:19:48 -0300 [thread overview]
Message-ID: <3DE11844.6060502@myrealbox.com> (raw)
In-Reply-To: H5HQ0H$9919374312372D5676DDD544D0265BEA@terra.com.br
Juliano Dapper escribió::
> What's iptables not accept rules in ip alias, eth0:0, eth0:1?
> I have a linux box with 2 ips and i have create ruls to redirect
traffic to internal machine,ex:
> iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 25 -j DNAT --to
192.168.0.1
> iptables -t nat -A PREROUTING -p tcp -i etho:0 --dport 80 -j DNAT --to
> 192.168.0.2
> eth0 - 200.200.200.1
> eth0:0 - 200.200.200.2
Since kernel 2.4 aliases are matched in ethx rather than etx:x.
But this is not a limitation, you can match -d address in your case or
source address/network in others.
Slds !
--
Luciano
prev parent reply other threads:[~2002-11-24 18:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-13 1:12 Iptables with IP Alias Juliano Dapper
2002-11-24 18:19 ` Luciano Ruete [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=3DE11844.6060502@myrealbox.com \
--to=kies@myrealbox.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox