added rule check for firewalls

Ref #3