Exactly one of these options has to be specified.
The source may include one or more port specifications. Each of them can either be a service name or a port number. One of the port specifications may be a range of ports, in the format port:port. Furthermore, the total number of ports specified with the source and destination addresses should not be greater than IP_FW_MAX_PORTS (currently 10). Here a port range counts as 2 ports.
The port number zero is used for a match with the second and further fragments of TCP or UDP packets. These packets will be treated as if their port numbers are zero. Note that the specified command and protocol may imply restrictions on the ports to be specified. Ports may only be specified in combination with the tcp or udp protocol. Also, when the check command is specified, exactly one port is required in combination with either of these protocols.