Alias reference in iptables

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

 



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


-
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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