NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Is there a default /etc/hosts.deny ?



Hi Jukka,
thanks for the info. I wasn't sure since I used it to block some ip-s. 

Now I have the NetBSD-ipfilter (ipf.conf) in use - and will retire my
clumsy hosts.deny file. Its a single internet server, so the hostile
environment is just from outside.

Thanks!
herb langhans


On Sat, May 12, 2012 at 11:19:19AM +0300, Jukka Ruohonen wrote:
> On Sat, May 12, 2012 at 08:50:34AM +0200, herbert langhans wrote:
> > can somebody please tell me if there exists the /etc/hosts.deny if you
> > install it cleanly from NetBSD5.1.
> 
> No.
> 
> > If so - what is the content? I guess there is just /etc/hosts but
> > neither /etc/hosts.deny or /etc/hosts.allow after a fresh install. Am I
> > right?
> 
> Yes.
> 
> But you can add it yourself. My hosts.deny(5) contains:
> 
>       ALL : ALL
> 
> whereas the hosts.allow(5) could contain
> 
>       ALL     : localhost     : ALLOW
>       smtpd   : .lan          : ALLOW
>       lpd     : .lan          : ALLOW
>       ftpd    : .lan          : ALLOW
>       sshd    : .lan          : ALLOW
>       sshd    : .se           : ALLOW
>       ALL     : ALL           : DENY
> 
> - Jukka.

-- 
sprachtraining langhans
herbert langhans, warschau
herbert.raimund[at]gmx.net
herbert[at]langhans.com.pl
http://www.langhans.com.pl
+0048 603 341 441

| jabber:herbs
| icq:414500866
| yahoo_im:herbert.raimund


Home | Main Index | Thread Index | Old Index