Home / Blogs / Palo Alto Next-Generation Firewall (NGFW): Architecture, CLI Implementation, and Verification
Palo Alto

Palo Alto Next-Generation Firewall (NGFW): Architecture, CLI Implementation, and Verification

Palo Alto Next-Generation Firewall (NGFW)

On This Page Β· View TopicsPalo Alto Next-Generation Firewall (NGFW)Verification Commands and Sample Output2. Inspect Detailed Session Info (show session id 10482)Key Operational Best PracticesπŸ“ž Contact us today to join our Palo Alto Firewall Training Program and boost your knowledge and your career.

Palo Alto Next-Generation Firewall (NGFW)

raditional firewalls rely heavily on ports, protocols, and IP addresses to allow or block trafficβ€”an approach that struggles when modern applications tunnel over standard ports like TCP 80 and 443. Palo Alto Networks Next-Generation Firewalls (PAN-OS) solve this with Single-Pass Parallel Processing (SP3) architecture and three core identification technologies: App-ID, User-ID, and Content-ID.

paloalto
configure

# 1. Create Security Zones
set zone Trust network layer3 ethernet1/2
set zone Untrust network layer3 ethernet1/1

# 2. Configure Layer 3 Interfaces and Virtual Router
set network interface ethernet ethernet1/1 layer3 ip 203.0.113.2/30
set network interface ethernet ethernet1/2 layer3 ip 192.168.10.1/24
set network virtual-router default interface [ ethernet1/1 ethernet1/2 ]
set network virtual-router default routing-table ip static-route Default_Route destination 0.0.0.0/0 interface ethernet1/1 nexthop ip-address 203.0.113.1

# 3. Configure Security Policy using App-ID
set rulebase security rules Allow-Web-Access from Trust to Untrust source 192.168.10.0/24 destination any application [ web-browsing ssl dns ] service application-default action allow

# 4. Configure Dynamic IP and Port (DIPP) Source NAT
set rulebase nat rules Outbound-PAT from Trust to Untrust source 192.168.10.0/24 destination any service any source-translation dynamic-ip-and-port interface-address interface ethernet1/1 ip 203.0.113.2/30

commit
exit

Verification Commands and Sample Output

Verification Commands and Sample Output Once commit succeeds, generate outbound web traffic from an internal host (192.168.10.50) and inspect sessions, NAT translations, and rule hit counts. 1. Check Active Sessions (show session all)

●   show session all filter source 192.168.10.50
ID          Application    State   Type Flag  Src[Sport]/Zone/Proto (translated IP[Port])
Vsys                                          Dst[Dport]/Zone (translated IP[Port])
--------------------------------------------------------------------------------------------------
10482       ssl            ACTIVE  FLOW  NS   192.168.10.50[52418]/Trust/6  (203.0.113.2[31904])
vsys1                                         142.250.193.78[443]/Untrust  (142.250.193.78[443])

Look at two key indicators here: Application: ssl confirms App-ID identified the session rather than merely seeing TCP port 443. Flag NS: N indicates NAT is applied (192.168.10.50:52418 translated to 203.0.113.2:31904), and S indicates the session is offloaded/hardware-assisted.

2. Inspect Detailed Session Info (show session id 10482)

●   show session id 10482
Session          10482

        c2s flow:
                source:      192.168.10.50 [Trust]
                dst:         142.250.193.78
                proto:       6
                sport:       52418           dport:      443
                state:       ACTIVE          type:       FLOW
                src user:    unknown
                dst user:    unknown

        s2c flow:
                source:      142.250.193.78 [Untrust]
                dst:         203.0.113.2
                proto:       6
                sport:       443             dport:      31904
                state:       ACTIVE          type:       FLOW

        start time                    : Sun Nov 29 15:20:14 2026
        application                   : ssl
        rule                          : Allow-Web-Access
        nat rule                      : Outbound-PAT

Key Operational Best Practices

Use application-default for Services: Always pair App-ID rules with service application-default so applications like ssl or web-browsing are restricted to their standard ports (443 and 80), preventing unauthorised port-hopping. Include Application Dependencies: Many applications depend on underlying protocols (for example, google-base or ssl alongside youtube-base). Always check dependencies in the PAN-OS Application database before committing. Enable Logging on Default Rules: Override interzone-default to enable session-end logging so dropped traffic is visible in Monitor - Logs - Traffic during troubleshooting.

πŸ“ž Contact us today to join our Palo Alto Firewall Training Program and boost your knowledge and your career.