LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   host.deny and host.allow not found (https://www.linuxquestions.org/questions/linux-security-4/host-deny-and-host-allow-not-found-579416/)

satimis 08-24-2007 03:53 AM

host.deny and host.allow not found
 
Hi folks,


Ubuntu 7.04 lamp server amd64


The files host.deny and host.allow can't be found.

$ sudo find / -name hosts.deny
$ sudo find / -name hosts.allow
both w/o printout

$ sudo iptables -L
Code:

Chain INPUT (policy ACCEPT)
target    prot opt source              destination       

Chain FORWARD (policy ACCEPT)
target    prot opt source              destination       

Chain OUTPUT (policy ACCEPT)
target    prot opt source              destination

How to create them? TIA


Edit:

I found following guide;
http://ubuntuforums.org/showthread.php?t=450853

I'll create host.deny and host.allow according to its steps.

Further suggestion/advice would be appreciated.


B.R.
satimis

unSpawn 08-24-2007 04:45 AM

Creating them manually is cool, they are just text files.

rupertwh 08-24-2007 04:50 AM

Quote:

Originally Posted by satimis (Post 2868897)
The files host.deny and host.allow can't be found.

Maybe because they are called hosts.deny and hosts.allow? ;)

unSpawn 08-24-2007 05:20 AM

Quote:

Originally Posted by rupertwh (Post 2868933)
Maybe because they are called hosts.deny and hosts.allow? ;)

Good one Eagle eyes ;-p

satimis 08-24-2007 05:22 AM

Hi folks,


Tks for your comments.

The Guide works w/o problem.

However ccording to the Guide the 2 files, hosts.deny and hosts.allow, are empty. Where can I find their script?

TIA


B.R.
satimis

win32sux 08-24-2007 06:38 AM

Quote:

Originally Posted by satimis (Post 2868951)
hosts.deny and hosts.allow, are empty. Where can I find their script?

There's no script. They are config files. The config you place in them depends on what you want to do. If you Google a bit you will find plenty of examples.


All times are GMT -5. The time now is 07:02 PM.