Thursday, 27 November 2025

disable palo gp web page

 https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClbpCAC


 In the WebGUI, go to Network > GlobalProtect > Portals > GlobalProtect Portal > Portal Configuration.

2. On the Portal Configuration tab > Appearance > Select 'Disable login page'.

After this configuration is committed, the Global Protect portal page will instead return a '404 page not found' error message


Hide the login page:

https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u0000004NEoCAM

Tuesday, 25 November 2025

new user ID agent passive identity agent (PIA) for cisco firepower FMC

 https://www.cisco.com/c/en/us/td/docs/security/secure-firewall/management-center/device-config/760/management-center-device-config-76/m_user-control-with-the-passive-identity-agent.html#deploy-the-passive-identity-agent

Monday, 3 November 2025

getting started palo alto

Classic firewalls were L3/4

L3 - ip addresses
L4 - TCP/UDP

Stateful firewall: if its allowed out the reply traffic is allowed.

Next gen features
User based rules
URL filtering (previously done by proxy server)
Firewall learns about new Viruses / malware and blocks them
Deep pack inspection, looking at the application later
Facebook is ok but block facebook messanger
SSL decryption


Getting management access
Seems they take a while to fully boot up after showing you the login: prompt, wait a while before trying default username/password

Two options CLI and Web access
Physical boxes will have a console port and a MGMT port
Default IP is 192.168.1.1
Default username/password: admin/admin
Change your IP, gateway, DNS

Console over writing itself
Had an issue couldn't read output from CLI, these commands fixed it
set cli terminal height 500
set cli terminal width 500


CLI initial config of management port
  • Set the default gateway to the core switch
  • Plug mgmt port into switch port on same VLAN as inside
  • Must have SVI setup on switch
  • For example give inside interface 10.0.1.1 and mgmt 10.0.1.2
configure
set deviceconfig system type static
set deviceconfig system ip-address 10.0.1.254 netmask 255.255.255.0
set deviceconfig system default-gateway 10.0.1.2
set deviceconfig system dns-setting servers primary 8.8.8.8
commit
exit

Commiting config
You must type the commit command to apply the config.
Current config is what is running
Candidate config is what has been changed but has not been commited yet.

ping host www.google.ie

Web interface 
https://10.0.1.254
Device -> Setup -> Interfaces
Might need to enable ping

Change DNS (DNS in important for the palo to function correctly)
Device -> Setup -> Services

Service route configuration

NTP settings
Device > setup
also not sync'd so conifg on both palo1 and palo2
set the timezone as well.

Upgrading the software
Device -> Software
Check now
You need to upgrade through each major version 7.0 -> 7.1.x -> 8.1.0
Once in 8.1.0 you can go straight to 8.1.5 for example

Tap interfaces (monitor mode)
Setup span ports on the switch and connect to the firewall tap interface
Network -> Interfaces -> Ethernet
ethernet1/1 select interface type as "tap"

Virtual wire interfaces
Bump in the wire
Checks the traffic against security policies
passes the traffic through without needed to create IP on each interface
Select the interface type "Virtual Wire"
Network -> Virtual wires
Add
vWire1
Select the interfaces you want to be part of it
commit

Layer 2 interfaces
You can configure interfaces as L2 interfaces and configure security zones. This is to avoid re-addressing the network. Again set the interface type of Layer2.

Layer3 interfaces
Each interface has an IP address
Network -> Ethernet -> Ethernet1/1
Interface type = Layer3
Assign IP
Assign to security zone
Commit

Zone concepts and policies
Create sec zones like outside, dmz, wifi, inside
Assign interfaces to zones
Lets say we setup eth1/3 as inside zone
We setup several policies
Now we can assign eth1/4 as inside zone and our policies still apply
We don't have to write the same rules for each zone.

Virtual router concepts
There is a default virtual router. This is what we will use in most cases. Its possible to create multiple virtual rotuers.

Config zones, VR and L3 interfaces
Network -> Zones
Add
Inside

Network -> Virtual router
Add
VR1

Network -> Interfaces
ethernet1/1
Interface type = Layer3
Virtual router = VR1
Security zone = Inside

Configure a default route
Data plane (to ISP gateway)
Control plane (MGMT, for NTP, updates, SSH etc)

CLI to see the route table
show routing route

Web interface to see routing table
Network -> Virtual Routers
On your VR click "More Runtime Stats"

CLI to ping from another source
ping source x.x.x.x host 8.8.8.8

Network -> Virtual routers
edit
static routes
add

Configure NAT/PAT

Policies -> NAT
add (in bottom left)
Name it Inside_to_Outsie
source zone = inside
destination zone = outside
You can select IP's etc

Translated packets
Dynamic IP and Port (PAT / global NAT)
Interface Address = the public IP
Interface ethernet1/1
Select  IP
Leave destination as none
Commit

We still need a security policy to allow the traffic

Security policy (ACLs)
There are two default rules

Logging is not turned on by default

Add sec rule
type = intrazone rule

Troubleshooting / verification 
On Policies -> Security
Look at your ACL, can see the hit count, last hit, first hit.
You can clear counters in the bottom right
"Reset Rules Hit Counter"

We can see hit counts for the nat policies

Monitor -> Traffic
Most recent is at the top
You can click on the magnify glass on each entry for more info

Tags
You can setup tags to add a color
eg
outside = red
inside = green
dmz's = yellow

Objects -> Tags
Click add in bottom left
Drop down and select your zone
Select the color
commit



Zone protection
Create zone protection profile
Then apply it to a zone
Network -> Network profiles -> Zone protection
Give a name
Enable flood protection etc
Network -> Zone
Edit the zone, select the zone protection profile
Enable packet buffer protection

Check the documentation some of the features have a performance impact.

Interface management
By default ping is not allowed
Network -> Interface Mgmt
Add
HTTP_and_ping
tick: HTTPS and ping
Click add to add source IP addresses

Network -> Interfaces ->
Edit ethernet1/1
Advanced tab -> Select management profile from dropdown box
Yes
commit

DHCP
Network -> DHCP
Add
select the interface
enabled = on
disaled = off
auto = check if there is already a DHCP server

Tick pick IP when allocating (helps avoid conflicts)
Fill in details gw, dns etc
Can configure DHCP options there

DHCP relay (helper)
Click on the DHCP relay tab
select the interface
tick the box
fill in he IP address of the real DHCP server.

Config management
Create a new tag as a test

3 ways to revert this change
reboot firewall (config not saved)
config -> revert changes
Devices -> Operations -> revert to running config

Making changes but not finished but want to come back
Don't want to commit but want to return to finish these changes and commit later.
Config -> Save Changes

Devices -> Operations -> save named config snapshot

Each time we commit the palo saves a version of the config
Device -> Setup -> Load a config version
Drop now we can see previous versions of config


Wednesday, 24 September 2025

cisco umbrella SIG webinar notes

Redirection methods

both methods will enforce SWG (web protection) but the IPSec tunnels will also provide Cloud Delivered Firewall (this is not available with roaming clients), we always recommend the clients since they will protect your users when they are working from the office or just travelling or working from a cafeteria.

But both options are advantageous for different reasons, you could also configure the clients to backoff when they are at the office, and use the IPSec tunnel to have access to the Cloud Delivered Firewall

IPsec IKEv2 VPN from your firewall > umbrella cloud

secure client with SWG module goes via https > umbrella cloud

Which is recommended, any features lost/gained vpn vs secure lcient


clients > redirection method > umbrella client > CD FW (l7 and ips) 

http/https > SWG 

non web not blockecd >


DNS > CDFW > SWG > DLP or RBI 

DLP scans data for violations

RBI render in cloud browser


PAC files to send users traffic to the SWG


CDFW only available with IPsec tunnel 

secure client is using SWG

still need to keep VA's 


On policy flow:

The order of operations will depend on what deployment method you are using, for example, if you have a setup of VAs, IPSec tunnel, the order of operations will be: DNS policy enforcement (redirected by VAs to resolvers), CDFW (because you of the IPSec tunnel, and finally SWG

if you use roaming clients only, everything stays the same, with the exception of CDFW, since this is only available via the IPSec tunnel

It is also recommended to have policies on all these layers (in the case that IPSec tunnels are set), this is because protection will happen at different stages, meaning, the CDFW will protect layer 4-7, DNS protection will protect you at the domain resolution level, and the SWG will protect URL level access

Hello Jack, The policies work as order of operations based on your question will hit DNS first, Firewall,Web and then DLP. So if you have policy in place for DNS it will only hit that policy first and for SWG it will hit Web policies. https://docs.umbrella.com/umbrella-sig-gov/docs/best-practices-for-dns-policies. https://docs.umbrella.com/umbrella-sig-gov/docs/best-practices-for-web-policy


We match Web policies from top to button, but we also check identity and destination... that means an user can match multiple rules. Also, we have an implicit allow all at the end.


umbrella support page


Secure client vs PAC.

Hi Jack, if the umbrella module is deployed to endpoints, it is not necessary to deploy the pac file, however, the client is not supported in windows servers, if you wish to protect servers, the pac file is the easiest way to protect servers

Tuesday, 2 September 2025

Doing MD5 checksum check on cisco FMC install file

 A client AV detected as malware so I wanted to confirm the hash 

certutil is built in so I used that but there are some free GUI tools

certutil -hashfile Cisco_Secure_FW_Mgmt_Center_Upgrade-7.2.9-44.sh.REL.tar MD5 | find /v "hash"

Compare the result to the MD5 hash on cisco.com downloads section. If you hover the version the MD5 and SHA1 hashes will be there to copy.

Wednesday, 6 August 2025

nessus advanced

Terrascan 

Need to tick a box to download it. 

Scans code for infrastructure as code (IAC)

Used to scan an GIT repo URL for example.

  • Log level: set the verbosity 
  • IAC type: select arm cft, docker, k8s etc
  • Remote type: git, s3, gcs, http, terraform-registry
Not we need git installed on nessus server to select the git type

Reviewing results is much like a regular Nessus scan.
Click on the control to get more detail on why the control failed etc.
For example SSH port 22 is open to the internet.

It will give your the file / line number where it found the issue so the code can be reviewed

Attack surface discovery

This is the initial scan to see what is visible 
My scans > new scan
select attack surface discovery template 
supply comma separated list of top level domains
domain.com,other.com
save and launch 

The scan will provide results

On the records tab we will see the IP's / hostnames names that were found. We will see the record types:
  • A and AAAA
  • MX
  • NS
  • PRT
  • CNAME
  • SOA etc 
Now we can select what was discovered
  • Click more > create scan
  • Select a basic or advanced network scan
  • The targets field automatically populates
  • Now we can run the normal Nessus scan on the targets we discovered

Web application scanning

Traditional Nessus scans are done on IP's. Web app scans will scan web applications looking deeper into the web app. It can run with creds or no creds. It can look for the unknown. It will send info the web forms. There are known and unknown vulns. 

Traditional Nessus scan is looking for the known. WAS is investigating on web apps. I will send many special request were page it finds.

  • Traditional will suggest patches/software upgrades to fix the problem .
  • WAS will show you leaks but further investigation will be needed from there. You will need to work with the customer/developer 
WAS scanning sequence 
  • Identify web server
  • Known web app (wordpress, joomla etc)
  • Vulnerabilities on the known web apps
  • Spider through website to understand the layout
  • identify forms (CGI etc)
  • Pass parameters at forms
  • Identify vulnerabilities in the web app forms etc
Credentialed WAS (going beyond the public areas of the web app/site)
  • Connect to website 
  • Connect to login form
  • Login 
  • Preform tests
  • Looking for SQL injection / XSS / Session mgmt
  • Like a traditional scan we get more info from a credentialed scan
  • WAS could have bad affects
  • Run on test/staging site (avoid live environment)
  • Scans can ddos/overload web servers/apps (rate limit the scan, run OOH)
  • Run with read only user
How to mitigate issues
  • Backup before starting scan
  • Scan a mirror of the site (test site etc)
  • Maintenance window for scan
  • Light scan first followed by scan tuning 
WAS workflow
  • Get website sub domains
  • run config scan
  • run overview scan (get creds)
  • develop scan policy 
  • follow up scans (code can change over time)
  • Keep WAS up to date
Sitemap.csv
This contains a list of URL discovered / HTTP methods supported etc

How to enable WAS in nessus
  • You need to have docker installed on your nessus server
  • Tick enable WAS
  • It will download the image
WAS Scan types

What kind of scan are we doing ?
  • Risk assessment 
  • Compliance requirements (credit card data requires PCIDSS, others may require CIS etc)
  • Data sensitivity 
  • Technology stack
  • Specific vulnerabilities 
Web app config audit scan
  • Checks HTTP headers available
  • XSS checks
  • HTTPS enforced ?
  • quick to run, good first step
SSL_TLS web app scan 

  • Look for proper implementation of SSL/TLS on your web server
  • Measured against industry standards
  • Runs quickly too, good for regular checks
Web app overview scan
  • Discovery scan
  • Spider and inventory all web pages / files / folders / sub domains
  • Results stored in sitemap.csv
  • The bigger the site, the longer the scan takes

Quick scan
  • Similar to config audit scan
  • Checks common security standards
  • Checks HTTP/SSL/TLS/DNS configs

Comprehensive  scan
  • Includes config audit, overview and SSL/TLS scans
  • Takes a long time depending on site size
  • Plugin family options for all web app plugins
  • The most detailed scan

Scans for special cases

PCI DSS - For payment card industry
API - checks APIs for RESTful API's (checking API's is key to web app testing)
OpenAPI (previously called Swagger)
Log4Shell - For the log4shell issue. Needs local creds for local checks.


Overview scan
  • New scan > web app tab
  • choose "overview"
  • provide URL
  • scan name
  • target URL

Config scan
  • New scn > web app tab
  • choose "Web app config audit"
  • scan name
  • target URL
SSL scan
  • New scn > web app tab
  • choose "SSL_TLS"
  • scan name
  • target URL
Filter results for SSL

Non credentialed web app scan
  • New scn > web app tab
  • choose "scan" scan
  • scan name
  • target URL

credentialed web app scan

  • Credentialed scans are important as it looks deeper looks at all the user pages /forms etc
  • Identify
  • can break sites so best to run on a copy of the live site
  • Basic/NTLM auth (type username and password). NTLM stronger than basic.
  • Nessus supports cookie based auth
    • Use web browser to login
    • Copy cookie
    • Name+Contecnt
    • chrome://settings/siteData
    • Check limitations (https, NoScript, expiration etc)
  • Form based auth (manual and selenium scripting)
    • login url and form paramaters
    • you can use selenium script
    • plugin 98033 detects a form
    • You will give details there
    • login page
    • creds (username and password), field name; field value
    • pattern for success (regex)
    • Page to veryify active
    • pattern to verify active (regex)
    • All patterns are regex
    • Selenium is used for scripting browser automation
    • Selenium IDE browsers extension (record, edit and play back)

Selenium scripting

  • Chrome extension makes it easier
  • create a new test project (givename)
  • enter Url and click start recording 
  • login and do you actions
  • open tool again and stop recording in top right
  • give the script a name
  • save it for use later

Using the script in a credentialed scan

  • New scan > web app tab
  • choose "scan"
  • enter scan name
  • enter URL
  • credentials tab
  • select web authentication
  • Select authentication method: Selenium Authentication 
  • You can upload your script file here
  • Enter the page to verify auth worked
  • Enter pattern to verify active session: Sign off (text or regex) text method is case in-sensitive
  • save scan and launch
  • On our results 
  • filter for selenium in the info we should see it succeeded
  • Give screenshots and other details of login.
  • This page is good if auth fails to figure out what is wrong


credentialed scan without a script (policy config)

  • New scan > web app tab
  • Choose "Scan"
  • Give the scan a name
  • Enter the URL
  • Click credentials and click 
  • Choose authentication method "login form"
  • Login page url: (the page where the username and password is entered)
  • You can give login paramaters in a .json file
  • simple example {'uid'.'admin','passw'.admin'}
  • Pattern to verify successful auth "Sign off"
  • url for active session
  • Pattern to verify active session "Sign off"
  • Save and run scan
  • check vulnerbilites
  • filter for authenticaiton
  • The info "Login form authenticaiton succeeded"
  • You will see details here
  • Filter for failed to see details of the login failed

Thursday, 31 July 2025

swap mem 100% used on palo 400 series 450, 455

https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000sYzBCAU&lang=en_US%E2%80%A9


Palo on gave 400 series 1mb swap which is full when the device is on.

Swap (and other memory) can be cached/buffered for the kernel. Its not really used but ready to be used, it can be reclaimed by the system when needed.

Monitor physical memory instead (available memory is what you want to look at)


show system resources


Thursday, 17 July 2025

hardening anyconnect ssl on cisco secure firewall 7.7

Hardening anyconnect connections.

https://www.cisco.com/c/en/us/support/docs/security/secure-client/221880-implement-hardening-measures-for-secure.html


Service access object (geo block anyconnect):

https://www.cisco.com/c/en/us/support/docs/security/secure-firewall-threat-defense/222810-configure-geolocation-based-policies-for.html


Auto shun (flex config)

https://www.cisco.com/c/en/us/support/docs/security/secure-firewall-threat-defense/222383-configure-threat-detection-for-remote-ac.html#toc-hId--1375473333

  • show shun [ip_address]

Shows shunned hosts, including those shunned automatically by threat detection for VPN services, or manually using the shun command. You can optionally limit the view to a specified IP address.

  • no shun ip_address [interface if_name]

Removes a shun applied to the specified IP address.

If an IP address is shunned on multiple interfaces and no specific interface is mentioned, the command removes the shun from only one interface. The selection of this interface is based on a route lookup for the shunned IP address. To remove the shun from additional interfaces, you must explicitly specify the interface.

  • clear shun
Removes the shun from all IP addresses and all interfaces.

Keepout (disable web interface) - users won't be able to download client from the firewall. It will need to be deployed by OSD tool.

https://youtu.be/mNmI34oWOys?si=-Jk_nWzVtnNAOn7u


Threat detection service remote-access-authenticaiton hold-down 15 threshold 5


hold down - how long after the last failed attempt when new failures are counted 

threshold - number of failed auths, if we fail login with in 10 times inside 2 minuets


**** Flex config objects

*** Threat detect ON

threat-detection service invalid-vpn-access

threat-detection service remote-access-client-initiations hold-down 10 threshold 20

threat-detection service remote-access-authentication hold-down 10 threshold 20


*** Threat detect OFF

no threat-detection service remote-access-client-initiations

no threat-detection service remote-access-authentication

no threat-detection service invalid-vpn-access


*** Without CSD

tunnel-group DefaultWEBVPNGroup webvpn-attributes

without-csd


*** With CSD

tunnel-group DefaultWEBVPNGroup webvpn-attributes

without-csd


*** Disable anyconnect webpage

webvpn

keepout "503 Service Unavailable"


*** Enable anyconnect webpage

webvpn

no keepout "503 Service Unavailable"


Show commands:

show threat-detection service remote-access-authentication

show threat-detection service remote-access-client-initiations

show threat-detection service invalid-vpn-access


Logs locations in FMC:

Some of them change depending on version of interface 

Cog (top right) > monitoring > syslog

Monitoring → VPN → Remote Access (anyconnect)

Analysis → Connections → Events (won't show auth success/failure here)

Health → Events (shows cpu/memory issues)

There is a unified log as well


Log level

FMC GUI → Devices → Platform Settings

syslog > logging


Syslog messages:

%ASA-6-113004: AAA user authenticated successfully

%ASA-6-113005: AAA user authentication Rejected

%ASA-4-722051: Group <group> User <user> IP <ip> Session connected

%ASA-6-722041: Session disconnected (reason...)



***

Enable Access Control Logging for VPN User Traffic

On the rule that allows anyconnect in (log at start/log at end/ send to FMC) (still won't show login attempts)



search messsage *x.x.x.x*



Ok so lessons learned there:

You won't see anything in analysis > connections > events (doesn't show ssl rejected stuff, only successful https etc connections)

SAML (staff profile) rejection was not showing in the logs. I will ask cisco about this maybe it's a different event ID or Duo doesn't send anytning back to the firewall when SAML fails. He could see it in Duo logs so was happy enough there.

AAA/radius (contractors profile) was where we saw the issues coming in.

We needed to enable informational level logging under devices > platform settings. (we hit a bug there it didn't set first time not sure what happened, I watched him set it so watch out for that)

Once we had informational we could see some stuff under the cog > monitor > syslog.

Filter "message" for *x.x.x.x* where x.x.x.x is the IP you are looking for

We saw ssl denied for the German IP based on geoblock

We saw username ***** denied from my UK IP

The username was hidden in the logs

Added flex config "no loggin hide username" cisco said you have to leave off the "g" loggin is not a typo

Shun settings were 20 failed logins in 10 mins, he said he had to set it high because users were actually typing password wrong 10 times so that is something he will have to live with. Attackers can still try from the approved IPs for 20 tries then get shun'd but at this stage they can change IP address and try again


*** SAML

SAML failed logins won't show in the FMC log in the same way. Best to review these in the SAML provider dashboard/logs (Duo/Azure etc). These logs can be forwarded from there to a central SIEM. Duo have a tool called duo log sync.

filter to include class “vpnc”, which outputs logs like:

%FTD-6-611102: User authentication failed: IP = IP address, Uname: user


Tuesday, 1 July 2025

Palo alto PCNSA notes

Palo alto next generation firewall

Palo alto is a next gen firewall with user-id and app-id. Dynamic lists/feeds (EDL) for blocking malicious traffic and allowing trusted traffic like azure and CDNs etc.

It can do its inspections on north/south traffic and east/west traffic. Even on L2/virtual wire connections.

It has IPS, URL, wildfire (unknown threats).

DNS sinkhole (DNS protection)

Advanced logging with cortex data lake (take in multiple log sources and apply machine learning)

Platforms

  • Virtual machines for public and private cloud (you control the VM)
  • Prisma access (hosted cloud based firewall as a service)
  • Physical devices (physical boxes to install on site)

https://www.paloaltonetworks.com/network-security/hardware-firewall-innovations

SP3

Single pass simultaneous:

  • traffic inspection
  • classification
  • enforcement 

all in one pass

Control plane (mgmt)

  • config 
  • logging 
  • reporting 

Data plane (traffic)

  • Signature matching 
  • security and network processing 
If network gets hammered our control plane is still good and we can access our web interfaces to investigate and resolve the issue

Management options
  • Web interface HTTPS over the network or MGMT port
  • CLI via SSH over the network or via console cable
  • Panorama - centralized platform for managing multiple firewalls. Good for MSP. 6+ devices.
  • API - XML REST based API. Good for automation and network programming
The management GUI on box help
There is an onbox documentation, usually in the top right

ACC - Application Command Centre
Analytical tool to provide actionable intelligence about network activity. Shows trends etc.

Monitor tab
  • Live logs
  • Reports

Policies 
  • Firewall / NAT rules etc

Objects
  • Setup objects for use in policies

Network
  • data plane interfaces and zones
  • VPN related items
Device
  • General settings
  • Management interface
  • User accounts
  • Licenses
  • Config backup
Management port is part of the control plane
Default 192.168.1.1/24
HTTPS
default user: admin/admin
We can disable it if needed and use network interface
By default dataplane ports won't accept mgmt packets

Service routes
For all items we need to reach out of the firewall for eg radius / log forwarding etc. 
By default it will use the mgmt port
Device > Setup > Services > Service Router Configuration > Customize 
Lots of these settings are not sync'd like NTP so have to config on both palo1 and palo2
Don't forget to set timezone 

CLI modes
  • Operational - basic network commands: ping traceroute, show, debug
  • Configuration - configure command, now you can make changes
  • Similar to cisco in that regard
CLI enhancements
  • User find to figure out the command syntax
  • use ? to get help
  • User tab to autocomplete
  • Use | pipe with "match" or "except" for output filtering
ping "tab"
We will sett options with symbols
+ count - plus means it needs a value
* host - * means its required
> - means you will have more options after

ping host 1.1.1.1

tail - useful for log messages

set is how we do some config 
show is how we show the config

Find all the commands related to the network
find command keyword network

W can see ethernet is under interface under network. To change ethernet1/1 from cli we need to use:
set network interface ethernet1/1

CLI is good for checking and debugging but most config will be done via CLI now

Firewall maintenance

Config files

Running config (running-config.xml)
sits in the dataplane and this one controls the firewall behaviour
When the firewall reboots this config is loaded when it boots up 


Candidate configuration (snapshot.xml)
Separate file/space in memory to store temporary configuration in the control plane
Its config we have configured but have not deployed yet. 
When we do a commit its merged into running config.
Saving the candidate config doesn't commit the changes

Candidate config is the running config + the new changes
Commit command merges the changes from candidate config into running config
New updated running config has the new changes

We can revert to last saved conf
Replaces current candidate config with a saved candidate config file

We can revert to running config (probably will use this one most)
Get rid of un-commited changes

Load 
over writes with a file saved earlier (usually from a backup, used when restoring) 

Save
Can save a named config snapshot.

Export
Export a named config (backup)

Dynamic updates
  • Make sure these are enabled and auto downloading / installing 
  • Antivirtus / Wildfire 
  • Apps and threats 
  • Global protect HIP
  • PAN-DB URL filtering (may use umbrella instead)

Palo alto policy types
  • Security (firewall rules etc)
  • NAT (global NAT, NoNats, public NATs etc)
  • QoS (voice QoS)
  • Policy based forward (PBR)
  • Decryption (SSL)
  • Authentication ( radius / SAML etc)
  • DoS protection 
  • Tunnel Inspection
  • SD-WAN
Palo alto works like ASA
works from top to bottom
when rule is match traffic is dispatched 
it doesn't check any futther rules

Security policies
  • The primary traffic control tool
  • Block rules at top like block lists, implicit deny at the bottom.
  • Add the most specific rules at the top

IntERzone vs IntRAzone
  • IntERzone (lan to dmz)
  • IntRAzone (same zone)
  • Universal (interzone + intrazone combined)
Application/Service 
  • select (pick which ports)
  • any (allow HTTP on any port for example)
  • application-default (web-browsing only allowed on default ports 80/443 but not 8881)
Generally we don't want to allow apps on lots of ports but some custom applications run HTTP etc on non standard ports.
  • applicaiton-default - use this where we can as first preference
  • select - in edge cases we can config the specific ports. Second choice.
  • any - only for testing or we can't get it working any other way. Last resort.

Default rules can be changed by using the override button.

Policy objects / groups
Its efficient to group items into groups so later the groups can be updated but your firewall rules can remain unchanged.

Security profiles
ping command source from inside to host
ping source 192.168.10.100 host 192.168.10.50

however if the clients try to ping the firewall it will fail by default. We would need to create a management profile, allow ping and apply it to that interface.

ACLs can be found under
Policies > Security 

We can see applications ping and icmp
icmp is for the full protocol (except for ping)
ping is the ping app which is under icmp protocol

How to block web comms to a specific IP

NAT

  • Allows network devices to change source/destination of packets.
  • Main function for IPv4 depletion but has other uses.
  • In most orgs its used to hide all clients behind a single IP for internet access (NAT overload)
  • The other main use is to give servers a static public IP
  • NoNAT's are used for S2S VPNs

SNAT - source NAT
DNAT - destination
Some devices allow changing source and destination at the same time

Static NAT is to map one IP to one IP
Dynamic is IP that gets mapped can come from pool of IP's. Dynamic includes port translations

On palo alto we have a NAT policy
  • A NAT rule has 3 main sections:
    • General
    • Original packet
    • Translated packet
NAT type: IPv6 / IPv6

Original packet is how we select the original packet
Translated packet is what we want to change it to

Rules can refer to address objects instead of IPs
It's recommended to use objects in case the IP is updated later.

  • NAT Rule processing is top down
  • Applies regardless of NAT type
  • Most specific rules at top
  • More general NAT's at the bottom
  • No NAT rule can go at the top (exemptions)
IP addresses should always refer to the original IP's, pre-NAT
Use the original IP in the firewall rules as well.

Remember NAT does the translation but it doesn't allow or deny anything. That is the job of the security policy.

test routing fib-lookup virtual-router default ip 192.168.57.31
Will give you the interface it will go out.

show routeing route 
Shows all routes

Working with NAT
Policies > NAT
In some cases we might need to adjust routes

For example when you need to NAT to an external IP block 
In the case there is one public IP range configured on the outside of the firewall
A second block/pool has been added on later. In this case the firewall doesn't know about it.

Like an extra IP block
You may need to adjust routing so traffic knows how to get back to the firewall.

Verify and TS
Device > troubleshooting > NAT policy match
Rule usage, check hit  counts / last hit / fist hit

CLI
  • show session all
  • show running ippool
  • show system state | match nat

Goal is to enable dynamic NAT with a pool for any inside network
This will be source NAT (SNAT)
As the traffic leaves we will change the source to something else

First create your object with your public IP pool.
Name: DPOOL
IP netmask: 192.0.2.0/24

Policies > NAT
Add rule
Give a name
SRC: IN
DST: OUT
Go to translated packet
Change source to dynamic IP
select: DPOOL

NAT policy doesn't automatically allow the traffic. You will need a security policy rule as well.
You may need to have a route setup to route back.

Goal expose a DMZ device to the internet 
This will be destination translation from outside to outside
Palo NAT works on addresses and zones from the original packet, that is why we do outside > outside and not outside > dmz.

NAME: STATIC
SEC: OUT
DEST: OUT
DEST ADDR: 102.0.2.230

Translated packet
Source translation: none
Destination translation type: static IP
Translated address: 192.168.57.31

We don't need bi directional here because the firewall will allow the return traffic.

Again you will need security policy to allow the traffic
In the security policy it applies after translation. So we will need OUTSIDE > DMZ, even though the address belongs to outside.  

NAT policy: original packet (outside to outside)
Security policy: after translation (outside to DMZ)

Logging and monitoring

logs are timestamped events, often including useful information src/dst IP etc. 

Important log types but there are more
  • Traffic - src/dst IP, ports, app, nat
  • Threat - details on detected threats
  • Config/Audit - what changes admin made
  • System - the PAN os system
  • User-ID - details about user ID
  • Global protect - the dial in VPN logs
Log settings
  • Session start - log at the first packet (useful for UDP and sessions that never fully setup/close)
  • Session end - log when the tcp connection has closed
  • Log forwarding - send logs to external syslog server/SIEM etc. The firewall can only store so much.
  • Logs can be filtered
  • Log profile defines the external log server
  • Log forwarding is where we define what logs we will send
Enhanced logging
We can collect additional data for cortex XDR. You need data lake subscription 

Config
Device > server profiles > syslog
Add profile
SYSLOG-PROF
fill in IP of syslog server 192.168.100.50

Device > Setup > Services
Make sure you use the right interface for syslog, often picking inside/lan interface

Objects > Log Forwarding
LOG-FWD
pick traffic and select SYSLOG-PROF

Log settings 
under config logs do the same

In our rules set the logging settings as needed (session start vs session end)

If we need to override the default rule, log at session end
Set log forwarding

Policies

App-ID
We need app ID for modern threats
Different protocols can be listening on different ports 443/80/22

When the palo see's a connection on port 80 for example it will check that its TCP and that its HTTP protocol. Now it knows its actually HTTP traffic running on its standard port so can be allowed/blocked.

If the connection shows TCP but SSH protocol then the connection could be blocked as it won't match the application rule.

Similarly if we see TCP and HTTP protocol but the port is 8080 the palo will also block if its set to look for application default ports. This can be changed in the firewall rule settings

Advanced policies

QoS - a set of tech that we can enable to control traffic bandwidth/latency/jitter etc.
Palo can do classification on packets based on the user and app
Bandwidth mgmt - limit/guarantee bandwidth for certain apps/flows
Priority queuing - voice traffic gets processed first

example classification
  • voice/teams
  • business critical apps
  • everything else
Default profile is just for prioritization

Policies > QoS
Class 4 is the default
We can use DSCP and/or ToS marking that may have been done by other netwok devices and honor them or change them as you need

Use post NAT address in QoS (like in security access policy)
QoS is processed top down and exits on rule match

QoS is outbound/Egress feature. Affects outbound interface only 

To limit downloads from the internet, apply QoS in inside interface (egress to inside/LAN)
To limit uploads , apply QoS to outside interface (egress to internet)

Turn QoS on the interface
Physical vs clear text vs tunnelled interface 

Egress max is the max speed of the interface.
If a class has egress max 0, the value of egrees max will be used

When we guarantee bandwidth its only kicking in, in the event of congestion
Classes with no guarentee'd bandwidth will show a guarantee of 0.001 mbps

Steps
Create QoS policy
Create QoS profiles
Don't forget to commit
After applying check the statistics 

Decryption

Decryptions allows the firewall to look inside encrypted connections like HTTPS connections
We may detect malware coming across the encrypted flow and we can block
If we don't decrypt we are not able to detect it in transit and would hope the endpoint AV will catch it

Some traffic can't / shouldn't be decrypted

SSL/TLS decryption (man in the middle)

SSL forward proxy (outbound traffic)
Certs needed:
  • Forward trust 
  • Forward untrust
Client < > (SSL decrypt) FW (SSL decrypt) < > internet > Server
  • When client starts a connection, the firewall intercepts the connection setup
  • The firewall impersonates the server. 
  • The firewall does the same to the server, impersonates the client
  • The client thinks its talking to the server but its talking to the firewall
  • The server thinks its talking to the client but its talking to the firewall
  • The firewall joins both ends but is able to look inside the connection

SSL Inbound inspection
Applies to inbound traffic, usually to your public servers
Internet > HTTPS > FW > DMZ > Web server
In this method we install the certs from our servers on the firewall.

SSH decryption
We don't need certs
Useful to find people using SSH port forwarding x11 or TCP connections

Decryption mirror
We can copy decrypted traffic to a destination on an interface. The traffic gets sent 1 way out to be logg or inspected by another system

Decryption broke
Firewall still decrypts but only sends the allowed traffic to other devices for additional inspection
FW > C-TXT > SC1 > SC2 > remaining allowed traffic goes back to the firewall 

Decryption exclusions
Some apps can't be decrypted. Some compliance / regulation means we can't decrypt banking and health data as its private.

Decryption certs
  • Forward trust cert - needs to be trusted by enpoints
  • Forward untrust cert - should not be trusted because we want to represent untrusted destinations
  • SSL inbound certs will - install the certs/private key from your pubic servers on the firewall
Decryption profile
We can set extra options on how to handle sites that have expired or old ciphers etc

Define sites to decrypt by zone, user, but you will probably use URL category the most
In new infra make a NoDecrypt URL category and choose to decrypt everything else.
For existing infra you will want to move gradually, start with some non critical sites or test users

Device > certificate management > SSL decryption exclusion

Disable decryption temporarily via CLI
  • set system setting ssl-decrypt skip-ssl-decrypt yes
The command applies immediately, does not need commit. You can test your site/rule ssldecrypt in/out of your issue
Turn it back on
set system setting ssl-decrypt skip-ssl-decrypt no

Checking logs in the GUI:
  • Monitor > logs > traffic

Checking logs on the CLI:
  • show session all filter ssl-decrypt yes
  • show counter global | match proxy
If the session is decrypted we should see a * in the flag field. If its blank we did not do decryption
ACTIVE FLOW * 192.168.100.50

SSH decryption

Create a decryption policy with the action set to SSH proxy

To see if SSH is tunneling traffic we need to decrypt
Normal SSH traffic is SSH, SCP, SFTP
In you security rule allow the the app ssh but block ssh-tunnel

Example rule order
  • NoDecrypt / exclusion list
  • HTTPS decrypt
  • SSH decrypt
Tunnel inspection 

Looking at content of cleartext pass through tunnels
  • GRE (generic Routing Encapsulation)
  • IPsec (ESP with null encryption, AH transport mode)
  • VXLAN (virtual extensible local area network)
  • GPRS (general packet radio servic)
Why inspect tunnels ?
For example if we allow a GRE tunnel
We allow GRE from tunnel source to tunnel destination
However everything inside the tunnel is allowed (which we might not want)
If we inspect the tunnel and look at the original IP header and payload and inspect it
Then we can allow/block what we want or enforce QoS

Processing logic
  • Tunnel must be allowed
  • tunnel inspection rules are evaluated from top down
  • packets that match a rule are subject to extra validation (eg RFC checks, unknown protocols)
  • Encapsulated traffic becomes subject to security policy evaluation  
We can also create tunnel zones
inside zone > tunnel zone
This will make it easier to control the tunnelled traffic
For example TIN and TOUT

Logs
  • GUI: Monitor > Logs > Tunnel Inspection, ACC > Tunnel activity 
  • CLI: show session id

Application override

Simplified app id mechanism which overrides App-ID
You might have a custom app that palo alto doesn't know about so there is no App-ID
L7 inspections are abandoned, just l4
Generally not recommended to use it, we should use App-ID or make customer app-id signature.
When used we should try to limit to the client/server that uses.

Why use it
Improved visibility and reporting
The draw back is we will lose L7 inspections
Our app runs on TCP 57188 but we don't want it detected as unknown TCP

show session all filter application

Policy Based Forward (PBF)
Normal routing forwards packets based on the destination
PAN-OS uses virtual routers
PBF allows us to override those default decision by routing
PBF only works with services (port number) don't use apps because PBF happens before L7 stuff. 
PBF can use
  • source ip
  • destination ip
  • ports
  • zones
  • etc
Why use it ?
Dual link/ISPs
  • We may want to send our WIFI traffic out our secondary connection, to take pressure off the primary but also a good indicator that the secondary connection is up and working as users will alert us.
  • Security
  • Load distribution and testing
  • Traffic segregation
  • PBF can be combined with path monitoring for failure detection
  • If ISP link goes down, we can fail back to the default path 



CLI show commands:
  • show routing route
  • show routing fib
  • test routing fib-lookup ip 192.168.1.10 virtual-router default
  • show pbf
  • show session id
  • test pbf-test-policy-match

Policy optimizer
A tool that to help control and optimize the security rule set
used for rule migration (ports > apps)
find rules that are never matched and duplicates

Device > setup > Management > Policy rule base settings > policy application usage

In general clone the rule
change the services (ports to apps)
You can move the app rule above the port rule and make sure its matched or just disable the old rule and test. After some period of testing you can delete the disabled rules.


App-ID
Objects > Applications
Palo has built in App-ID's in its database
You can customize some info, but some info is fixed
You can also make a custom app-id for bespoke apps

App properties
Category, subcategory
Risk 
Technology
Tag (add your own tag)
Characters 

Working with applications 
App rules > port based rules (because anything can be tunnelled over port 80/443, we need to look deeper)
We should make app rules on top
port rules below

Review the hitcounts and detected applications, work towards removing the port based rules.
If we do have to use a port based rule we can lock it to source/destination 

Applicaiton-default
reduces administrative overhead
port-mappings

We can look in objects > applications >facebook and see what ports it uses by default.
We can also look on https://applipedia.paloaltonetworks.com/

Application dependencies
Many applications will rely on another application
Implicit dependencies - will be enabled automatically 
Explicit dependencies - requites to be added manually

eg
Facebook requires "http" and "ssl"

Check objects > applications
Check an app
Check the "implicitly uses"   (implicit)
Check the "depends on"         (explicit)

When adding an app to the rule we should see a list of depends on applications. You can quickly add these to the existing rule.

We can make application groups
objects > application groups 
eg 
make a app group call social media, then add facebook, instragram, twitter 
Now we just need to allow our users access to this group 

Similar to applications group is application filter
We say what characteristics/properties make an app part of the filter
eg business-filter
go to category and select business relevance and risk level 1 (most secure)
This may allow apps in the future that you don't intend but also can save you time.

Custom applications
Created for better visibility and granular control
Lets say you have a custom application in your org
It's showing up as unknown-tcp
So we may need to build a custom application
We should have detailed information on how the app works
You may need to do a wireshark on the traffic

User-ID
Classic firewall rules were based on IP's and ports. From a world where everyone was in the office etc.
We would give important clients and servers static IP's and create firewall rules based on those.

Today we try to work off role based access control (RBAC). For example Bob is a member of marketing and everyone in the market team should have access to facebook. We also have users working on WIFI and in remote locations from home etc. User IP's are often given by DHCP on top of that so that makes the old IP based policies no longer sufficient.

Most application firewalls will also be user aware. This is done by connecting the firewall to active directory and the firewall keeps a user to IP mapping. This process is known as user-id. We can now make firewall rules based on the AD username or group. On top of that we will get more information on users in our logging like how much bandwidth they are using etc.

How user ID works ?
The user info is not part of the network traffic. We just see a connection from an IP to www.facebook.com. It can work by several methods.

Group mappings
Firewall collects group mapping info for simplified administration. Eg connect to LDAP server. You will need an AD account to connect.

Global protect user-id
When users log in via the global protect client they type in the username and password. The firewall can record who the remote user is at that point. This is why you will often see user-id is working for remote clients but LAN clients it hasn't been enabled yet.

Windows agent
Software installed on the DC's. 
Saves CPU on the firewall MGMT plane.
Needs some bandwidth has agent must send data to the firewall
Software has to be installed/updated on the DC

Integrated agent (or agentless)
built into the firewall 
Reduces bandwidth usage 

Server monitoring
analysis of the event logs

Syslog
analysis of syslog login/logout

Port mapping
For multi-user system, such as terminal services or citrix

XFF headers
X forwarded for header will be there if a proxy server is in use

Auth with Captive portal
All the other methods are passive, the user doesn't have to do anything.
Captive portal is the only active method.
This is where the user gets a pop up to enter their username and password
Works with Kerberos SSO, NTLM, Client cert. More than one method can be used.

Captive portal modes
transparent - good for L2 or Vwire deployments
redirect  - Firewall does 302 redirect to original request, better user experience 

General overview
  • Enable User-ID in the right zone (GP and LAN etc)
  • Map IP address to users (with one of the methods, usually passive server monitoring)
  • Create user ID rules (create your firewall rules based on app and user roles)


Deploying authentication

Server profile
  • Device > Server Profiles > LDAP
  • Add our server IP and port 389
  • Type will be active directory
  • Base DN, DC=domain,DC=int
  • Bind DN admin@domina.int
  • password: secret-strong-password-here

Group mapping
  • Device > User ID > Group Mapping settings
  • Add mapping
  • Choose the server profiles
  • Choose the group from AD
  • Instead of fetching all AD groups we can choose
  • Most deployments we will want to bring in all groups
  • This is also a good test to see if the server profile is working
Auth profile
Device > Authentication profile
Add
type LDAP
Server profiles (select profile created above
User Domain ( domain ) 
*** if you leave this off the users may not match
*** We want domain\user, not just user

CLI commands for checking
show user group list
show user group name
show user ip-user-mapping
show user ip-user-mapping all

Clearing cache in case of troubleshooting / after fixing a broken AD connection
clear user-cache all
clear user-cache-mp all
clear uid-cache all
delete user-group-cache 

Enable user ID on the zone
Network > Zones
Click on Inside zone for example
Tick the enable user ID check box

Service routes
Devices > Setup > Services
Check the settings on LDAP and UID agent are correct
In some cases you will want the LDAP/UID to come from the LAN interface 

For captive portal make below
Network > Network profiles > Interface MGMT > Add interface mgmt profile
enable response pages
Enable user ID
This can be used later for captive portal

Portal certificate
  • Device > Certificate mgmt > Certificates > Device Certificates
  • For self signed make sure to check "certificate authority"
  • Bind the server to a SSL/TLS profiles
  • Device > Certificate management > SSL/TLS service profiles
When generating the cert
PA-CERT
common name: x.x.x.x (IP of the interface on the firewall eg LAN IP)
check certificate authority box
This cert will need to be trusted by all clients, you can deploy it to GP clients via the firewall
But best to deploy out via GPO or Intune

Device > User identification
Tick enable captive portal
Choose your SSL/TLS profile (one we made above)
Pick redirect mode
Fill in FW inside IP for the portal address

Auth policy for captive portal
Policies > Authentication
Add auth policy rule
Name your rule eg auth-trigger-http
select src and dst (eg inside > outside)
user is unknown 
service is service-http
authentication enforcement: default-web-form 

Troubleshooting
  • Use CLI commands to troubleshoot
  • Clear cache and retry connections, is the mapping working ?
  • Ensure you can reach your AD servers from the right interface
  • Ensure your AD user account is valid, has rights and correct password
  • Ensure you mappings are correct domain\user vs user

Security profiles

Security profiles are extra security inspection engines which can be applied for extra security on allow rules. They won't do any thing on deny rules as the traffic will already be dropped.

Profile types
  • Antivirus - classic AV based off signatures (some may be created by wildfire)
  • Antispyware - detects C2 traffic such as beaconing  
  • Vulnerability protection - Similar to IPS, detects known SQL injects, RCE etc.
  • URL filtering - URL content/category filtering (DNS protection)
  • File blocking - Block by file type .pdf. Does not care if the file is malicious or not.
  • Data filtering - Stop data exfil such as credit card numbers / certs / keys etc. Basic DLP.
  • DoS protection - Protects against floods and session exhaustion, rate limit etc.
  • Wildfire analysis - Like AMP on cisco land. It forwards unknown/suspicious samples to cloud for analysis in sandbox. It is used by palo alto to produce new signatures that feed back into antivirus profile. The AV/AS profiles are the ones that do the blocking.
Actions
We can set various actions like 
  • Allow
  • Drop
  • Alert (log)
  • Reset (client / server / both)
  • Default

Antispyware has extra actions
  • Block IP - block the C2 IP for some time
  • DNS sinkhole - redirect the C2 traffic to some server so it can be dropped or monitored. If all infected devices start reporting in you can clean them from your network.
URL filtering has extra actions
  • Continue - display a warning page before letting the user continue
  • Override - allow access to the page if an authorized user authenticates
In reality I would say not much use for these. Either allow or block these pages based on company policy.


Default vs Strict
Default will go with the suggested action in the signature
Strict will always block high and critical signatures 

BPA
Will want you to set the strict value which blocks all high/critical signatures in all cases.


Wildfire vs antivirus (signatures) and antispyware (c2 beacons)
In practice: WildFire analyses an unknown file and identifies it as malware. Antivirus can then block that file using the resulting signature. If a host was already infected, Anti-Spyware can catch its attempts to reach out to the attacker.

Exam tip: A WildFire Analysis profile forwards files for analysis but doesn’t block them. Blocking comes from other controls, such as the Antivirus profile’s WildFire action.

A note on SSL decryption
The majority of these profiles need SSL decryption on to be effective as they are lookin inside the payload. Obviously clear text stuff like HTTP can be protected without SSL decrypt but majority of traffic today is encrypted.
DoS protection is the only one because it uses traffic and session rates no payload inspection.


We can apply the profiles in the actions tab on a firewall rule.
We can apply each one for granular control, but in most cases you will have a standardized set of rules. In that case you can use a security profile group.
Set all the settings in a group and apply the group to the firewall rule. That way you don't have to select each profile individually.

Security profile groups
Generally you will have a company policy. You can config all your security profiles according to company policy. Once completed you can make a security profile group which uses all of them. Now you can apply one group to all your rules and have all company polices applied. If you use the default group it will automatically apply to all new rules. So some time investment up front in building these profiles will pay off later.

DoS attacks

What is a denial of service attack ?
Any type of attack that renders a network / device / service unusable. They can cause websites to crash / WIFI AP's not to accept new clients / Claim all the IP addresses from a DHCP server so no new clients can connect etc. There are many types of DoS attack and many different methods but the end goal is the same. Two main types are flood based (send lots of packets) or crash based (exploit / bug / vuln) which will crash the device or cause a reboot.

Often they are considered less risk than a remote code execution because generally the attacker doesn't get access to anything, they just break things. However the impact does depend. If your website needs to be up for the company to make money or its a hospital system. Sometimes DoS attacks are used to put the server into a crashed state where it will accept commands which can give the attacker access. For these reasons its important we protect against DoS attacks.

High volume DDOS attacks.
Your internet connection is usually of a fixed size. Likewise your firewall hardware resources are limited. Attackers can use botnets and DNS reflection attacks to fill your connection/hardware.

For these reasons a layered approach is recommended

Internet - put cloud flare out in front of your web sites DNS names. You will need to take care not to expose your real server public IP's via your website code and server software.

Next layer is your perimeter device (palo) with hardware based ACLs and stateful firewall. Palo recommend  to place the firewall as close to the servers its protecting as possible. Its not always feasible based on cost.

Web server based protection. For example nginx has some abilities to absorb slow connections and request floods from induvial IPs. It can't help with volumetric attacks. See Fail2Ban and CrowdSec. WAF can filter applications but we can use WAF at cloudflare level.

Preparing a baseline 

If we set zone protection with default numbers it might work but it could be too high or too low. Its a good idea to create a baseline for a week or month.

How to get the numbers ?

Panorama
Panorama > Managed Device > Health > All devices 

SNMP MIBS (can be monitored by monitoring tools)
CPS is connection per second
PanZoneActiveTcpCps
PanZoneActiveUdpCps
PanZoneOtherIPCps

3rd party monitoring tools
Wireshark, netflow etc

Once we have baseline we can set values for example if normal ops don't go over 2500 then we can set 3000 or even 9000 as a limit. Keep in mind as legitimate traffic grows you may have to re baseline and adjust.

Zone protection

We can put zone protection profiles to the zone for example all packets entering the inside zone.
If we have 2 or more interfaces as part of the inside zone both interfaces are subject to zone protection. This is known as broad protection.
It only applied to new sessions. So if you apply zone protection you may need to clear connection / sessions.

The protection is applied on the way in (ingress).

Web GUI
Network > Network > Profiles > Zone protection
Network > Zones
Add zone protection profile

CLI
show zone-protection

KB
https://docs.paloaltonetworks.com/best-practices/dos-and-zone-protection-best-practices

Flood protection defends against
  • SYN 
  • ICMP
  • ICMPv6
  • UDP
  • And other flood based attacks
Traffic above the connection per second threshold, we take action
RED (random early drop)

In the case of SYN flood protection we can use SYN cookies
Firewall acts as a proxy similar to SSL decryption the firewall is sitting in the middle.
However its memory intense so need to use carefully 

Reconnaissance protection
Recognise port scans or host sweeps
Actions
  • Allow
  • Alert 
  • Block

We can also exempt an IP for our own penetration tests. You may need to pair this with a firewall rule. However its not a real world scan if you just let the penetration testers in. Something to be aware of.

Protocol protection (non IP)
  • For L2 protocols, you would use this on virtual wires
  • LLDP
  • STP
  • SCADA
  • GOOSE
Exclude list will block the protocols you define and allow the rest
Include list will allow the protocols your define and block the rest

This is based on the protocol type code which you will need to know / get from wireshark capture.

DoS protection

DoS protection is granular protection
In general will be flood protection (some resource based attacks) 

Aggregate vs Classified 
  • Aggregate applies to combined traffic (per device group)
  • Classified applies to individual devices (per device)

With aggregate you could find your zone is not overloaded but a single server could be over loaded. In those cases you may want to use classified so each server has a profile. You can combine them.

Objects > security profiles > DoS protection
Monitor and adjust thresholds
Eanble resource protections (max concurrent sessions)

Protections rules
Policies > DoS Protection
Actions
  • allow
  • deny
  • protect (classified, need to select protection profile)
DoS protection is processed before the firewall rules.

For classified we want to count on destination IP (our DMZ server)

CLI
show dos-protection
show dos-protection rule RULE1 settings
show dos-protection zone

Advanced Technologies


Wednesday, 18 June 2025

VMware remote console VMRC

 https://knowledge.broadcom.com/external/article/368995/download-vmware-remote-console.html

Wednesday, 4 June 2025

Cisco RMA steps

open case 

request RMA

enter serial

chat now

Can I request RMA for this serial number : xxxxxxx

creates a RMA ticket

address needs to have customer name (your address / eircode)

or ship the RMA to the customer site

Friday, 7 March 2025

export user cert from windows cert store

Open MMC 

Add certs snap-in

user account and computer store

Check certificates > personal

exported the user cert from user store (use PKCS12 or DER base-64 encoded)

imported user cert into machine

switch aaa and radius authentication settings for duo etc

 aaa group server radius DUO-AUTH

aaa authentication login default group DUO-AUTH local

aaa authentication login CON-LOCAL local



aaa group server radius DUO-AUTH

 server name DUO-AUTH-PROXY

 ip radius source-interface Vlan2


radius server DUO-AUTH-PROXY

 address ipv4 192.168.1.1 auth-port 18122 acct-port 18122

 pac key 7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


Wednesday, 5 March 2025

find what DH group an ikev1 S2S VPN is using in ASA

Move away from Groups 2, 5, 24. 

DH Groups 1, 2, 5, 24 are considered insecure and are deprecated in FTD’s running 6.5/6.6 and will be removed in a later version.

check 6.7 and 7.1 release notes and search for group 5

https://www.cisco.com/c/en/us/td/docs/security/secure-firewall/management-center/device-config/710/management-center-device-config-71/vpn-s2s.html? 


IKEv1

show vpn-sessiondb detail l2l filter ipaddress x.x.x.x

Look for "D/H Group" in IKEv1 section

sh crypto isakmp sa detail | i Grp:


sh crypto isakmp sa | i PFS Group 2,

Looking for groups 2 and 5

 sh crypto isakmp sa detail | i Grp:2,

 sh crypto isakmp sa detail | i Grp:5,


Can copy the full output of " sh crypto isakmp sa detail" to a text file and search

Tuesday, 4 March 2025

QoS palo alto

Make QoS policies

Policies > QoS


Assign policies to a profile:

Network > Network Profiles > QoS Profile


Assign a profile to interfaces

Network > QoS



Thursday, 27 February 2025

why speed test results are usually lower than advertised speed

Overhead

  • Your internet speed is measured in raw bits per second (bps), but real-world data transfer includes additional information like headers, acknowledgments, and error checking.

  • TCP/IP, Ethernet, and other protocols add packet overhead, meaning some portion of the bandwidth is used for network management rather than your actual data.
  • This overhead typically accounts for 5-15% of the total bandwidth, which explains why you rarely see a full 1 Gbps in speed tests.

Speed test client and server

  • The speed test server’s capacity can impact results. Some servers may be congested or unable to fully utilize your bandwidth.
  • The distance between you and the test server affects latency, which can slightly reduce speeds.
  • The speed test client needs to have a good NIC (intel if possible) and good spec (RAM and CPU) because it needs to make many connections to test the connection. For example if you test with a 100mbps NIC that is the max speed you can see. You need a 1gig NIC or better to test a 1gig connection.

  • ISP and firewall/network management and contention

    • ISPs often use network shaping, congestion control, and peering agreements that affect speed.
    • During peak times, ISPs may limit speeds slightly to ensure fair distribution of bandwidth among users.
    • Your internal network/firewall may do the same
    • Its best to test out of hours with just your test laptop plugged into the internet connection to give the best results