当前位置:文档之家› Linux系统及网络管理第15章 配置代理服务器

Linux系统及网络管理第15章 配置代理服务器


15.3.8 访问控制列表
1.acl 2.http_access
15.3.9 管理参数
1.cache_mgr 2.cache_effective_user和cache_effective_group 3.visible_hostname
15.3.10 HTTPD加速选项
1.httpd_accel_host和httpd_accel_port 2.httpd_accel_with_proxy 3.httpd_accel_uses_host_header
15.3.4 日志和缓存目录
1.cache_dir 2.cache_access_log 3.cache_log 4.cache_store_log 5.mime_table 6.pid_filename 7.debug_options 8.log_fqdn
15.3.5 外部支持程序选项
1.ftp_user 2.ftp_list_width 3.ftp_passive 4.cache_dns_program 5.dns_children
15.3 squid的配置命令
15.3.1 有关网络的选项
1.http_port 2.https_port 3.icp_port 4.htcp_port 5.udp_incoming_address与udp_outgoing_address
15.3.2 OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION
1.cache_peer 2.cache_peer_domain 3.icp_query_timeout 4.dead_peer_timeout 5.no_cache
15.3.3 定义cache大小的相关选项
1.cache_mem 2.cache_swap_low和cache_swap_high 3.maximum_object_size 4.minimum_object_size 5.maximum_object_size_in_memory
15.4 代理服务器配置实例
Internet
代理服务器(兼 具防火墙功能) ppp0
光纤
ISP
ASL modem eth0 192.168.1.1
汇聚层交换机
接入层交换机
接入层交换机
192.168.1.10
192.168.1.11
192.168.1.12
……
192.168.1.35 192.168.1.36… 192.168.1.100
第15章 配置代理服务器
15.1
代理服务器概述
15.2
安装与配置squid缓存透明代理
15.3
squid的配置命令
15.4
代理服务器配置实例
15.1 代理服务器概述
15.1.1 代理服务器的概念
所谓代理服务器其实就是代表内部 私有网中的客户,去连接请求Internet中 的资源,并将响应的数据返回给客户机 的服务器。
6.dns_timeout 7.dns_nameservers 8.unlinkd_program 9.pinger_program
15.3.6 cache调整配置选项
1.request_header_max_size 2.request_body_max_size 3.refresh_pattern 4.quick_abort_min、quick_abort_max和 quick_abort_pct 5.negative_ttl 6.positive_dns_ttl 7.negative_dns_ttl
15.1.2网络 2.访问代理 3.防止攻击
4.突破限制 5.掩藏身份 6.提高速度 7.起到防火墙的作用 8.方便对用户管理
15.1.4 代理服务器的工作原理
Internet 5 6 1
1
代理服务器主进程
2
7 代理服务器子进程 3
15.3.7 超时设置
1.connect_timeout 2.peer_connect_timeout 3.read_timeout 4.request_timeout 5.persistent_request_timeout
6.client_lifetime 7.half_closed_clients 8.pconn_timeout 9.ident_timeout 10.shutdown_lifetime
终端客户A
5
4
终端客户B 缓存Cache 访问控制列表ACL
代理服务器
图15-1 代理服务器的工作原理
15.1.5 利用网络地址转换实现透明代理
利用网络地址转换(IP地址伪装) 可以实现透明代理企业内网中的用户访 问Internet。
15.2 安装与配置squid缓存透明代理
1.检查是否安装squid软件包 2.修改配置文件,以支持透明代理 3.创建cache目录并设置属主 4.创建cache交换目录 5.启动squid代理服务器
图15-4 局域网透明代理上网
相关主题