Port 521 is RIPng, UDP.
UDP
low risk
App-IDrip
RIP next generation — the RIP distance-vector routing protocol adapted for IPv6. Routers exchange updates over multicast address ff02::9.
Palo Alto
Create the service object 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 udp-521 protocol udp port 521
set rulebase security rules <rule-name> from <from-zone> to <to-zone> source any destination any application rip service udp-521 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 -ulnp | grep :521 - nmap
nmap -sU -p 521 <host>