Port 631 is IPP / CUPS, TCP and UDP.
TCPUDP
low risk
App-IDipp
Internet Printing Protocol — modern standard for network printing. Used by CUPS on Linux/macOS.
Palo Alto
Create the service objects for this port, then allow the App-ID on it. Restricting the rule to the port's service object keeps the rule working on a non-default port and stops the App-ID matching on other ports. Replace the placeholders with your own rule name and zones.
set service tcp-631 protocol tcp port 631
set service udp-631 protocol udp port 631
set rulebase security rules <rule-name> from <from-zone> to <to-zone> source any destination any application ipp service [ tcp-631 udp-631 ] action allow
Risk and exposure
Rated low risk. Even so, only expose this port to the networks and hosts that need it, and keep it patched.
Check it
- Linux
ss -tlnp | grep :631 - Linux
ss -ulnp | grep :631 - PowerShell
Test-NetConnection <host> -Port 631 - nmap
nmap -p 631 <host> - nmap
nmap -sU -p 631 <host>