Questions tagged [hosts.allow]

11 questions
5
votes
1 answer

IP addresses denied in /etc/hosts.allow appear in /etc/csf/csf.deny?

I modify my /etc/hosts.allow file as sshd : 192.168.0.0/255.255.255.0 : allow sshd : xxx.xxx.xxx.* : allow sshd : ALL : deny (where the xxx represent my actual IP address numbers and the wildcard * represents the full range 0-255) then restart sshd…
user46688
  • 176
  • 1
  • 12
5
votes
7 answers

Accessing IP restricted server from dynamic IP

Our servers (all CentOS) are all restricted by IP but often i am out and about and stuck on a dynamic IP address. Using a DynDNS widget I have set this dynamic IP to always sync with a DynDNS hostname but how should i go about making this resolve to…
robjmills
  • 990
  • 8
  • 24
4
votes
2 answers

What exactly is handling hosts.allow and hosts.deny?

On a Linux machine, there is hosts.allow and hosts.deny to either allow or deny certain hosts to access services running on the machine. The question is, what exactly is taking care of allowing or refusing those connections? Is there a daemon doing…
Weboide
  • 3,275
  • 1
  • 23
  • 32
3
votes
1 answer

Right way to configure Nginx filtering with ProxyPass

I am using Nginx to proxy pass to my wsgi app served with Circus. I want to allow the traffic to that app for some urls of the app only for some IP address. For now it look like this: server { listen 80; server_name service.dev; …
Natim
  • 616
  • 1
  • 6
  • 16
2
votes
5 answers

Ubuntu Apache IP based access restriction

My server has been infiltrated by an outsider using my root user qualifications. With the root password changed, I'm trying to find extra strategies for securing the server. Using the /etc/hosts.allow and /etc/hosts.deny seems like a viable solution…
sisko
  • 155
  • 1
  • 8
1
vote
2 answers

What services does hosts.allow NOT affect?

I know that hosts.allow and host.deny only affect things that are tcpwrappered, but what does this mean in practice? It seems that most people use hosts.allow to handle ssh and nfs blocking, but what other services are typically handled there? And…
Jed Daniels
  • 7,172
  • 2
  • 33
  • 41
1
vote
2 answers

Linux: hosts.allow, hosts.deny - how do I allow all except hosts mentioned in hosts.deny

How do I configure hosts.allow and hosts.deny to allow all connections from all hosts except for some hosts/ports specified in hosts.deny? This is what I have now in these files: hosts.allow: ALL:ALL hosts.deny: somehost:someport I want to allow…
user58292
0
votes
0 answers

`hosts.allow` updated by PHP not working

Good afternoon, I am working in giving logged in user controlled FTP access. Reason: I don't want FTP access open to all IP addresses on the internet. What I am trying to achieve is when a user logs in at the website a PHP script adds their IP…
0
votes
1 answer

ssh_exchange_identification - deny.hosts blocking ssh access due to my IP changing

Today my IP address changed. Due to this my ubuntu server has locked me out. When I try to access the server via SSH, I am presented with the follow error: ssh_exchange_identification: read: Connection reset by peer I presume this is down to my new…
richelliot
  • 127
  • 6
0
votes
1 answer

Can /etc/hosts.deny/allow be overridden?

I have security measures put in place to keep unwanted users out of my server. I've changed the SSH port, disabled root login, have a software firewall to block portscans, and have entries in hosts.deny and hosts.allow. I have various services…
Tar
  • 265
  • 4
  • 11
-1
votes
1 answer

Apache: deny acces to directory but allow 1 file

I am using Apache 2.2.22 on Ubuntu 12.04. I need to disable access to directory /var/www/abc/ but allow access to file inside this directory /var/www/abc/README.txt. I try: Order allow,deny deny from all
martin
  • 218
  • 1
  • 3
  • 11