Rechercher dans ce blog

jeudi 30 avril 2009

linux ubuntu 8.04 hosts.access hosts.deny

Pour autoriser le telnetd et sshd depuis l'extérieur

On autorise de façon limitée dans le allow et on interdit tout le reste dans deny. Ce qui ne matche pas dans allow est bloqué.

hosts.allow

telnetd:ALL

sshd:ALL

ALL: LOCAL 10.0.1.0/24

hosts.deny

ALL: ALL

Se souvenir que sans fichier le contrôle d'accès est off

ACCESS CONTROL FILES

   The access control software consults two files. The search stops at the  first match:

   · Access will be granted when a (daemon,client) pair matches an  entry in the /etc/hosts.allow file.

   · Otherwise, access will be denied when a (daemon,client) pair  matches an entry in the /etc/hosts.deny file.

   · Otherwise, access will be granted.

Aucun commentaire:

Enregistrer un commentaire