6
REDES LINUX NFS 1. ESCRIBA LOS COMANDOS PARA CONFIGURAR LOS CORTAFUEGOS PERMITIENDO LA SALIDA DE LOS PROTOCOLOS HTTP Y NFS. En un terminal como root, realizamos lo siguiente: iptables -A INPUT -p tcp --dport 80 -j ACCEPT iptables -A INPUT -p tcp --dport 2049 -j ACCEPT

Tarea 3

Embed Size (px)

Citation preview

  • REDES LINUX NFS

    1. ESCRIBA LOS COMANDOS PARA CONFIGURAR LOS CORTAFUEGOS PERMITIENDO LA

    SALIDA DE LOS PROTOCOLOS HTTP Y NFS.

    En un terminal como root, realizamos lo siguiente:

    iptables -A INPUT -p tcp --dport 80 -j ACCEPT

    iptables -A INPUT -p tcp --dport 2049 -j ACCEPT

  • 2. COMPARTIR CON TODO EL MUNDO Y CON ACCESO TOTAL (LECTURA Y ESCRITURA)

    LA CARPETA /TODOS

    En un terminal como root, realizamos lo siguiente:

    mkdir /home/edison/ carpeta_nfs_compartir

    chmod 777 /home/edison/carpeta_nfs_compartir

    Despues editamos el archivo exports y aadimos la carpeta con los respectivos permisos.

    nano /etc/exports

  • REDES WINDOWS SMB / SAMBA

    1. INDICA LOS COMANDOS PARA LISTAR EN PANTALLA LOS RECURSOS SMB

    COMPARTIDOS EN EL SERVIDOR 192.168.56.140

    En un terminal como root, realizamos lo siguiente:

    smbclient L //192.168.56.140

    2. INDICA EL COMANDO PARA COMPRIMIR LA CARPETA /HOME Y ENVARLA

    (COPIARLA) AL RECURSO SMB, LLAMADO RESPALDOS EN EL EQUIPO 192.168.56.135

    En un terminal como root, realizamos lo siguiente:

    mkdir home

    tar zcvf home.tar.gz home/

    Despees editamos el fichero smb.conf con la carpeta que se va a compartir y sus respetivos

    permisos.

    nano /etc/samba/smb.conf

  • Despus en la maquina cliente montamos la carpeta compartida del servidor:

    mkdir /mnt/respaldos

    mount //192.168.56.140/home/edison/home.tar.gz /mnt/respaldos

    3. COMPARTE UNA IMPRESORA LINUX PARA LA RED SAMBA. INDICA LOS PASOS Y LOS COMANDOS.

    Estamos conjeturando que ya tenemos una impresora en perfecto estato conectada a la PC

    Linux. Tenemos que activar CUPS en el fichero smb.cong. CUPS (Common Unix Printing

    System) es el sistema de impresin, basado en estndares y de cdigo abierto, desarrollado

    por Apple y otros sistemas operativos basados en UNIX. Compartir impresoras en Samba es

    muy sencillo simplemente busca estas dos lneas en el archivo /etc/samba/smb.conf

    Reinicia el servidor de Samba:

    /etc/init.d/samba reload

    4. CIFRA LAS CONTRASEAS DE SAMBA. INDICA LOS PASOS Y COMANDOS NECESARIOS

    PARA ELLO.

    En un terminal como root, realizamos lo siguiente:

    cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

    chmod 600 /etc/samba/smbpasswd

    adduser usuario_nuevo //tenemos que agregar un nuevo usuario para usarlo en SAMBA

    smbpasswd a usuario_nuevo

  • Luego aadimos el archivo smb.conf:

    nano /etc/samba/smb.conf