Hmm, I’m not sure that portforwarding will work the same way when you have only one interface and using an alias for the second IP address. Why do you need portforwarding? Can’t you just let port 80 through?
iptables -P FORWARD DROP
iptables -A FORWARD -i eth0:0 -s 192.168.1.2 -p tcp -m multiport --destination-port 80,443 -m state --state NEW -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -j LOG --log-prefix “FORWARD DROP:”
iptables -A FORWARD -j DROP
but iptables doesnt allow do it with aliases:
Warning: weird character in interface `eth0:0' (No aliases, :, ! or *).