Re: Connection Issues with Fedora 5 and tbd server.
the -m tcp is not needed. This will do just as well:
iptables -I INPUT -p tcp --dport 20180:20190 -j ACCEPT
if you want to make the change permanent:
open /etc/sysconfig/iptables as root.
find the line which says:
-A RH-Firewall-1-INPUT -m state ESTABLISHED,RELATED -j ACCEPT
above that line, add this:
-A INPUT -p tcp --dport 20180:20190 -j ACCEPT
Then either restart the computer, or run the following command (as root) to update the change in the firewall.
service iptables restart
I hope that helps (these instructions are designed for Fedora, they may not work with another Distro).