Iptables with IP Alias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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







[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux