Este Bind es funcional, el detalle es que no me gurda las cache el suficiente tiempo
*Asunto x solucionar ...
#instalacion /$sudo apt-get install bind9
#archivos
#/etc/bind/named.conf.local
#/etc/bind/named.conf.options
#/etc/bind/db.angel
#/etc/bind/db.192
#le sacamos copia a los archivos /db.local y /db.127 que estan ubicados en la carpeta /etc/bind, y los renombramos x unos nuestros en mi caso esta con los nombres
#/etc/bind/db.angel
#/etc/bind/db.192
#servicio /etc/init.d/bind9 {stop|start|restart}
Backup
#/etc/bind/named.conf.local
**************************************************
zone "angel.home.net" {
type master;
file "/etc/bind/db.angel";
};
zone "192.in-addr.arpa" {
type master;
file "/etc/bind/db.192";
};
**************************************************
#/etc/bind/named.conf.options
**************************************************
options {
directory "/var/cache/bind";
forwarders {
192.168.1.100;
200.48.225.130;
200.48.225.130;
};
};
**************************************************
#/etc/bind/db.angel
**************************************************
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA angel.home.net. root.angel.home.net. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800000 ) ; Negative Cache TTL
;
@ IN NS angel.home.net.
@ IN A 192.168.1.100
@ IN MX 0 angel.home.net.
www IN A 192.168.1.100
saturno IN CNAME angel.home.net.
**************************************************
#/etc/bind/db.192
**************************************************
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA angel.home.net. root.angel.home.net. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS angel.home.net.
100.1.168 IN PTR angel.home.net.
**************************************************
jueves, 12 de noviembre de 2009
martes, 10 de noviembre de 2009
4 Configurando x fin el proxy-cache Squid
Proxy * le agregaremos mas opciones segun vallamos aprendiendo mas
#Instalacion sudo apt-get install squid
#archivo1 /etc/squid/squid.conf
#segun esta configuracion se deben crear
#/etc/squid/plus.lst #Para las ip Permitidas
#/etc/squid/list.lst #Para los dominios Bloqueados
#servicio /etc/init.d/squid {stop|start|restart}
BackUp
*******************************************************
visible_hostname Millenium.internet
http_port 3128 transparent
cache_mem 128 MB
cache_dir aufs /angel/cache 30000 16 64
maximum_object_size 65535 KB
ie_refresh on
offline_mode on
#Controlde acceso
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl redlocal src "/etc/squid/plus.lst"
acl nopaginas dstdom_regex "/etc/squid/sites.lst"
acl bloquear urlpath_regex -i \.exe$ \.wav$ \.zip$ \.rar$ \.mov$ \.avi$ \.iso$ \.msi$ \.flv$
acl useragent browser -i ^application/NSPlayer$
acl useragent browser -i ^application/player$
acl useragent browser -i ^application/Windows-Media-Player$
acl useragentq rep_mime_type ^video
acl useragentq rep_mime_type ^audio
http_access deny useragent
http_access deny useragentq
http_access deny nopaginas
http_access deny bloquear
http_access allow redlocal
http_access deny all
******************************************************
#Instalacion sudo apt-get install squid
#archivo1 /etc/squid/squid.conf
#segun esta configuracion se deben crear
#/etc/squid/plus.lst #Para las ip Permitidas
#/etc/squid/list.lst #Para los dominios Bloqueados
#servicio /etc/init.d/squid {stop|start|restart}
BackUp
*******************************************************
visible_hostname Millenium.internet
http_port 3128 transparent
cache_mem 128 MB
cache_dir aufs /angel/cache 30000 16 64
maximum_object_size 65535 KB
ie_refresh on
offline_mode on
#Controlde acceso
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl redlocal src "/etc/squid/plus.lst"
acl nopaginas dstdom_regex "/etc/squid/sites.lst"
acl bloquear urlpath_regex -i \.exe$ \.wav$ \.zip$ \.rar$ \.mov$ \.avi$ \.iso$ \.msi$ \.flv$
acl useragent browser -i ^application/NSPlayer$
acl useragent browser -i ^application/player$
acl useragent browser -i ^application/Windows-Media-Player$
acl useragentq rep_mime_type ^video
acl useragentq rep_mime_type ^audio
http_access deny useragent
http_access deny useragentq
http_access deny nopaginas
http_access deny bloquear
http_access allow redlocal
http_access deny all
******************************************************
3 Configurando un Iptables Ultrabasico
Un firewall que aun no bloquea nada pero es funcional
#Creacion del Archivo $sudo [Editos de Texto] /etc/init.d/firewall.conf
#Dandole permisos de Ejecucion $sudo chmod a+x /etc/init.d/firewall.conf
#Instalando Aplicacion para que arraque $sudo apt-get install rcconf
#marcado en el inicio $sudo rcconf *marcar firewall.conf
Backup archivo
*********************************************************
iptables -F
iptables -X
iptables -Z
iptables -t nat -F
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth1 -j MASQUERADE
iptables -t nat -A PREROUTING -s 192.168.2.0/24 -d ! 192.168.2.0/24 -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -A INPUT -s 192.168.2.0/24 -i eth2 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 993 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 110 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 465 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 25 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 80 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 443 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 53 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p udp --dport 53 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
*********************************************************
#Creacion del Archivo $sudo [Editos de Texto] /etc/init.d/firewall.conf
#Dandole permisos de Ejecucion $sudo chmod a+x /etc/init.d/firewall.conf
#Instalando Aplicacion para que arraque $sudo apt-get install rcconf
#marcado en el inicio $sudo rcconf *marcar firewall.conf
Backup archivo
*********************************************************
iptables -F
iptables -X
iptables -Z
iptables -t nat -F
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth1 -j MASQUERADE
iptables -t nat -A PREROUTING -s 192.168.2.0/24 -d ! 192.168.2.0/24 -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -A INPUT -s 192.168.2.0/24 -i eth2 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 993 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 110 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 465 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 25 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 80 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 443 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p tcp --dport 53 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth2 -p udp --dport 53 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
*********************************************************
2 COnfigurando el Sevidor Dhcp
Ahora le toca al Servidor Dhcp
#Instalacion sudo apt-get install dhcp3-server
#archivo1 /etc/default/dhcp3-server
@archivo2 /etc/dhcp3/dhcpd.conf
#servicio /etc/init.d/dhcp3-server {stop|start|restart}
Backup archivo1
*****************************************************************************
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth2"
*****************************************************************************
Backup archivo2
*****************************************************************************
ddns-update-style interim;
authoritative;
# cabina_grande
subnet 192.168.2.0 netmask 255.255.255.0 {
filename "red_angel";
range 192.168.2.1 192.168.2.30;
option domain-name-servers 192.168.1.1;
option routers 192.168.2.100;
option broadcast-address 192.168.2.100;
default-lease-time 3600;
max-lease-time 18000;
}
*****************************************************************************
#Instalacion sudo apt-get install dhcp3-server
#archivo1 /etc/default/dhcp3-server
@archivo2 /etc/dhcp3/dhcpd.conf
#servicio /etc/init.d/dhcp3-server {stop|start|restart}
Backup archivo1
*****************************************************************************
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth2"
*****************************************************************************
Backup archivo2
*****************************************************************************
ddns-update-style interim;
authoritative;
# cabina_grande
subnet 192.168.2.0 netmask 255.255.255.0 {
filename "red_angel";
range 192.168.2.1 192.168.2.30;
option domain-name-servers 192.168.1.1;
option routers 192.168.2.100;
option broadcast-address 192.168.2.100;
default-lease-time 3600;
max-lease-time 18000;
}
*****************************************************************************
1 Empesando a levantar la Interface
Como dice bien claro es hora de Levantar la interface de Red, aqui va la descripcion de mi red
#archivo /et/network/interfaces
#servicio /etc/init.d/networking {stop|start|restart}
Backup
*************************************************************************
# The loopback network interface
auto lo
iface lo inet loopback
#La Targeta de la placa eth0
auto eth0
iface eth1 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.100
#Segunda Targeta de red, la incluida en la placa madre eth1
auto eth2
iface eth2 inet static
address 192.168.0.100
netmask 255.255.255.0
*************************************************************************
#archivo /et/network/interfaces
#servicio /etc/init.d/networking {stop|start|restart}
Backup
*************************************************************************
# The loopback network interface
auto lo
iface lo inet loopback
#La Targeta de la placa eth0
auto eth0
iface eth1 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.100
#Segunda Targeta de red, la incluida en la placa madre eth1
auto eth2
iface eth2 inet static
address 192.168.0.100
netmask 255.255.255.0
*************************************************************************
Empezando a Hacer los BackUp
mmmm despues de un monton de intentos de servidor, xfin resulto un servidor en Ubuntu 8.04 Hardy heron con squid, bind9, dhcp y samba queda claro que aun falta el balanceo de carga y aplicar los QoS al kernel
Comenzemos ...
1 Empesando a levantar la Interface
2 COnfigurando el Sevidor Dhcp
3 Configurando un Iptables Ultrabasico
4 Configurando x fin el proxy-cache Squid
5 Ahora le toca a Bind9, configurando un servidor DNS
6 pendiente: Balanceo de Carga
7 Pendiente QoS
8 Pendiente ANti P2P
6 Seguire agregando Notas segun valla aprendiendo mas ...
Comenzemos ...
1 Empesando a levantar la Interface
2 COnfigurando el Sevidor Dhcp
3 Configurando un Iptables Ultrabasico
4 Configurando x fin el proxy-cache Squid
5 Ahora le toca a Bind9, configurando un servidor DNS
6 pendiente: Balanceo de Carga
7 Pendiente QoS
8 Pendiente ANti P2P
6 Seguire agregando Notas segun valla aprendiendo mas ...
Suscribirse a:
Entradas (Atom)