Block port on all interfaces using PF

Solution 1:

The proper rule is:

block in quick inet proto { tcp, udp } from any to any port 63342

Some parts may be omitted (e.g. inet or from any) with a slightly different meaning.