Implemented check_firewall()