i have installed redhat 5.5 enterprise server on two pc. one is having ip 172.24.0.10 & another is having 172.24.0.20 ip. to enable ssh service on 172.24.0.10 from 172.24.0.20 i am runing this command.
iptables -A INPUT -s 172.24.0.20 -p tcp --dport 22 -j ACCEPT
after then i am runing command "service iptables save". but i am unable to take ssh connection on 172.24.0.10, how to block & allow services by iptables. i am runing correct command or not.