Course contents · Boundary and rules
- 1. Bind a PAN-OS change to the right firewall and recovery pathFree
- 2. Build a Security rule with an explicit rejected clientFree
- 3. Map destination NAT to the Security policy destination zoneFree account
- 4. Review dependent changes before a PAN-OS commitPremium
- 5. Read PAN-OS policy and session evidence togetherPremium
- 6. Recover the right PAN-OS configuration statePremium
- 7. Hand over a PAN-OS change with current evidencePremium
Build a Security rule with an explicit rejected client
Create an application-aware Security rule for one client and service, inspect earlier matches and prevent a broader rule from admitting the control client.
28 MIN
By AISecurityInterviews · Updated
TL;DR: Use the original destination alias and the post-translation destination zone in the Security rule. Review the complete rule order and add a scoped rejection rule so the control client cannot fall through to a broader allow.
Where you are. Lesson 2 of seven. Draft the access decision before activation.
Reference and lab scope. PAN-OS 11.2 interface/CLI documentation and applicable NGFW guidance checked November 2026. This fixed teaching reference is not a patch recommendation. Product steps are documentation-checked, not appliance-executed. Use only an explicitly authorized isolated, standalone IPv4 lab with synthetic traffic, existing routing and tested management recovery. Python records are fictional and stay offline.
Turn the accepted flow into two rules
The reviewer should reach the owned service over TCP 443. The control client uses the same alias and port but must be denied. Source IP matching here is a lab boundary, not proof of a human identity. The application still authenticates and authorizes its users. The provider records that limitation instead of selling an IP-based rule as identity security.
PAN-OS uses the first matching Security rule. Its policy overview also describes the default intrazone allow and interzone deny rules. Inspect the actual rulebase, including overrides and any pre-existing broad permit. The default rule names do not prove the current action. Stop if an earlier rule would admit either test client before the proposed pair.
The NAT relationship is completed in lesson three. For this destination translation, the Security rule's destination address remains the original alias, 198.51.100.50, while the destination zone is the translated server's zone, aw-services. Writing 10.77.20.10 into the destination address field would answer the wrong matching question.
Configure the candidate without activating it
Use the documented Security rule fields. Record object values and rule UUIDs along with readable names. A renamed object or rule should not silently change what the reviewer thinks is being approved.
- Under Policies > Security, add
AW-review-allow. In General, record the change reference and intended reviewer. - Set source zone
aw-outsideand source address198.51.100.25/32. Set destination zoneaw-servicesand destination address198.51.100.50/32. - Select the documented
sslapplication for this intentionally generic TLS lab service. In Service/URL Category, selectapplication-default. Verify the installed application definition and any dependencies; a port number alone does not establish App-ID. - In Actions, choose Allow, attach the customer's approved existing Security Profile Group, and enable Log at Session End. Preserve the approved log-forwarding configuration. Confirm that the profile is appropriate for the available subscriptions and actual visibility.
- Add
AW-review-rejectimmediately after it, with the same zones and alias, source198.51.100.24/30, Application any, Service any and action Deny. Enable session-end logging. This narrow source block includes both controlled client addresses. - Read back the values and placement against all earlier and later rules. Save the candidate for review; do not commit until the NAT and full change scope are ready.
The rejection rule deliberately catches traffic from either test client that does not satisfy the specific permit. It is not a global deny rule or a replacement for the baseline. For example, a generic TLS application on a nondefault port cannot fall through to a later broad permit within this scoped pair. The NAT rule will further restrict the publication to TCP 443, so later tests must identify which control actually stopped a flow.
ssl is an application classification, not proof of a particular website, authenticated reviewer or harmless document. No decryption is configured here. The permitted IP and destination limit the flow, while the application and TLS endpoint provide separate guarantees.
Read the OEM console: open the official Security policy and troubleshooting figures. Inspect the source, destination, application, service and action columns in its PAN-OS section. The vendor's broader starter policy is not the Alder Works rule pair; do not copy its unrelated applications or addresses.
The official rule-table image is available at full size. Its infrastructure applications and address scope are examples, not the values to enter for this service. The image lives in the vendor's 11.1 asset directory; confirm field labels on the actual reference-release appliance.
Check ordered decisions offline
This model assumes a supplied application classification and already-resolved destination zone. It cannot recognize traffic, evaluate Security Profiles or reproduce the firewall's session lifecycle.
from ipaddress import ip_address, ip_network
clients = ip_network('198.51.100.24/30')
def decide(source, destination, zone, application, port):
scope = (ip_address(source) in clients
and destination == '198.51.100.50'
and zone == 'aw-services')
if not scope:
return 'outside this model'
if source == '198.51.100.25' and application == 'ssl' and port == 443:
return 'AW-review-allow'
return 'AW-review-reject'
cases = [('198.51.100.25', 'ssl', 443),
('198.51.100.26', 'ssl', 443),
('198.51.100.25', 'ssl', 8443)]
print([decide(s, '198.51.100.50', 'aw-services', a, p)
for s, a, p in cases])
# => ['AW-review-allow', 'AW-review-reject', 'AW-review-reject']
assert decide('198.51.100.25', '10.77.20.10',
'aw-services', 'ssl', 443) == 'outside this model'
- 1
1 · EARLIER RULES
- Check whether another match consumes the flow
- Resolve overlap before accepting the candidate
- 2
2 · SPECIFIC PERMIT
- One reviewer and the original alias
- Expected application and default service
- 3
3 · SCOPED REJECTION
- Both controlled clients to this alias
- Reject traffic that misses the specific permit
Do this before moving on
A colleague moves AW-review-reject above the permit and then reports that both clients are blocked. Explain the result before changing anything else. Next, consider an earlier broad allow that matches both clients.
Worked check: in the first case, the rejection rule consumes the reviewer's flow. In the second, neither new rule controls it. Correct placement and the full existing rulebase matter; changing the application to any would not fix either ordering error.
Go deeper
- Segmentation and egress control: connect the rule to an explicit boundary and permitted flow.
- TCP/IP for security engineers: distinguish an address and transport session from authenticated application work.
- Endpoint and network telemetry: correlate observations without treating one sensor as complete evidence.
Key takeaways
- Use original addresses and the destination zone after translation for this Security rule.
- Review first-match order and the fallback behavior for both clients.
- Application classification and profile attachment do not prove application authorization or decrypted inspection.
Check yourself
Say or write your answer first, then reveal. Explaining it from memory, in your own words, is the skill an interviewer is checking.
1Why does the rejection rule include the allowed client too?
2Does an ssl allow log prove that the reviewer read the intended document?
Sign in to track which lessons you have finished.