* Iptables with IP Alias
@ 2002-11-13 1:12 Juliano Dapper
2002-11-24 18:19 ` Luciano Ruete
0 siblings, 1 reply; 2+ messages in thread
From: Juliano Dapper @ 2002-11-13 1:12 UTC (permalink / raw)
To: netfilter
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
Tkz...
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Iptables with IP Alias
2002-11-13 1:12 Iptables with IP Alias Juliano Dapper
@ 2002-11-24 18:19 ` Luciano Ruete
0 siblings, 0 replies; 2+ messages in thread
From: Luciano Ruete @ 2002-11-24 18:19 UTC (permalink / raw)
To: netfilter
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-24 18:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-13 1:12 Iptables with IP Alias Juliano Dapper
2002-11-24 18:19 ` Luciano Ruete
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox