[go: up one dir, main page]

0% found this document useful (0 votes)
71 views6 pages

Crear DHCPD: # Command Line Options Here DHCPDARGS Eth0

This document provides instructions for configuring a DHCP and Squid proxy server on a CentOS virtual machine. It includes steps to install and configure the DHCP daemon, link the CentOS and Windows VMs, start and stop the DHCP and Squid services, and configure Squid access rules and blocked sites. Configuration files for DHCP, Squid, and blocked sites are also edited.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views6 pages

Crear DHCPD: # Command Line Options Here DHCPDARGS Eth0

This document provides instructions for configuring a DHCP and Squid proxy server on a CentOS virtual machine. It includes steps to install and configure the DHCP daemon, link the CentOS and Windows VMs, start and stop the DHCP and Squid services, and configure Squid access rules and blocked sites. Configuration files for DHCP, Squid, and blocked sites are also edited.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

CREAR DHCPD

[Isaac@localhost ~]$ su
[root@localhost ~]# cd /etc
[root@localhost ~]# gedit dhcpd.conf
[root@localhost ~]# cp p /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample
dhcpd.conf
y (yes)
[root@localhost ~]#gedit dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.176.45.0 netmask 255.255.255.0 {
# --- default gateway
option routers
option subnet-mask
option nis-domain
option domain-name
option domain-name-servers

192.176.45.100;
255.255.255.0;
"domain.org";
"proyecto.com";
192.178.10.30;

option time-offset
-18000;
# Eastern Standard Time
#
option ntp-servers
192.168.1.1;
#
option netbios-name-servers
192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#
option netbios-node-type 2;
range dynamic-bootp 192.176.45.20 192.176.45.30;
default-lease-time 89900;
max-lease-time 179800;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}

[root@localhost etc]# cd sysconfig


[root@localhost sysconfig]# gedit dhcpd

# Command line options here


DHCPDARGS=eth0

Luego configuramos la red. Nos dirigimos a System Administration


Network y colocamos

Le damos OK luego Desactivamos el servicio y lo volvemos a Activar


[root@localhost etc]# cd sysconfig

Para iniciar el servicio DHCPD


[root@localhost etc]# service dhcpd start

Para detener el servicio DHCPD


[root@localhost etc]# service dhcpd stop

Para verificar el estado DHCPD


[root@localhost etc]# service dhcpd status

ENLAZAR LAS 2 MAQUINAS VIRTUALES

Se debe configurar la tarjeta de red, las dos maquinas virtuales (CentOS y


Windows) deben de tener Adaptador de puente.
Luego de esto vamos a: Inicio Ejecutar Escribimos CMD ipconfig
/release ipgonfig /renew y por ultimo comprobamos las IPs ipconfig.

SERVIDOR PROXY SQUID


Para verificar el estado DHCPD

[root@localhost ~]# service dhcpd stop


Shutting down dhcpd:
[root@localhost ~]# nano /etc/squid/squid.conf

OK

acl Prueba src 192.176.45.30/24


acl noway url_regex "/etc/squid/nopermitir"
#
#
#
#
#

TAG: http_access
Allowing or Denying access based on defined access lists
Access to the HTTP port:
http_access allow|deny [!]aclname ...

#Default:
# http_access deny all
#
#Recommended minimum configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
[root@localhost ~]# nano /etc/squid/nopermitir
facebook.com
www.facebook.com
www.ebudy.com
www.myspace.com
[root@localhost ~]# service network restart

[root@localhost ~]# service dhcpd start


Starting dhcpd:
[root@localhost ~]# service squid start
Starting squid: .

OK

OK

CONFIGURAR MAQUINAS VIRTUALES REDES


CentOS

Windows XP

http://es.scribd.com/doc/57835725/DHCP-CENTOS
http://humanliks.wordpress.com/active-directory-windows-server2003/servidores/
http://elmampano.wordpress.com/2011/06/17/manual-de-un-servidor-proxysquid-en-centos-5-4/
http://www.tribulinux.com/tutoriales-como-configurar-red-centos-fedoraredhat.html
http://www.taringa.net/posts/ciencia-educacion/10336632/Servidor-DHCP-enUbuntu.html
http://jgwong.org/writeups/msn.php
http://es.scribd.com/doc/62530360/68/II-CONFIGURACION-DEL-SERVICIOSQUID-EN-CENTOS
http://www.alcancelibre.org/staticpages/index.php/manuales-indice

You might also like