A router checks each packet against an ordered list of permit and deny rules based on address, protocol and port, which…