Apply firewall rules