Fixed firewall rules not working properly