Questions tagged [hosts.allow]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
2 answers
1k views

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 ...
Weboide's user avatar
  • 3,365
5 votes
7 answers
3k views

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 ...
robjmills's user avatar
  • 990
5 votes
1 answer
4k views

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 * ...
user46688's user avatar
  • 176
4 votes
1 answer
13k views

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 { ...
Natim's user avatar
  • 636
2 votes
5 answers
333 views

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....
sisko's user avatar
  • 165
2 votes
2 answers
12k views

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:...
user avatar
1 vote
2 answers
627 views

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 ...
Jed Daniels's user avatar
  • 7,382
1 vote
1 answer
675 views

htaccess - Generate ALLOW rule dynamically from external file

Can Htaccess set variables by external files as values? I would like to ALLOW all IPs that are listed in a txt file located on the server. This txt file is auto generated via script by our systems ...
MastaP's user avatar
  • 111
0 votes
1 answer
651 views

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....
Tar's user avatar
  • 265
0 votes
1 answer
300 views

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: ...
richelliot's user avatar
0 votes
0 answers
96 views

`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 ...
King Horse's user avatar
-1 votes
1 answer
6k views

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: <Directory /var/www/...
martin's user avatar
  • 228