Securing Box
Hi all,I would like to secure my box so only certain IPs can access ssh (22) and to drop the rest.
How would I go about this? IPTables?
If so, I know I can add ips to access the port, but how would i go about denying all other ips and not to override the first rule?
iptables -A ip -p tcp --dport 22 -j ACCEPT (This would allow that ip)
iptables -A * -p tcp --dport 22 -j ACCEPT (This would deny all)
Would that be the solution ?
I don't want to put it in, incase I get locked out of my box. So checking first

Thanks!
Chris