OT: Iptables and IP Aliasing

Luke Davis ldavis at shellworld.net
Wed Jun 16 22:41:18 EDT 2004


How does one specify an IP Alias Interface, as an interface in iptables?
The manual page suggests that one might be able to, but if I run a command 
such as:

iptables -t filter -A INPUT -i eth0:0 -p tcp -s 66.229.228/24 -d
xx.xx.xx.xx -j DROP

I get:

Warning: weird character in interface `eth0:0' (No aliases, :, ! or *).

Any thoughts on this?  Should I associate the alias IP, with the real 
interface (eth0), as far as iptables is concerned?

Luke




More information about the Speakup mailing list