Automated Firewall Configuration in Virtual Networks