port forwarding help

can I port forwarding range of ports in one NAT rule??
I mean if you want to port forward range of ports 8220-8335 TCP/UDP , is it possible to do it in one or two NAT rule???

thanks in advance

Yes it is possible with 2 rules. One for TCP and one for UDP.

chain=dstnat action=dst-nat to-addresses=x.x.x.x
      to-ports=8220-8335 protocol=udp in-interface=WAN_Interface 
      dst-port=8220-8335 log=no log-prefix=""
      
      chain=dstnat action=dst-nat to-addresses=x.x.x.x
      to-ports=8220-8335 protocol=tcp in-interface=ether1 
      dst-port=8220-8335 log=no log-prefix=""

Just replace IP address and interface to suit your needs.