Rule Order
Part of the Stopping the Spread section of Coddy's Cybersecurity journey. Lesson 7 of 20.
A correct rule can have no effect if an earlier rule already decides the connection. Lumen’s firewall stops at the first match.
Inspect this practice policy:
seclab machine demo-shopLook for these lines:
firewall (first match wins, anything unmatched is blocked):
rule action port from note
1 allow any any
2 deny 22 office never used: rule 1 decides firstThe allow-any rule is first. The office administration deny below it is never reached. Move the existing deny ahead of it:
seclab firewall demo-shop move 2 1You should see:
Moved rule 2 on demo-shop to position 1. Rules are checked top down.Read the order again:
seclab machine demo-shopLook for these lines:
firewall (first match wins, anything unmatched is blocked):
rule action port from note
1 deny 22 office
2 allow any anyThe deny now decides office traffic to port 22. Other traffic can continue to the next rule. Changing order fixes this policy without adding another copy of the same deny.
Challenge
EasyTicket from Sam, IT lead
A newly added report-server has an office administration deny, but dispatch-pc can still reach it. Find why the rule has no effect and correct the policy before the next attempt to read server configuration. Keep the server’s HTTPS service available and leave checkout and the approved dispatch backup working.
Try it yourself
All lessons in Stopping the Spread
2Close the Unwanted Route
Destination RulesRule OrderOutbound RulesAllow the Needed WorkTwo Unwanted Routes3Contain More Than One Computer
Isolate a ComputerThe Exposed PasswordFollow the SpreadKeep Customers WorkingTwo Active Computers