NFS e tcp wrappers

E' possibile tramite l'utilizzo di hosts.allow e hosts.deny limitare l'accesso alle share a determinati indirizzi.
Di seguito riportato un piccolo esempio di configurazione di hosts.allow e hosts.deny:

[[email protected] root]# cat /etc/hosts.deny  
# hosts.deny    This file describes the names of the hosts which are
#        *not* allowed to use the local INET services, as decided
#        by the '/usr/sbin/tcpd' server.
Limitare l'accesso a tutti i singoli demoni relativi a NFS
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

[[email protected] root]# cat /etc/hosts.allow
# hosts.allow    This file describes the names of the hosts which are
#        allowed to use the local INET services, as decided
#        by the '/usr/sbin/tcpd' server.
Consentire l'accesso solo a chi considerato trusted
portmap:10.0.0.0/255.255.255.0
lockd:10.0.0.0/255.255.255.0
mountd:10.0.0.0/255.255.255.0
rquotad:10.0.0.0/255.255.255.0
statd:10.0.0.0/255.255.255.0

Privacy Policy