On Tue, 15 Feb 2000, Leonard Ong wrote:
<-]Date: Tue, 15 Feb 2000 16:10:25 +0700
<-]From: Leonard Ong
<-]To: suse-linux-e@suse.com
<-]Subject: Re: [SLE] hosts.deny sysntax?
<-]> Hi,
<-]>
<-]> About host allow
<-]>
<-]> if i put
<-]>
<-]> 202.154.*.*
<-]>
<-]> will it meant that only ip with above can access my computer ( ALL
<-]> SERVICES ) ? including name server queries ? or just telnet / ftp ?
<-]>
<-]> thanks
Hi Leonard
If you want to give access to all the services to 202.154.*.*, and
only to them, edit /etc/hosts.allow like this:
ALL: 202.154. : ALLOW
ALL: ALL: DENY
If you wanna select the services to allow, check /etc/inetd.conf out for
the exact name of the service (in.telnetd, in.ftpd, etc...). This would
then look like this:
in.telnetd: 202.154. : ALLOW
ALL: ALL: DENY
If you are sure that a specific service in inetd.conf won't have to be
used on your server, simply remove it by commenting its line in
inetd.conf and then restart inetd. This is by far the safest way...
man tcpd or man hosts_access will also help you...
Good luck
________________
Nicolas Beaulieu
Economics Department, Universite Laval
Centre de Recherches en Economie et Finances Appliquees (CREFA)
Quebec, Canada
418-626-5033
_________________
http://www.penguinpowered.com/~montesquieu
mailto:montesquieu@penguinpowered.com
ICQ 15933500
---> http://www.ccfa.org <---
---> http://www.ccfc.ca <---
_________________
Le Renard: "Voici mon secret. Il est tres simple: on ne voit bien qu'avec
le coeur. L'essentiel est invisible pour les yeux."
Antoine de Saint-Exupery
Le Petit Prince
_________________
--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com
For additional commands send e-mail to suse-linux-e-help@suse.com
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/