T Techclick ← All lessons
Check Point · Quantum R81.20 / R82 · Lesson 4 of 17

Objects and rulebase: first match wins

Priya is in the HR group. The HR allow is rule 40. She still hits cleanup. Someone added rule 8: LAN → Any → Any → Accept. Check Point Access Control is first match. This lesson is objects, implied rules, cleanup, and why the first hit is the only hit.

Updated 2026-08-18·20 min read·L2 primary·Quiz at end

After this page you can

The ticket

Rule 40 allows HR_Users to hr.techclick-lab.in HTTPS. Traffic log shows rule 8 temp-lan-any Accept — or cleanup Drop if someone “fixed” rule 8 later. Nobody reads below the first match.

Quick interview answer

Check Point Access Control evaluates top to bottom. The first rule that matches source, destination, service, and time wins. Later more-specific rules never run. Cleanup should drop and log. Implied rules still exist — do not assume your row 1 is the first packet check.

Hero · first card wins
Rule list as stacked cards, first match wins
A wide accept above a precise allow makes the precise allow dead ink.
Lab data · dummy only

SMS sms-lab 10.10.10.5 · cluster VIP 10.10.10.1 (cp-gw-01 10.10.10.2 / cp-gw-02 10.10.10.3) · external 203.0.113.25 · internal LAN 10.20.30.0/24 · HR PC 10.20.30.80 TECHCLICK\priya.hr · HR app 10.20.30.41 hr.techclick-lab.in. Not a live customer.

Objects then first match

You never type 10.20.30.80 in twenty rules. You create host_priya_hr or put her in Access Role / group, then reuse the object. Change the IP once.

First match is the whole game: Source + Destination + VPN + Service + Time. Action is Accept, Drop, or jump to an inline layer (next lesson).

Every healthy policy ends with an explicit cleanup drop+log. If you delete it, implied cleanup still drops — but you lose a clear log story.

Packet vs rule list
Packet Implied R8 Any-Any R40 HR (never) Action wins

Rule 40 is correct and unused. The log will not show it.

Object types

ObjectExample in this labUse
Hosthost_hr_app 10.20.30.41One IP
Networknet_lan 10.20.30.0/24Subnet
Groupgrp_hr_serversReuse lists
ServiceHTTPS, custom TCP 8443Never Any unless you mean it
Timetime_businessOptional extra match
smartconsole://sms-lab/policy/standard
Training mock · not live
Gateways & ServersSecurity PoliciesLogs & MonitorManage & Settings
Security Policies → Access Control → Policy

Rule 40 · HR to HR app

40
HR_Users (Access Role)
host_hr_app
HTTPS
Accept
Log
Security Management — creating a basic Access Control policy; first-match enforcement. Training mock.

How you write a rule

  1. Side A — objects first

    Objects menu → New Host / Network / Group. Name them for humans (host_hr_app).

  2. Side B — rule

    Access Control → Policy → add above cleanup, never below. Source / Dest / Service / Accept / Log / comment.

  3. Side C — publish + install + log

    Publish session. Install Policy. Browse. Log must show this rule number, not cleanup and not a wide accept above.

What the log must say · dummy
# SmartConsole → Logs & Monitor
# Origin: cp-gw-01
# Source: 10.20.30.80
# Destination: 10.20.30.41
# Service: https
# Action: Accept
# Rule: 40  Name: HR_to_HR_app
# If Rule is 8 temp-lan-any — first match ate your design.

Four rulebase failures

1 · Shadowed rule

Wide rule above a specific rule. Log never shows the specific one.

2 · Object IP wrong

Host still has 10.20.30.42. Rule looks perfect. Packet does not match.

3 · Service Any vs HTTPS

You allowed HTTPS. App uses 8443. Cleanup drop. Create the service or a group.

4 · Unpublished session

You see the rule. Other admins and the gateway do not. Publish, then install.

How to prove it

Close the ticket only when

1) Object IPs are correct. 2) No wide accept above the intended rule. 3) Published + installed. 4) Log shows that rule name/number for Priya’s 5-tuple.

Traps

SymptomLikely storyFirst proofWrong fix
Cleanup drop, rule “exists”Shadow or unpublishedLog rule numberAdd another duplicate at the bottom
Accept but wrong appAny-Any aboveLog rule 8Disable Threat Prevention
Works for IP, not for userIdentity lesson 7Source user emptyMore host objects

Knowledge check

Judgment items. One best answer. Reasons send you back to the matching section.

Q1

Two rules match a packet. Which one wins?

Correct: b. First match.
Q2

Why create host_hr_app instead of typing 10.20.30.41 in ten rules?

Correct: a. Objects then first match.
Q3

Log shows rule 8 Any-Any Accept. Rule 40 is the “real” HR allow. What is true?

Correct: b. Failure 1.
Q4

You added a rule but the gateway log does not show it. Likely?

Correct: a. Failure 4.
Q5

What should the last explicit Access rule usually be?

Correct: b. Cleanup.
Q6

Implied rules mean…

Correct: b. Quick answer.

Check Point class series: Architecture · Gaia first day · SIC reset · Objects + first match · Policy layers · Hide vs Static NAT · Identity Awareness · HTTPS Inspection · Threat Prevention · Find the drop · fw monitor · SecureXL · ClusterXL · VPN Community · Policy install lock · vs PA vs Forti · CCSA / CCSE interview

Sources

Related: Check Point evidence desk · session factory · next lesson in the series above.