If I have the following lines in my IPtables file (/etc/sysconfig/iptables)
Code:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1:24 -j DENY
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 26:79 -j DENY
Does that
imply that I wish to have port 25 open? Or should I input the following line as well?
Code:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
I am only asking because due to the holidays I cannot get to a machine that can ssh in and test this out. (Also the above lines are only and example, not a real config. I too noticed that 22 would be closed if I really used the above config).
Thanks in advance.