How do I define a range of ports, say from UDP port 10000 to UDP port 20000? It is impossible for me to define each port , say 10000, 10001, 10002, etc.

When you define a service, you need to specify destination port = 10000:20000