Add range of ports in linux

To add a range of ports to accept from a specific server open iptables and enter the command below. Usually the iptables file is found in /etc/sysconfig/iptables. Replace media_server_ip with the IP of the server you want to accept the range of ports from:

-A RH-Firewall-1-INPUT -m tcp -p tcp -s media_server_ip ā€“-dport 10000:10200 -j ACCEPT