Internet Technologies 简明教程
Proxy Server
Overview
Proxy server 是客户端和互联网之间的中介服务器。代理服务器提供以下基本功能:
Proxy server is an intermediary server between client and the internet. Proxy servers offers the following basic functionalities:
-
Firewall and network data filtering.
-
Network connection sharing
-
Data caching
Purpose of Proxy Servers
使用代理服务器的原因如下:
Following are the reasons to use proxy servers:
-
Monitoring and Filtering
-
Improving performance
-
Translation
-
Accessing services anonymously
-
Security
Monitoring and Filtering
代理服务器允许我们进行多种过滤,例如:
Proxy servers allow us to do several kind of filtering such as:
-
Content Filtering
-
Filtering encrypted data
-
Bypass filters
-
Logging and eavesdropping
Improving performance
它通过从缓存(先前由客户端发出的请求中保存)中检索内容的服务来加快服务速度。
It fasten the service by process of retrieving content from the cache which was saved when previous request was made by the client.
Translation
它通过排除源内容或用原始本地内容替换源内容来帮助为本地用户自定义源站点。在此过程中,全球用户的流量将通过翻译代理路由到源网站。
It helps to customize the source site for local users by excluding source content or substituting source content with original local content. In this the traffic from the global users is routed to the source website through Translation proxy.
Type of Proxies
下表简要描述了代理服务器的类型:
Following table briefly describes the type of proxies:
Forward Proxies
在这种情况下,客户端会要求其内部网络服务器转发至互联网。
In this the client requests its internal network server to forward to the internet.
Architecture
代理服务器架构分为若干模块,如下面的图表所示:
The proxy server architecture is divided into several modules as shown in the following diagram:
Proxy user interface
此模块控制和管理用户界面,并向最终用户提供一个易用的图形界面、窗口和菜单。此菜单提供以下功能:
This module controls and manages the user interface and provides an easy to use graphical interface, window and a menu to the end user. This menu offers the following functionalities:
-
Start proxy
-
Stop proxy
-
Exit
-
Blocking URL
-
Blocking client
-
Manage log
-
Manage cache
-
Modify configuration
Proxy server listener
这是端口,用于侦听来自客户端浏览器的请求。此模块还可执行给定用户列表内的客户端的封锁。
It is the port where new request from the client browser is listened. This module also performs blocking of clients from the list given by the user.
Connection Manager
此模块包含代理服务器的主要功能。它执行下列功能:
It contains the main functionality of the proxy server. It performs the following functions:
-
It contains the main functionality of the proxy server. It performs the following functions:
-
Read request from header of the client.
-
Parse the URL and determine whether the URL is blocked or not.
-
Generate connection to the web server.
-
Read the reply from the web server.
-
If no copy of page is found in the cache then download the page from web server else will check its last modified date from the reply header and accordingly will read from the cache or server from the web.
-
Then it will also check whether caching is allowed or not and accordingly will cache the page.
Cache Manager
此模块负责在高速缓存中存储、删除、清除和搜索网页。
This module is responsible for storing, deleting, clearing and searching of web pages in the cache.