Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to connect to my server via ssh, but I can't connect unless I add a firewall exception in my server settings (add an IP address). Is there any way to let any IP address connect? Is this a bad thing to do?

Update: I get my IP address from the link in WHM "What is your IP?" enter image description here

share|improve this question
What IP address do you add and to what server settings? – Chida Aug 26 '12 at 16:32
show us the output of iptables -L -v -n . – Iain Aug 26 '12 at 16:40
I lookup my IP address and add it to my firewall exceptions. @Iain where do I enter that command? – EGHDK Aug 26 '12 at 16:46
up vote 2 down vote accepted

I guess you could add but that would be everything, people will try and access your server so it is better to restrict the range.

If you have a static IP get your IP address by typing "whats my ip" into google, then you can enter it directly into the allow rule box.

If your IP is dynamic and changes, you might want to restrict it to your ISP by using the first two digits x.x.0.0/16 (i.e. if your IP is you would put perhaps your ISP could give you the address ranges it uses?

I can see you are using cPanel, I have found ConfigServer (CSF plugin at and cPhulk (built in to cPanel) useful to blacklist and prevent brutefotce attempts.

share|improve this answer
Sorry as this may seem like a dumb question, but you said people will try to access my server. Are there "bots" that will just try to connect to my server and delete everything? Also, I have a password on the root account of course, but I have unlimited tries to enter the password. So bruteforce seems inevitable. Any way to limit the number of tries? – EGHDK Aug 27 '12 at 2:32
@EGHDK there are bots and scanners which will search forl live IPs and then start attempting to log in and connect to services. I have updated my reply – g18c Aug 27 '12 at 3:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.