特殊:Badtitle/NS100:Polipo:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第21行: | 第21行: | ||
Its also worth noting that theres lots of other options to play with, and you should feel free. these are just the 2 you need to change to get going. | Its also worth noting that theres lots of other options to play with, and you should feel free. these are just the 2 you need to change to get going. | ||
<pre><nowiki> | <pre><nowiki> | ||
# Add your proxy's address | # Add your proxy's address | ||
proxyAddress = 192.168.0.1 | proxyAddress = 192.168.0.1 | ||
# Allow from anyone in the 192.168.0.* range to connect to your proxy | # Allow from anyone in the 192.168.0.* range to connect to your proxy | ||
allowedClients = 192.168.0.0/24 | allowedClients = 192.168.0.0/24 |
2007年12月6日 (四) 10:50的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Polipo }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/af | • {{#if: UbuntuHelp:Polipo|Afrikaans| [[::Polipo/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/ar | • {{#if: UbuntuHelp:Polipo|العربية| [[::Polipo/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/az | • {{#if: UbuntuHelp:Polipo|azərbaycanca| [[::Polipo/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/bcc | • {{#if: UbuntuHelp:Polipo|جهلسری بلوچی| [[::Polipo/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/bg | • {{#if: UbuntuHelp:Polipo|български| [[::Polipo/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/br | • {{#if: UbuntuHelp:Polipo|brezhoneg| [[::Polipo/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/ca | • {{#if: UbuntuHelp:Polipo|català| [[::Polipo/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/cs | • {{#if: UbuntuHelp:Polipo|čeština| [[::Polipo/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/de | • {{#if: UbuntuHelp:Polipo|Deutsch| [[::Polipo/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/el | • {{#if: UbuntuHelp:Polipo|Ελληνικά| [[::Polipo/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/es | • {{#if: UbuntuHelp:Polipo|español| [[::Polipo/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/fa | • {{#if: UbuntuHelp:Polipo|فارسی| [[::Polipo/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/fi | • {{#if: UbuntuHelp:Polipo|suomi| [[::Polipo/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/fr | • {{#if: UbuntuHelp:Polipo|français| [[::Polipo/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/gu | • {{#if: UbuntuHelp:Polipo|ગુજરાતી| [[::Polipo/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/he | • {{#if: UbuntuHelp:Polipo|עברית| [[::Polipo/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/hu | • {{#if: UbuntuHelp:Polipo|magyar| [[::Polipo/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/id | • {{#if: UbuntuHelp:Polipo|Bahasa Indonesia| [[::Polipo/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/it | • {{#if: UbuntuHelp:Polipo|italiano| [[::Polipo/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/ja | • {{#if: UbuntuHelp:Polipo|日本語| [[::Polipo/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/ko | • {{#if: UbuntuHelp:Polipo|한국어| [[::Polipo/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/ksh | • {{#if: UbuntuHelp:Polipo|Ripoarisch| [[::Polipo/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/mr | • {{#if: UbuntuHelp:Polipo|मराठी| [[::Polipo/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/ms | • {{#if: UbuntuHelp:Polipo|Bahasa Melayu| [[::Polipo/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/nl | • {{#if: UbuntuHelp:Polipo|Nederlands| [[::Polipo/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/no | • {{#if: UbuntuHelp:Polipo|norsk| [[::Polipo/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/oc | • {{#if: UbuntuHelp:Polipo|occitan| [[::Polipo/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/pl | • {{#if: UbuntuHelp:Polipo|polski| [[::Polipo/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/pt | • {{#if: UbuntuHelp:Polipo|português| [[::Polipo/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/ro | • {{#if: UbuntuHelp:Polipo|română| [[::Polipo/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/ru | • {{#if: UbuntuHelp:Polipo|русский| [[::Polipo/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/si | • {{#if: UbuntuHelp:Polipo|සිංහල| [[::Polipo/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/sq | • {{#if: UbuntuHelp:Polipo|shqip| [[::Polipo/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/sr | • {{#if: UbuntuHelp:Polipo|српски / srpski| [[::Polipo/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/sv | • {{#if: UbuntuHelp:Polipo|svenska| [[::Polipo/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/th | • {{#if: UbuntuHelp:Polipo|ไทย| [[::Polipo/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/tr | • {{#if: UbuntuHelp:Polipo|Türkçe| [[::Polipo/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/vi | • {{#if: UbuntuHelp:Polipo|Tiếng Việt| [[::Polipo/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/yue | • {{#if: UbuntuHelp:Polipo|粵語| [[::Polipo/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/zh | • {{#if: UbuntuHelp:Polipo|中文| [[::Polipo/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/zh-hans | • {{#if: UbuntuHelp:Polipo|中文(简体)| [[::Polipo/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Polipo | UbuntuHelp:Polipo | {{#if: | :}}Polipo}}/zh-hant | • {{#if: UbuntuHelp:Polipo|中文(繁體)| [[::Polipo/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Polipo|:Polipo|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Polipo/zh | | {{#ifexist: Polipo/zh | | {{#ifeq: {{#titleparts:Polipo|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Polipo|1|-1|}} | zh | | }}
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!
Installing and setting up polipo
Misc notes: When I say "vi", feel free to use any other editor instead (such as emacs or nano). For a GUI editor, run gksu gedit or kdesu kate. This assumes your setting polipo up for use on a gateway- if your setting it up on a stand alone pc, change all references to `192.168.0.1` to your loopback ip, or your ethernet ports ip (either will work).
Lets get started
First, start out by making sure you have universe enabled, up to date package lists and downloading the polipo package (it has no dependancies).
sudo apt-get update sudo apt-get install polipo
Now to edit the polipo config file. This is found in `/etc/polipo/config`, and by default is the only file there to configure. Now I'm going to list the required changes to the config file - all 2 of them!. Remember to customise these as required :). Its also worth noting that theres lots of other options to play with, and you should feel free. these are just the 2 you need to change to get going.
# Add your proxy's address proxyAddress = 192.168.0.1 # Allow from anyone in the 192.168.0.* range to connect to your proxy allowedClients = 192.168.0.0/24
Restart the service, and we are done!
sudo /etc/init.d/polipo restart
Now for client config!
First things first - APT.
This one is stupidly easy - Open a terminal, and type the following (it creates a blank file)
sudo vi /etc/apt/apt.conf
In the file, add
Acquire::http::Proxy "http://192.168.0.1:8123";
as the only line.
Firefox:
Open the browser, click Edit -> Preferences. Click the 'connection settings' button, and click on 'manual proxy configuration'. In the top field add the following:
HTTP Proxy: 192.168.0.1 Port: 8123
PS, if you go and set up privoxy as well, this port is changed. One step at a time though!
GNOME:
Click System -> Preferences -> network proxy. Click Manual proxy configuration, and put in the same details as above :
HTTP Proxy: 192.168.0.1 Port: 8123
Log out and in to apply GNOME settings, and your done!