Forging the firewall rules by example