Entradas

Mostrando entradas de julio, 2012

Configuración básica de red IPv6 en Linux

Hoy escribiré sobre como configurar Linux con IPv6. Ya en un tema anterior hable sobre como formar las direcciones IPv6 y los tipos de dirección que existen. Así que hoy iremos directo sobre la práctica. El tema es corto pero es que es así de sencillo configurar un equipo con IPv6, a lo mejor muchos ya saben pero también Linux siempre tiene gente nueva que busca estas cosas que para muchos ya son muy "sencillas". Verificar que el sistema tiene activado IPv6 El módulo de IPv6 ya viene integrado en todos los kernel 2.4.x aunque no siempre se encuentra activado. Con este comando podemos verificar si lo está o no: test -f /proc/net/if_inet6 && echo "Si activado" Si nos devuelve el mensaje "Si activado" quiere decir que ya se encuentra activado IPv6. De lo contrario lo activamos con estos comandos. Para Ubuntu o similares: modprobe ipv6 Para que el módulo IPv6 cargue automáticamente cuando inicia el sistema se agrega la pa

Install a local DNS in Linux with Bind

How to mount a quick and basic DNS in a local network. First let's see the types of DNS and DNS records. Types of DNS Master: Owns the authoritative records of a zone, answers the requests of name resolution as an authoritative server and delegates copies to the slave servers. Slave: Answers to the name resolution requests as an authority server, but the information is distributed by the master servers. Cachingonly: Answers to name resoution requests but it is not an authority server, it saves the answers in memory by a determined period of time. Forwarding: Forwards the requests to a list of name servers. DNS Records A (Address): Defines an IP address and the name assigned to the host. AAAA: It's the replacement of the A records when the traduction is from name to IPv6 address. MX (Mail eXchanger): It's used to identify mail servers. CNAME (Canonical Name): Is an alias that is assigned to a host that has an IP address and answers to differen

Instalar un DNS local en Linux con Bind

Hola hoy voy a escribir sobre como montar un servidor DNS rápido y básico en una red local. Primero veremos los tipos que existen de DNS y los registros DNS. Tipos de DNS Master (Maestro o Primario): Aloja los registros autoritarios de una zona, responde las peticiones de resolución de nombres como servidor de autoridad y delega copias a los servidores esclavo. Slave (Esclavo o Secundario): Responde a las peticiones de resolución de nombres como servidor de autoridad, pero la información es distribuida por los servidores primarios. Caching­only (Sólo de cache): Responde a las peticiones de resolución de nombres pero no es servidor de autoridad, las respuestas las guarda en memoria por un período determinado. Forwarding (de reenvío): Reenvía las peticiones a una lista de servidores de nombres. Registros DNS A (Address): Define una dirección IP y el nombre asignado al host. AAAA: Son el reemplazo de los registros A cuando la traducción que se lleva acabo es de

Synchronize network directories with Linux

Today I'll write about how to have a network synchronized folder using SSHFS. SSHFS is a filesystem that is mounted as a client of a remote folder. It uses the SFTP protocol. With SSHFS if you make a change in a file it will be reflected immediately in the other computer. If we edit a file in the client that has mounted the remote folder, the change will be reflected in the remote computer and the same if we do it the other way. You only need to install SSHFS in the client, you don't need it in the server, the only service you need at the server is the SSH service installed and running. Installation For Fedora and similars: yum install sshfs For Ubuntu and similars: apt-get install sshfs Configuration The first thing we have to do is choose the folder we want to synchronize, so the computer where that folder is would be the server. In the example I'll use the directory /home/rukia/foo in which the owner and group is rukia. In the client we

Sincronizar carpetas en red con Linux

Hola hoy escribiré sobre como tener una carpeta sincronizada en red utilizando SSHFS. SSHFS es un sistema de archivos que se monta como cliente de un directorio remoto. Utiliza el protocolo SFTP. Con SSHFS el cambio que se realice en un archivo se reflejará inmediatamente en el otro sitio. Si editamos un archivo en el cliente que tiene montada la carpeta remota se reflejará al momento el cambio en la ubicación remota y lo mismo pasa si hacemos esto en viceversa. La instalación, esta sólo se realiza en el equipo cliente, no se necesita en el equipo servidor, lo único que debe tener el equipo servidor es el servicio de SSH instalado y corriendo. Instalación Para Fedora y similares: yum install sshfs Para Ubuntu y similares: apt-get install ssh Configuración Lo primero que hay que hacer es elegir el directorio que queremos sincronizar, este será entonces el equipo servidor. Debemos darle los permisos necesarios. En el ejemplo utilizaré el directorio /home

Unix permissions: The sticky, SUID and SGID bits

Hello, today I'll write about more permissions, this time it will be about the Sticky, SUID and SGID bits. I'll write about them because one of my readers told me that it would be a good idea to write about these bits. Sticky bit What the sticky bit does is that when you execute an application it will be residing in the memory, so if other user (thinking in a multiuser environment) executes that same application it will run faster because it's already active in memory. So this permission fastens the executions if multiple users are using the same application. SUID bit If we apply the SUID bit to an application, it will run with the UID of the owner even if you are logged in as another user. For example if all the users need to execute fdisk without using sudo or escalate to root we just have to apply this bit to fdisk. SGID bit The same as SUID but it applies to the group owner of the application. The SUID bit to execute bash scripts as root Even if we ca