Better to combine multiple firewall rules in one rule, or make them all separate?

Announcer
Getting noticed

Better to combine multiple firewall rules in one rule, or make them all separate?

If I have 2 subnets that need port 80 and 5000 open to subnet 3, is it better to create one firewall rule for each or combine them?

allow--TCP, subnet1, subenet 2, source port any, destination subnet 3, destination port 80, 5000.

 

OR

 

allow--TCP, subnet1, source port any, destination subnet 3, destination port 80.

allow--TCP, subnet1, source port any, destination subnet 3, destination port 5000.

allow--TCP, subnet2, source port any, destination subnet 3, destination port 80.

allow--TCP, subnet2, source port any, destination subnet 3, destination port 5000.

 

Does it make a difference to Meraki or the speed of process?

thanks!

5 Replies 5
alemabrahao
Kind of a big deal
Kind of a big deal

I wouldn't say for processing reasons, but I personally (when possible) prefer to create a single rule if the objective is the same, this makes the configuration much "clear".

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Badr-eddine
Getting noticed

Hello,

 

Regarding your query, here's a breakdown:

 

  • Option 1 is recommended If your priority is simplicity and your use case is straightforward, and it provides a more streamlined approach with fewer rules.
  • Option 2 is recommended if you require more granular control over different subnets and ports or if your security policy necessitates distinct treatment for each combination. It allows for a more detailed and specific rule set tailored to specific scenarios.

 

The optimal choice depends on the specific security policies and requirements of your network. Please let me know if this information addresses your question.

PhilipDAth
Kind of a big deal
Kind of a big deal

I do both.

 

The benefit of option 1 is the firewall rule base in the GUI is more concise.

 

The benefit of option 2 is you can see the individual rule hits to see if traffic is flowing.

BlakeRichardson
Kind of a big deal
Kind of a big deal

Option 2 for me as mentioned by Philip that it makes logs much easier and quicker to read. 

If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.
Announcer
Getting noticed

Thank you all for the input all.  I imagine option 2 would make the the list in the firewall quite large, but maybe easier to manage and decipher.

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.
Labels