I have installed centos 5.3 on a remote machine. Right now there are no limitations who can access http server - everything is set to default (port 80 and 22 are open).
How can I configure iptables on this remote machine so that only my home static IP will have acces through port 22 and three others to port 80?
I have tried the following:
#: IPTABLES -A INPUT -s <my_ip> -p tcp --dport 22 -j ACCEPT
when I tested this on another static ip machine the access was granted although It should not have been.
Can you help me configure iptables?