[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
es:howtos:network_services:home_nfs_howto [2019/02/14 15:39 (UTC)] slackwarespanoles:howtos:network_services:home_nfs_howto [2019/02/14 15:59 (UTC)] (actual) slackwarespanol
Línea 1: Línea 1:
-<note warning>En proceso de traducción. Victor</note> 
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
 <!--Reviewed 20130128 by hazel --> <!--Reviewed 20130128 by hazel -->
Línea 17: Línea 16:
  possibly read your email and delete all your files as well as break into your system)  possibly read your email and delete all your files as well as break into your system)
  if you set it up incorrectly.</file>  if you set it up incorrectly.</file>
-Setting up a secure NFS does require some additional work, but as good security habits start at home, these steps will also be presented. 
  
-For the purposes of this example:+La configuración de un NFS seguro requiere un trabajo adicional, pero como los buenos hábitos de seguridad comienzan en casa, estos pasos también se presentarán.
  
-  * the desktop computer will be called DESKTOP and has an IP address 10.1.1.2+Para los propósitos de este ejemplo:
  
-  the laptop computer will be called LAPTOP and has an IP address 10.1.1.3 using a wired connection+   la computadora de escritorio se llamará DESKTOP y tiene una dirección IP 10.1.1.2
  
-  or the laptop computer will be called LAPTOP-W and has an IP address 10.1.1.4 using a wireless connection+   la computadora portátil se llamará LAPTOP y tiene una dirección IP 10.1.1.3 utilizando una conexión por cable
  
-Both computers will be setup to act as NFS servers as well as clients.+   * o la computadora portátil se llamará LAPTOP-W y tiene una dirección IP 10.1.1.4 mediante una conexión inalámbrica 
 + 
 +Ambas computadoras se configurarán para que actúen como servidores NFS y clientes. 
 + 
 +===== Configuración de acceso =====
  
-** - Access settings -** 
  
 **/etc/hosts** **/etc/hosts**
  
-On the desktop computer /etc/hosts should have lines like+En la computadora de escritorio /etc hosts debe tener líneas como 
 <code>10.1.1.3                LAPTOP.<your domain>      LAPTOP <code>10.1.1.3                LAPTOP.<your domain>      LAPTOP
 10.1.1.4                LAPTOP-W.<your domain>    LAPTOP-W</code> 10.1.1.4                LAPTOP-W.<your domain>    LAPTOP-W</code>
-On the laptop computer /etc/hosts should have a line like+En la computadora portátil /etc/hosts debe tener una línea como
 <code>10.1.1.2                DESKTOP.<your domain>      DESKTOP</code> <code>10.1.1.2                DESKTOP.<your domain>      DESKTOP</code>
 **/etc/hosts.deny** **/etc/hosts.deny**
  
-On both machines add+En ambas máquinas agregue
 <code>portmap:ALL <code>portmap:ALL
 lockd:ALL lockd:ALL
Línea 48: Línea 50:
 **/etc/hosts.allow** **/etc/hosts.allow**
  
-On the desktop computer add+En la computadora de escritorio agregar
 <code># For NFS mount from LAN <code># For NFS mount from LAN
 portmap: 10.1.1.3 , 10.1.1.4 portmap: 10.1.1.3 , 10.1.1.4
Línea 56: Línea 58:
 statd: 10.1.1.3 , 10.1.1.4</code> statd: 10.1.1.3 , 10.1.1.4</code>
  
-On the laptop computer add+En la computadora portátil agregar
 <code># For NFS mount from LAN <code># For NFS mount from LAN
 portmap: 10.1.1.2 portmap: 10.1.1.2
Línea 63: Línea 65:
 mountd: 10.1.1.2 mountd: 10.1.1.2
 statd: 10.1.1.2</code> statd: 10.1.1.2</code>
-The syntax in the above examples can be alterede.g. 10.1.1. could be used to allow access from any machine on the 10.1.1.0/24 network+ 
 +La sintaxis en los ejemplos anteriores se puede alterarpEj. 10.1.1. podría utilizarse para permitir el acceso desde cualquier máquina en la red 10.1.1.0/24
  
 **/etc/exports** **/etc/exports**
  
-On the desktop computer add+En la computadora de escritorio agregar
 <code># Allow export of root file system to LAPTOP with read/write and root access <code># Allow export of root file system to LAPTOP with read/write and root access
 /               LAPTOP(rw,no_root_squash,no_subtree_check) \ /               LAPTOP(rw,no_root_squash,no_subtree_check) \
Línea 73: Línea 76:
 /music          LAPTOP(rw,no_root_squash,no_subtree_check,nohide) \ /music          LAPTOP(rw,no_root_squash,no_subtree_check,nohide) \
                 LAPTOP-W(rw,no_root_squash,no_subtree_check,nohide)</code>                 LAPTOP-W(rw,no_root_squash,no_subtree_check,nohide)</code>
-On the laptop computer add+En la computadora portátil agregar
 <code># Allow export of root file system to DESKTOP with read/write and root access <code># Allow export of root file system to DESKTOP with read/write and root access
 /               DESKTOP(rw,no_root_squash,no_subtree_check)</code>  /               DESKTOP(rw,no_root_squash,no_subtree_check)</code> 
-Comments +Comentarios: 
-  The no_root_squash option is very permissiveThe root_squash option is much more secure.+   La opción no_root_squash es muy permisivaLa opción root_squash es mucho más segura.
  
-  Allowing access to the entire root file system is very permissiveRestriction to sub-directory is much more secure.+   Permitir el acceso a todo el sistema de archivos raíz es muy permisivoLa restricción un subdirectorio es mucho más segura.
  
-  The nohide option is required to show the contents of other mounted partitions.+   Se requiere la opción Nohide para mostrar el contenido de otras particiones montadas. 
 +====  Daemon startup ====
  
-** - Daemon startup -** 
  
 **/etc/rc.d/rc.nfsd** **/etc/rc.d/rc.nfsd**
- +Compruebe que este archivo es ejecutable en ambos equipos
-Check that this file is executable on both computers+
  
 **/etc/rc.d/rc.rpc** **/etc/rc.d/rc.rpc**
  
-Check that this file is executable on both computers. (Not strictly necessary as /etc/rc.d/rc.nfsd will run thisbut will be important if you want the computer to work as an NFS client only)+Compruebe que este archivo es ejecutable en ambos equipos. (No es estrictamente necesario ya que /etc/rc.d/rc.nfsd ejecutará estopero será importante si desea que la computadora funcione solo como cliente NFS) 
 +==== Puertos de enlace  ====
  
-** - Binding ports -** 
  
-**a) Slackware versions up to 14.2**+**a) Versiones de Slackware hasta 14.2.** 
 +Para usar NFS a través del firewall, siga esta guía citada textualmente. Gracias rworkman!  
 +De http://rlworkman.net/howtos/NFS_Firewall_HOWTO
  
-To use NFS through the firewall follow this guide that is quoted verbatim. Thanks rworkman! 
-From http://rlworkman.net/howtos/NFS_Firewall_HOWTO 
 <file>This document is intended to give you detailed steps for making NFS bind to <file>This document is intended to give you detailed steps for making NFS bind to
 user-specified ports instead of random ports assigned by the portmapper. user-specified ports instead of random ports assigned by the portmapper.
Línea 237: Línea 239:
 </file> </file>
  
-**b) Slackware version after 14.2**+**b)Versión de Slackware después de 14.2**
  
-To use NFS through the firewall is now easieras options for NFS can be set in /etc/default/nfs and /etc/default/rpc. It is simply necessary to uncomment the appropriate lines in /etc/default/rpc.+hora es más fácil usar NFS a través del firewall, ya que las opciones para NFS se pueden configurar en /etc/default/nfs /etc/default/rpc. Simplemente es necesario descomentar las líneas apropiadas en /etc/default/rpc.
  
 **/etc/default/rpc** **/etc/default/rpc**
Línea 273: Línea 275:
 #</code> #</code>
  
-** - Firewall settings -**+==== Configuración de Firewall ==== 
  
 **/etc/rc.d/rc.firewall** **/etc/rc.d/rc.firewall**
  
-Here are some example lines to allow NFS+Aquí hay algunas líneas de ejemplo para permitir NFS
 <code>## NFS uses TCP and UDP on ports 111, 2049, 32764-32769 <code>## NFS uses TCP and UDP on ports 111, 2049, 32764-32769
 # Accept TCP and UDP on port 111 from local LAN for portmap # Accept TCP and UDP on port 111 from local LAN for portmap
Línea 307: Línea 310:
 </code> </code>
  
-The work is doneEverything should now be in placeAfter rebooting both machines it should now be possible to:+¡El trabajo está hechoTodo debería estar ahora en su lugarDespués de reiniciar ambas máquinas, ahora debería ser posible:
  
-  mount the root file system on the desktop computer on the /mnt/tmp directory on the laptop using+   monte el sistema de archivos raíz en la computadora de escritorio en el directorio / mnt / tmp en la computadora portátil usando
 <code>mount DESKTOP:/ /mnt/tmp</code> <code>mount DESKTOP:/ /mnt/tmp</code>
-  * mount the root file system on the laptop computer on the /mnt/tmp directory on the desktop using+  * monte el sistema de archivos raíz en la computadora portátil en el directorio / mnt / tmp en el escritorio usando
 <code>mount LAPTOP:/ /mnt/tmp</code> <code>mount LAPTOP:/ /mnt/tmp</code>
  
-====== Sources ======+====== Fuentes ======
   * http://nfs.sourceforge.net/nfs-howto/   * http://nfs.sourceforge.net/nfs-howto/
   * http://rlworkman.net/howtos/NFS_Firewall_HOWTO   * http://rlworkman.net/howtos/NFS_Firewall_HOWTO
 +  * Traducido por:  [[wiki:user: slackwarespanol | Victor]]  2019/02/14 15:58 (UTC)
  
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 {{tag>howtos software nfs slackware_13.37 slackware_14.0 author_allend}} {{tag>howtos software nfs slackware_13.37 slackware_14.0 author_allend}}
  
 es:howtos:network_services:home_nfs_howto ()