特殊:Badtitle/NS100:Privoxy
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Privoxy }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/af | • {{#if: UbuntuHelp:Privoxy|Afrikaans| [[::Privoxy/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/ar | • {{#if: UbuntuHelp:Privoxy|العربية| [[::Privoxy/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/az | • {{#if: UbuntuHelp:Privoxy|azərbaycanca| [[::Privoxy/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/bcc | • {{#if: UbuntuHelp:Privoxy|جهلسری بلوچی| [[::Privoxy/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/bg | • {{#if: UbuntuHelp:Privoxy|български| [[::Privoxy/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/br | • {{#if: UbuntuHelp:Privoxy|brezhoneg| [[::Privoxy/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/ca | • {{#if: UbuntuHelp:Privoxy|català| [[::Privoxy/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/cs | • {{#if: UbuntuHelp:Privoxy|čeština| [[::Privoxy/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/de | • {{#if: UbuntuHelp:Privoxy|Deutsch| [[::Privoxy/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/el | • {{#if: UbuntuHelp:Privoxy|Ελληνικά| [[::Privoxy/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/es | • {{#if: UbuntuHelp:Privoxy|español| [[::Privoxy/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/fa | • {{#if: UbuntuHelp:Privoxy|فارسی| [[::Privoxy/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/fi | • {{#if: UbuntuHelp:Privoxy|suomi| [[::Privoxy/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/fr | • {{#if: UbuntuHelp:Privoxy|français| [[::Privoxy/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/gu | • {{#if: UbuntuHelp:Privoxy|ગુજરાતી| [[::Privoxy/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/he | • {{#if: UbuntuHelp:Privoxy|עברית| [[::Privoxy/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/hu | • {{#if: UbuntuHelp:Privoxy|magyar| [[::Privoxy/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/id | • {{#if: UbuntuHelp:Privoxy|Bahasa Indonesia| [[::Privoxy/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/it | • {{#if: UbuntuHelp:Privoxy|italiano| [[::Privoxy/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/ja | • {{#if: UbuntuHelp:Privoxy|日本語| [[::Privoxy/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/ko | • {{#if: UbuntuHelp:Privoxy|한국어| [[::Privoxy/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/ksh | • {{#if: UbuntuHelp:Privoxy|Ripoarisch| [[::Privoxy/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/mr | • {{#if: UbuntuHelp:Privoxy|मराठी| [[::Privoxy/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/ms | • {{#if: UbuntuHelp:Privoxy|Bahasa Melayu| [[::Privoxy/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/nl | • {{#if: UbuntuHelp:Privoxy|Nederlands| [[::Privoxy/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/no | • {{#if: UbuntuHelp:Privoxy|norsk| [[::Privoxy/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/oc | • {{#if: UbuntuHelp:Privoxy|occitan| [[::Privoxy/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/pl | • {{#if: UbuntuHelp:Privoxy|polski| [[::Privoxy/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/pt | • {{#if: UbuntuHelp:Privoxy|português| [[::Privoxy/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/ro | • {{#if: UbuntuHelp:Privoxy|română| [[::Privoxy/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/ru | • {{#if: UbuntuHelp:Privoxy|русский| [[::Privoxy/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/si | • {{#if: UbuntuHelp:Privoxy|සිංහල| [[::Privoxy/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/sq | • {{#if: UbuntuHelp:Privoxy|shqip| [[::Privoxy/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/sr | • {{#if: UbuntuHelp:Privoxy|српски / srpski| [[::Privoxy/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/sv | • {{#if: UbuntuHelp:Privoxy|svenska| [[::Privoxy/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/th | • {{#if: UbuntuHelp:Privoxy|ไทย| [[::Privoxy/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/tr | • {{#if: UbuntuHelp:Privoxy|Türkçe| [[::Privoxy/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/vi | • {{#if: UbuntuHelp:Privoxy|Tiếng Việt| [[::Privoxy/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/yue | • {{#if: UbuntuHelp:Privoxy|粵語| [[::Privoxy/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/zh | • {{#if: UbuntuHelp:Privoxy|中文| [[::Privoxy/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/zh-hans | • {{#if: UbuntuHelp:Privoxy|中文(简体)| [[::Privoxy/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Privoxy | UbuntuHelp:Privoxy | {{#if: | :}}Privoxy}}/zh-hant | • {{#if: UbuntuHelp:Privoxy|中文(繁體)| [[::Privoxy/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Privoxy|:Privoxy|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Privoxy/zh | | {{#ifexist: Privoxy/zh | | {{#ifeq: {{#titleparts:Privoxy|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Privoxy|1|-1|}} | zh | | }}
This howto explains how to get Privoxy going. Although the config file is 1075 lines, its worth noting that 1022 of them are comments, and 38 are blank! (And we only edit 1!!)
Setting up privoxy
Here I'll try and explain how to setup Privoxy as a stand alone proxy on your pc, targeting ads and other junk. On this page I try and show how to set Privoxy to work with Polipo and Dnsmasq for caching and dns magic as well.
Privoxy. First step as ever is to install. Privoxy is in universe, so make sure it is enabled and run these in a terminal
sudo apt-get update sudo apt-get install privoxy
Having installed privoxy, we need to edit the config file and make our half a dozen changes. To edit, run
sudo vi /etc/privoxy/config
and enter your password.
You can choose to read the ToC and the Introduction (and of course the descriptions of each option), but if you want to skip that and get to a working proxy, we will do some jumping in the config file
So lets jump to line 661, and see what the option here is - our listening IP address.
well we know what we want, and in my case its this:
listen-address 192.168.0.1:8118
(Your ip will most likely be different). This is the IP address of the ethernet port the computer is running on. This can also be loopback (127.0.0.1) if you dont want to share your advert freeing proxy goodness :). The other part (after the ":") is the port number to listen on - this can be almost anything, but unless you need it moved, its probably best to leave it where it is.
Thats our big change here! save and exit the editor your using, then restart the daemon, and your finished.
sudo /etc/init.d/privoxy restart
Well, thats it!
You should now have a filtering proxy running on the IP and port you just specified. If you want Firefox or some other browser to run through it, you simply change the settings in the browsers configuration.
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 Polipo as well, you will get caching to go with your new more-or-less ad free browsing.