Entradas

Configuración de un DNS IPv6 local en Linux con Bind

Hoy escribiré sobre como crear un DNS dentro de nuestra LAN utilizando IPv6. Como en un tema anterior ya escribí sobre algo de teoría del DNS y Bind9 y su respectiva instalación pasaremos directamente a la configuración de los archivos para un DNS IPv6. Si tienen dudas de teoría consulten el post anterior aquí . Para Ubuntu y similares Utilizaremos las siguientes IPv6 de sitio de ejemplo: Servidor DNS - fec0::a987:200:27ff:fe59:bfd6 Cliente - fec0::a987:21f:d0ff:fe45:4e76 para el cliente Con una máscara de red de 64 bits  Por lo que nuestra dirección IPv6 de red es fec0:0:0:a987::/64 Y los siguientes dominios de ejemplo: Servidor - rukia.com y también responderá por www.rukia.com Cliente - goku.rukia.com Los archivos a configurar se encuentran en el directorio /etc/bind Primero editamos este archivo: /etc/bind/named.conf.default-zones Por default el archivo contiene lo siguiente: zone "." { type hint; file "/etc/bind/db.root"; }; ...

Basic IPv6 network configuration for Linux

Today I'll write on how to configure Linux with IPv6. Today we'll go directly to the practice since in an older post I wrote about IPv6 addresses. Verify if the system has IPv6 enabled The IPv6 module is integrated since kernel 2.4.x even though it's not always enable. With this command we can verify if it is or not enable: test -f /proc/net/if_inet6 && echo "Enable" If it returns the message "Enable" this means that it's enable (obvious). If not we activate it with the next commands. For Ubuntu or similars: modprobe ipv6 And if we want the IPv6 module to be loaded at boot time we add the word ipv6 to the end of this file: /etc/modules For Fedora or similars We edit this file: /etc/sysconfig/network And we add this line to the file: NETWORKING_IPV6=yes Now that we added it we restart the network service. Also if we want to allow the forwarding of IPv6 packages in our computer we apply these co...

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...