Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have my hosts.allow and hosts.deny set up as follows:

Allow:

sshd: (my static ip)
vsftpd: (my static ip)

Deny:

ALL : ALL

but this blocks all access to WHM and cPanel?

What else do I need to put in allow to enable these for myself?

Would the following be suitable?

ALL : (my static ip)
share|improve this question
    
The tcpwrappers is a bit old-school. Is there some reason why you aren't setting up a iptables-based firewall? Or have you done that as well? – Zoredache Nov 30 '12 at 18:08
    
@Zoredache I'm the only user with a static ip that needs access to the server so I just thought this was the easiest way? – Dan Nov 30 '12 at 18:15

Adding your IP to hosts.allow should be fine. But. But as Zoredache mentioned tcpwrappers library is inserted voluntary "between the service and internet" see Wikipedia TCP Wrapper. It means that it is optional and not all services support it. Some will just ignore the configuration. For example services written by you. You should at least test each one used on your server. Firewall would be probably more trustworthy.

share|improve this answer

You Should try below in host.allow.

SSHD : IP : ALLOW

WHOSTMGRD : IP : ALLOW

Cpaneld : IP : ALLOW (Not really necessary if you have added above two)

share|improve this answer

Your Answer

 
discard

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.