个人工具

UbuntuHelp:Polipo/zh

来自Ubuntu中文

Fei3ban讨论 | 贡献2009年12月10日 (四) 12:30的版本

跳转至: 导航, 搜索


Someone rightly pointed out that i didn't say what the point of the proxy is - <
>A caching proxy can be useful for slow or high latency connections, allowing you to download a file once, but view it multiple times. The images that make up a websites UI, or advertising (unless you remove it) all takes bandwidth to download. In the case of Advertising, for no benefit to you. Polipo even has this funky little option for you: <
># Uncomment this if you have no network: <
># proxyOffline = yes <
>Offline mode!

安装设置polipo

注意:下列设置是假定你设置polipo在一个网关上面,如果你是在一台单独的电脑上,改变设置参数'192.168.0.1'为你的loopback地址,或者你的以太网地址,2者都可以工作.

让我们开始

首先,确认你已设置允许下载universe的包列表的选项,下载polipo.

sudo apt-get update
sudo apt-get install polipo

下载后开始编辑poplip的设置文件.位置在`/etc/polipo/config`,只有2个地方需要设置:所以你应该觉得很高兴:)

# Add your proxy's address/加上你代理的地址
proxyAddress = 192.168.0.1

# Allow from anyone in the 192.168.0.* range to connect to your proxy/允许192.168.0.*范围内联入你的代理.
allowedClients = 192.168.0.0/24

重启服务,完成!

sudo /etc/init.d/polipo restart

现在进行客户端设置!

第一件事- APT.

非常的简单-打开终端

sudo vi /etc/apt/apt.conf

在这个文件里面加上

Acquire::http::Proxy "http://192.168.0.1:8123";

唯一的一行.

Firefox:

打开浏览器点击编辑->选项.点连网设置 ,手动设置代理:

HTTP Proxy:    192.168.0.1        Port:    8123

GNOME:

打开系统-> 选项 -> 网络代理. 点击手动设置代理:

HTTP Proxy:    192.168.0.1        Port:    8123

登出gnome,重新进入,完成设置!