Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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? –  Silver89 Nov 30 '12 at 18:15

1 Answer 1

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

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.