个人工具
登录
查看“UbuntuHelp:Privoxy”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Privoxy”的源代码
来自Ubuntu中文
←
UbuntuHelp:Privoxy
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{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 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. [[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 <pre><nowiki> sudo apt-get update sudo apt-get install privoxy </nowiki></pre> Having installed privoxy, we need to edit the config file and make our half a dozen changes. To edit, run <pre><nowiki> sudo vi /etc/privoxy/config </nowiki></pre> 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: <pre><nowiki> listen-address 192.168.0.1:8118 </nowiki></pre> (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. <pre><nowiki> sudo /etc/init.d/privoxy restart </nowiki></pre> === 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: <pre><nowiki> HTTP Proxy: 192.168.0.1 Port: 8118 </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. ---- [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Privoxy
。