个人工具

“UbuntuHelp:Privoxy”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/Privoxy}} {{Languages|UbuntuHelp:Privoxy}} This howto explains how to get Privoxy going. Although the config file is 1075 lines, its worth noting ...)
 
 
(未显示同一用户的1个中间版本)
第2行: 第2行:
 
{{Languages|UbuntuHelp:Privoxy}}
 
{{Languages|UbuntuHelp:Privoxy}}
 
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!!)
 
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 ==
 
== 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. [[UbuntuHelp:DnsmasqPolipoPrivoxy| On this page]] I try and show how to set Privoxy to work with Polipo and Dnsmasq for caching and dns magic as well.
 
Here I'll try and explain how to setup Privoxy as a stand alone proxy on your pc, targeting ads and other junk. [[UbuntuHelp:DnsmasqPolipoPrivoxy| 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
 
Privoxy. First step as ever is to install. Privoxy is in universe, so make sure it is enabled and run these in a terminal
 
<pre><nowiki>
 
<pre><nowiki>
第12行: 第9行:
 
sudo apt-get install privoxy
 
sudo apt-get install privoxy
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Having installed privoxy, we need to edit the config file and make our half a dozen changes. To edit, run
 
Having installed privoxy, we need to edit the config file and make our half a dozen changes. To edit, run
 
<pre><nowiki>
 
<pre><nowiki>
第18行: 第14行:
 
</nowiki></pre>
 
</nowiki></pre>
 
and enter your password.
 
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
 
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.
 
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:
 
well we know what we want, and in my case its this:
第29行: 第22行:
 
(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 :).
 
(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.
 
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!
 
Thats our big change here!
 
save and exit the editor your using, then restart the daemon, and your finished.
 
save and exit the editor your using, then restart the daemon, and your finished.
第35行: 第27行:
 
sudo /etc/init.d/privoxy restart
 
sudo /etc/init.d/privoxy restart
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Well, thats it! ===
 
=== 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.
 
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: ====
 
==== Firefox: ====
 
Open the browser, click Edit -> Preferences.
 
Open the browser, click Edit -> Preferences.
 
Click the 'connection settings' button, and click on 'manual proxy configuration'. In the top field add the following:
 
Click the 'connection settings' button, and click on 'manual proxy configuration'. In the top field add the following:
 
<pre><nowiki>
 
<pre><nowiki>
HTTP Proxy:    192.168.0.1        Port:    8123
+
HTTP Proxy:    192.168.0.1        Port:    8118
 
</nowiki></pre>
 
</nowiki></pre>
 
PS, if you go and [[UbuntuHelp:KarlGoetz/PolipoHowto| set up Polipo]] as well, you will get caching to go with your new more-or-less ad free browsing.
 
PS, if you go and [[UbuntuHelp:KarlGoetz/PolipoHowto| set up Polipo]] as well, you will get caching to go with your new more-or-less ad free browsing.
 
----
 
----
[[category:CategoryDocumentation]]
 
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年5月12日 (二) 18:29的最新版本

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:    8118

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.