Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Practica 9 - Proxy
Practica 9 - Proxy
FACULTAD DE INGENIERA
INGENIERA ELECTRNICA Y TELECOMUNICACIONES
PRCTICA 7:
SERVIDOR PROXY
PRE-CONFIGURACIN WEB SERVER (10.0.0.16)
SERVER WEB 10.0.0.16 (SERVER)
COPIAR LA CARPETA IMPACTO VISUAL A /var/www/html/
(Solicitar la carpeta al docente)
INICIAR LOS SERVICIOS
# service httpd start
VERIFICAR EN EL NAVEGADOR
http:sys16/impactovisual/
Para que se ejecute normalmente y se pueda visualizar las imgenes del directorio impactovisual
tenemos modificar los permisos a todos los directorios de impacto visual, as como sus subdirectorios.
# reboot
- 51 -
# Default:
http_port 3128
#INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#Example rule allowing access from your local networks.
#Adapt list your internal IP network
#from where browsing should be allowed
acl our_networks src 10.0.0.0/8
- 52 -
# tail f /var/log/squid/access_log
- 53 -
RESTRICCIN DE DOMINIOS
#INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#example rule allowing access from your local networks. adapt
#to list your internal IP network from where browsing should
#be allowed
#Rogelito
acl our_networks src 10.0.0.0/8
acl porno dstdom_regex /etc/squid/porno.txt
- 54 -
AUTENTIFICACIN DE USUARIOS
#locate ncsa_auth
/usr/lib/squid/ncsa_auth
/usr/share/man/man8/ncsa_auth.8.gz
EN SQUID.CONF
#auth_param digest realm Squid proxy-caching web server
#auth_param digest nonce_garbage_interval 5 minutes
#auth_param digest nonce_max_duration 30 minutes
#auth_param digest nonce_max_count 50
auth_param basic program /usr/lib64/squid/ncsa_auth
/etc/squid/passwd auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
- 55 -
#INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#example rule allowing access from your local networks. adapt
#to list your internal IP network from where browsing should
#be allowed
#Rogelito
acl our_networks src 10.0.0.0/8
acl porno dstdom_regex /etc/squid/porno.txt
acl all_users proxy_auth REQUIRED
AUTENTICACIN DE USUARIOS
#locate htpasswd
/usr/bin/htpasswd
/usr/bin/ruby/1.8/webrick/httpauth/htpasswd.rb
/usr/share/man/man1/htpasswd.1.gz
/var/www/manual/programs/htpasswd.html
- 56 -
#more /etc/squid/passwd
- 58 -
CAMBIO DE IDIOMA
EN SQUID.CONF
error_directory /usr/share/squid/errors/Spanish
#service squid restart
EN MOZILLA FIREFOX
Configurar el navegador agregando la opcin CONFIGURACIN MANUAL DEL PROXY:
10.0.0.16 PUERTO: 3128
- 59 -
PROXY
- 60 -