Creates a rule that matches network traffic destined for a host within a specific network.
- macOS 10.15+
An endpoint instance that matches the port and address or network that the rule matches. This endpoint must contain an address, not a hostname.
An integer that in combination with the address in the endpoint specifies the destination network that the rule matches.
The protocol that the rule matches.
If the port string of
0 or the empty string, the rule matches traffic on any port destined for the given address or network.