在配置代理服务器时,若设置代理服务器的工作缓存为64MB,配置行应为()。
第1题:
关于代理服务器的论述,正确的是()。
A.使用internet上已有的公开代理服务器,只需配置客户端
B.代理服务器只能代理客户端http的请求
C.设置好的代理服务器可以被网络上任何主机使用
D.使用代理服务器的客户端没有自己的ip地址
第2题:
目前代理服务器使用的软件包有很多种,教材中使用的是 squid 。
第3题:
代理服务器需要几块网卡?网络参数如何配置?
第4题:
阅读以下说明,回答问题1~5,将答案填入答题纸对应的 解答栏內。
[说明]
某公司有一个局域网,在ISP申请了Internet接入,接入方式是以太网,ISP分配给了一个固定的IP地址为222.152.199.33、子网掩码为255.255.255.252、默认网关为222.152.199.34、DNS为202.102.192.68。该公司有两台服务器,一台PC服务器S1作为代理服务器实现整个公司上网,代理服务器的操作系统是Linux,代理软件是squid;另一台PC服务器S2安装了DHCP服务,为内部客户机动态分配IP地址,拓扑图如下图所示。
下面分别是服务器S1的代理服务配置文件/etc/squid/squid.conf和服务器S2的DHCP服务配置文件/etc/dhcpd.conf的主要内容。
[s1的/etc/squid/squid.conf文件的主要内容]
http_port 8080
cache mere 194 MB
cache dir/home/squid/cache 4000 24 33
cache access log/usr/local/squid/logs/access.log
cache log /usr/local/squid/logs/cache.log
dns nameservers (2)
acl denydomain dstdomain foo.com.tw
acl all scr 0.0.0.0/0.0.0.0
http access deny denydomain
http access allow all
cache_mgr netsnake@263.net
[S2服务器/etc/dhcpd.conf文件的主要内容]
subnet 192.168.1.0 netmask 255.255.255.0{
range (3) ;
default-lease-time 86400;
max-lease-time 604800;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
option domain-name-servers 202.102.192.68;
}
(1)处该填写什么内容?
第5题:
内部局域网中,客户机通过代理服务器访问Internet的连接方式如图2-1所示,在Windows操作系统中,(69)软件不能提供代理服务器功能。地址为 192.168.1.100的客户机配置“TCP/IP网络属性”时,其中“网关”的设置内容应是(70)。该客户机访问Internet时,经由代理服务器后数据包的源地址为(71)。
A.IIS
B.ISA
C.WinGate
D.SyGate
第6题:
代理服务器外网卡的部分网络参数配置如图5-10所示。在图5-10所示的配置界面中,子网掩码应设置为(5),默认网关应设置为(6)。
第7题:
阅读以下说明,回答问题1~6,将答案填入对应的解答栏内。
某公司有一个局域网,在ISP申请了Internet接入,接入方式是以太网,ISP分配给了一个固定的IP地址为222.152.199.33、子网掩码为255.255.255.252、默认网关为222.1 52.199.34、DNS为202.102.192.68。该公司有两台服务器,一台PC服务器S1作为代理服务器实现整个公司上网,代理服务器的操作系统是Linux,代理软件是squid;另一台PC服务器S2安装了DHCP服务,为内部客户机动态分配IP地址,拓扑图如图2-1所示
下面分别是服务器S1的代理服务配置文件/etc/squid/squid.conf和服务器S2的DHCP服务配置文件/etc/dhcpd.conf主要内容。
S1的/etc/squid/squid.conf文件的内容节选:
http_port 8080
cache_mem 194 MB
cache_dir/home/squid/cache 40 00 24 33
cache_access_log/usr/local/squid/logs/access.log
cache_log/usr/local/squid/logs/cache.log
dns_nameservers (2)
acl denydomain dstdomain foo.com.tw
acl all scr 0.0.0.0/0.0.0.0
http_access deny denydomain
http_access allow all
cache mgr netsnake@263.net
S2服务器/etc/dhcpd.conf文件的主要内容:
subnet 192.168.1.0 netmask 255.255.255.0 {
range (3) ;
default-lease-time 86400;
max-lease-time 604800;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
option domain-name-servers 202.102.192.68;
}
图2-1中(1)处该填写_____。
第8题:
内部局域网中,客户机通过代理服务器访问Internet的连接方式如丁图所示,在 Windows操作系统中,以下(53)软件不能提供代理服务器功能。若代理服务器与 ISP采用点到点通信方式,则代理服务器上p地址为220.110.10.1的网卡配置“TCP/IP网络属性”时,其“网关”应设置为(54);IP地址为192.168.0.1的网卡配置“TCP/IP网络属性”时,其“子网掩码”应设置为(55)。
A.IIS
B.ISA
C.WinGate
D.SysGate
第9题:
A. acl src 192.168.4.0/24
B. acl –net 192.168.4.0/255.255.255.0 deny
C. acl BlockLan src 192.168.4.0/255.255.255.0http_access deny BlockLan
D. acl BlockLan src 192.168.4.0/24http_access deny BlockLan
第10题:
A.cache 64MB
B.cache_dirufs/usr/local/squid/cache10000 16 256
C.cache_mgr64MB
D.cache_mem64MB