How to redirect ports for on a virtual interface?

view full story

http://serverfault.com – There are two IPs associated with one physical network interface eth0 and eth0:0. The following works fine for the first interface: iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 Howerver the same doesn't work for the second interface: iptables -A PREROUTING -t nat -i eth0:0 -p tcp --dport 80 -j REDIRECT --to-port 8080 Also tried: iptables -A PREROUTING -t nat -p tcp --dport 80 -d $THE_IP -j REDIRECT --to-port 8080 So the question is how to do redirecting on a virtual interface. (HowTos)