Meraki Layer 3 & 7 Firewall Configuration
Scenario:
- In this lab exercise, I will create layer 7 firewall rules alongside traditional layer 3 rules
Menu to create firewall rules
Layer 7 Firewall Rule Section
Pre-defined Layer 7 Application Types
Overview
- In the following firewall rule scenario, I have created outbound layer 3 and layer 7 rules that will be processed together to tighten the security posture
- By default, outbound traffic will be allowed through the firewall unless explicitly blocked by a layer 3 or layer 7 rule. To mitigate this default behavior, I've created an explicit deny 'any' rule for any traffic that does not match any configured rule
- The MX Processing Flow Diagram by Cisco is an important diagram to understand to ensure firewall rules are acting as intended. Layer 3 firewall rules in Cisco Meraki are checked first before layer 7 firewall rules. Once traffic has a match on a layer 3 rule, the next step would be to check if the traffic also matches a layer 7 rule
MX Processing Flow Diagram
Defined Layer 3 Outbound Rules
- Rule 1:
- Rule 1 allows outbound HTTP web traffic for the Guest, Corporate, & Servers VLAN networks
- Rule 2:
- Rule 2 allows outbound HTTPs web traffic for the Guest, Corporate, & Servers VLAN networks
- Rule 3:
- Rule 3 allows outbound FTP traffic for the Corporate and Production VLAN networks
- Rule 4:
- Rule 4 is an explicit 'deny any' rule to deny traffic that has not been matched by any of the previous layer 3 firewall rules
Defined Layer 7 Outbound Rules
- Rule 1:
- If traffic matches any of the 'allow' layer 3 firewall rules, then proceed on checking layer 7 firewall rules. If the traffic also matches the layer 7 rule, deny Web traffic destined for websites categorized as video and music. In this case, Rules 1 and 2 of the layer 3 rules are checked against the layer 7 rule
