Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

打造簡便unblock youku路由器(使用openwrt + privoxy) #106

Closed
karlcheong opened this issue Aug 14, 2013 · 113 comments
Closed

打造簡便unblock youku路由器(使用openwrt + privoxy) #106

karlcheong opened this issue Aug 14, 2013 · 113 comments

Comments

@karlcheong
Copy link
Contributor

記得很久前有人就問過 在路由器如何設置Unblock Youku
後來更有一篇教程, 通過squid來達成Unblock Youku功能

對於一般家居用的路由器來說,都是基於MIPS LE(Boardcom)或MIPS BE(Atheros)
unblock youku伺服器使用之Node.js對MIPS支援性很差, 很難用來運行轉發代理
而 squid 倒是可以在家用路由器運行, 不過一來squid設定複雜我不會設, 二來
我正好在 #80 中為了給Android也能解鎖, 用privoxy 運行轉發代理
可以直接把設定搬過來用, 所以這個教程使用的軟件為privoxy

要求:
已安裝OpenWRT系統的路由器

1 SSH進去路由, 然後輸入指令安裝 privoxy
opkg update
opkg install privoxy

2 把規則文件及basicsetting設定文件, 放到 /etc/privoxy

https://github.com/karlcheong/unblock_youku_privoxy_rules

3 輸入指令啟動 privoxy
/etc/init.d/privoxy start

(可選:)輸入指令, 使路由啟動時自動運行 privoxy 代理
/etc/init.d/privoxy enable

4 把要解鎖的裝置設定代理為 路由區域網IP:8123

@karlcheong
Copy link
Contributor Author

unblock youku路由器進階篇, 區域網絡下所有裝置全自動解鎖!

本文是 簡便unblock youku路由器 的進階應用
Dnsmasq DNS + privoxy 路由器反向代理

通過更改DNS返回的IP 把要解鎖url的域名指向privoxy架設的反向代理IP
反向代理再通過國內PROXY把結果回傳給用戶
區域網絡下所有裝置都不需任何設定就可以unblock youku

以下說明比較簡要, 但我想會一點*UNIX的都應該明白

要求:
openwrt系統路由器
本人使用attitude adjustment 12.09

1 SSH進去路由, 然後輸入指令安裝 privoxy

opkg update
opkg install privoxy

2 把規則文件及reverseproxysetting設定文件放到 /etc/privoxy

https://github.com/karlcheong/unblock_youku_privoxy_rules

3 輸入指令啟動 privoxy

/etc/init.d/privoxy start

(可選:)輸入指令, 使路由啟動時自動運行 privoxy 代理

/etc/init.d/privoxy enable

4 修改/etc/init.d/dnsmasq Dnsmasq啟動腳本, 在 第518行 done 的下面加上以下2句
令路由系統不使用本機運行的Dnsmasq DNS伺服器

  rm -f /tmp/resolv.conf
  ln -s /tmp/resolv.conf.auto /tmp/resolv.conf

即是修改成這樣子:

service_start /usr/sbin/dnsmasq -C $CONFIGFILE && {
    rm -f /tmp/resolv.conf
    [ $ADD_LOCAL_DOMAIN -eq 1 ] && [ -n "$DOMAIN" ] && {
        echo "search $DOMAIN" >> /tmp/resolv.conf
    }
    DNS_SERVERS="$DNS_SERVERS 127.0.0.1"
    for DNS_SERVER in $DNS_SERVERS ; do
        echo "nameserver $DNS_SERVER" >> /tmp/resolv.conf
    done
  rm -f /tmp/resolv.conf
  ln -s /tmp/resolv.conf.auto /tmp/resolv.conf

5 打開 /etc/privoxy/basehosts, 把里面的IP 192... 全部替換成你路由器的區域網IP

6 修改 /etc/dnsmasq.conf Dnsmasq設定文件, 加入一行新的設定
令Dnsmasq 讀取basehosts 文件

addn-hosts=/etc/privoxy/basehosts

7 重啟Dnsmasq 即可

/etc/init.d/dnsmasq reload

PS: 如果想限制privoxy只能代理需要解鎖之域名, 不代理其他網站, 請打開 /etc/privoxy/config
把 trustfile trust 前的註釋去掉即可

PPS:
一個有大量使用者的DNS反向代理應該需要2個dnsmasq緩存運行
一個監聽區域網絡的, 用來把特定域名指向反向代理
另一個監聽本機介面, 用來連接特定域名下的其他資源
不然ISP 的DNS 可能會因你DNS請求太多而暫時封鎖你IP。 (除非把連接特定域名的所有流量導向代理)
當初我只運行1個dnsmasq是我認為因為這樣不用分別管理2個dnsmasq的設定, 對於路由器用戶不多的場合更方便也夠用了。

@zhuzhuor
Copy link
Member

@karlcheong 我可以给你提供个 digitalocean 的 vps
如果可能的话你在这个 vps 上弄个 dns 怎么样?我们可以试试看,不过要注意安全问题

另外想到有一些域名下面内容并不是全部都通过代理的,而且代理服务器也有权限控制
不知道你这个是怎么处理的

@karlcheong
Copy link
Contributor Author

@zhuzhuor

權限管制
privoxy可以把web設定介面所有設定開關全部關掉
也可以把設定檔的 templdir 改掉 使web設定介面完全失效
privoxy 沒有basic密碼驗證(but, who need it in a public proxy)
但可以設定acl,指定黑名單, 也可以設定trustfile列表(白名單)

我用privoxy 重點是因為它夠小巧簡單,沒有什么dependencies, 適合個人家庭使用
架在port80 即可當成正向代理也可當作反向代理

至於用在公共反向代理得好好想想會有什么問題
1 privoxy 的URL/trust列表, DNS紀錄得自行維護, 這個還算小事
2 privoxy 沒有cache功能, 要Cache的話得chain一個帶cache的proxy
3 "有一些域名下面内容并不是全部都通过代理的"
因為DNS的限制, 所以反向代理只能把域名下的所有域名都要代理
不然客戶端的web頁面就什么都看不到/error/顯示不完全了

這對VPS的網速/流量要求比pac正向代理的要求高得多
digitalocean 的vps 我看到流量是metered的.. US$5/只有1TB的樣子

ref: http://www.privoxy.org/user-manual/ Privoxy設定說明

@karlcheong
Copy link
Contributor Author

Latest Update:
zhuzhuor 跟我 在架一台DNS + 反向代理伺服器
即將完成...

@simonleungs
Copy link

请教一下,其实 /etc/privoxy 是那里?

@karlcheong
Copy link
Contributor Author

openwrt的檔案系統中的/etc/privoxy, 放privoxy的設定文件的
linux類型的系統的各種設置文件都放在/etc/那里的

@simonleungs 如果你現在有更多問題問的話, 可以給你的即時通信工具/EMAIL地址/facebook/twitter ..等等

@simonleungs
Copy link

谢谢你~可以怎麽找你

@karlcheong
Copy link
Contributor Author

@simonleungs 你有沒有Skype/Facebook/QQ之類的IM號, 有問題問的就給來我加你

@simonleungs
Copy link

skype : simonleungs

@kevinyang9999
Copy link

你好
請問
在 /etc/privoxy
找不到basehosts的文件.
請問是在那裏

@karlcheong
Copy link
Contributor Author

@kevinyang9999
basehosts文件在提供的reverseproxy.7z中
請自行解壓後放到路由中

@kevinyang9999
Copy link

SORRY,現在看到了

再問一下config中
listen-address [::]:80 -->不需要改ip與port嗎
log中錯誤
2013-10-22 23:59:47.352 77d76000 Fatal error: can't bind to :::80: Address family not support
改成 listen-address 192.168.1.1:80
log中錯誤
2013-10-23 00:15:09.722 775b5000 Fatal error: can't bind to 192.168.1.1:80: There may be another Privoxy or some other proxy running on port 80
最後改成192.168.1.1:8123 -->對嗎?
log就沒錯誤了
(把其它設定 proxy:192.168.1.1 port8123)-->對吧?
謝謝囉!
(有把basehosts ip改成路由器ip:192.168.1.1)

@karlcheong
Copy link
Contributor Author

@kevinyang9999
listen-address [::]:80 是同時監聽所有介面IPv4+v6
沒安裝v6的使用listen-address 0.0.0.0:80 監聽所有介面IPv4

而listen-address 192.168.1.1:80
log中錯誤
2013-10-23 00:15:09.722 775b5000 Fatal error: can't bind to 192.168.1.1:80: There may be another Privoxy or some other proxy running on port 80
原因是路由web管理介面預設佔用了port 80
你需要把web管理介面使用的port改掉
attitude adjustment 12.09 預設使用LUCI
去編輯 /etc/config/uhttpd
把list listen_http 0.0.0.0:80 , 80改掉為其他port

要做反向代理的話,有以下地方注意
1 一定要架在port 80, 不然就成了第一個post的正向代理
2 dnsmasq 有載入我付上的hosts文件 (第5步 addn-hosts)
3 DNSmasq的啟動腳本記得修改好 (第4步 令路由器上運行的privoxy不使用本機dnsmasq),
不然就會造成privoxy不斷連接自己的死循環

(最終反向代理效果= android免root免設定代理即可unblock)

@xiozf
Copy link

xiozf commented Oct 26, 2013

请问可以基于privoxy做一个替换优酷土豆奇艺播放器以达到去广告目的规则吗?目前使用替换方法的都是chrome插件或者油猴脚本,IE或不支持油猴脚本的没办法使用。

@karlcheong
Copy link
Contributor Author

@xiozf
你也許可以通過privoxy 的redirect 規則來把swf, xml文件的位置轉向成你自己架設的伺服器
(沒有試過..或許你可以自己試試,
真的要去廣告在windows, linux, mac等桌面系統下還是直接安個firefox/chrome方便)

@zhumingvictor
Copy link

我用tomato, 没有/etc/init.d/ 怎么弄?

@karlcheong
Copy link
Contributor Author

@zhumingvictor
tomato沒玩過, 你只好自己研究下了

@hihitoni
Copy link

你好 第六步我不是很明白

6 修改 /etc/dnsmasq.conf Dnsmasq設定文件, 加入一行新的設定
令Dnsmasq 讀取basehosts 文件
addn-hosts=/etc/privoxy//basehosts

请问 addn-hosts=/etc/privoxy/basehosts 这一行加在dnsmasq.conf 哪一行 可否给个实例文件 谢谢

邮件:hihitonizhou@gmail.com

@karlcheong
Copy link
Contributor Author

@hihitoni
加在最尾就可以了

@hihitoni
Copy link

hihitoni commented Nov 2, 2013

谢谢! 因在国外,源于视频地区得限制而不能观看,太苦B了。支持。

tonizhou

在 2013-11-2,4:32,"karlcheong" notifications@github.com 写道:

@hihitoni
加在最尾就可以了


Reply to this email directly or view it on GitHub.

@shine12
Copy link

shine12 commented Nov 29, 2013

謝謝!

@shine12
Copy link

shine12 commented Nov 30, 2013

請問"進階版"我再WIN7上騰訊的偶而會成功,優酷沒成功過一次,安卓上更慘,優酷APP的列表都看不到,想先問是規則太舊要更新嗎?
基礎版下,把路由IP與8123加到IE中當PROXY有錯誤嗎?因為我加進去就根本不能上網
每個步驟都再三確認了,應該不是都沒架起來吧?除了去看片,怎麼看有成功架起privoxy呢?
感謝回復!!!

@whuhacker
Copy link
Contributor

@karlcheong 今天把路由器刷成 openwrt 試了下你的這個方法,遇到些麻煩,在重啓 DNS 服務的時候有問題,我的手機仍然不能看優酷。
deepinscrot-1814

最後加上的那句 addn-hosts=/etc/privoxy/basehosts 提示 not found,但是在 /etc/privoxy/basehosts 是存在的。不知何解……

@karlcheong
Copy link
Contributor Author

@whuhacker
看樣子你把那句addn-hosts加在dnsmasq啟動腳本里了
那句是加在 /etc/dnsmasq.conf 里的

@shine12
這幾天dns代理出了點問題, 在調整中,
你急用的可以先找個國內代理放到cnforward.action那里
規則是新的沒問題

@whuhacker
Copy link
Contributor

@karlcheong 確實搞錯了,我改回了重啓 DNS 沒問題了。不過又有新狀況

deepinscrot-3514
deepinscrot-3535

訪問其他頁面沒問題,只要是需要代理的頁面就會出現 No such file or directory……

另外我看到你在 cnforward.action 裏寫定了

{+forward-override{forward digito.wlmacao.tk:80}}

是因爲它死掉了嗎?我換成了上面的

{+forward-override{forward h0.edu.bj.ie.sogou.com:80} +sogou-header{Reason}}

也不行

@karlcheong
Copy link
Contributor Author

1 第一次看到的盒子呢..可能是該程式有自己的方法設定proxy (在設定檔里?), 又或者根本不支持proxy?
可以試試ddwrt下使用iptables 把PBO的http流量都強制導入到privoxy

2 4步 是因為 dnsmasq 啟動時, 它的init script會修改 resolv.conf 里的dns 設定到 127.0.0.1 (就是dnsmasq自己).
要是知道你需要使用的DNS的地址, 也可以這樣做: 在 wan up script 加入以下

echo nameserver 8.8.8.8 > /tmp/resolv.conf
echo nameserver 8.8.4.4 >> /tmp/resolv.conf
echo nameserver 4.2.2.1 >> /tmp/resolv.conf
echo nameserver 4.2.2.2 >> /tmp/resolv.conf

wan up script 看 這里
/tmp/resolv.conf 是 dd-wrt resolv.conf的實際位置
8.8.8.8等是想使用的WAN DNS (只需指定一個DNS的話可以去掉其他三行)

@lamplamp
Copy link

lamplamp commented Jul 1, 2014

多谢指点. 我会试一下.

@bebeboy
Copy link

bebeboy commented Jul 7, 2014

http://sports.cntv.cn/live/cctv5/ is not working anymore. Does it correct?

@bebeboy
Copy link

bebeboy commented Jul 11, 2014

Hi karlcheong.

Another question about filter setup. I have tried to filter / skip a div in html with the a filter rule
But this not working, Can you show me some hints ? Thanks in advance.

untitled

@karlcheong
Copy link
Contributor Author

@bebeboy
better to have the link of the page..

@bebeboy
Copy link

bebeboy commented Jul 12, 2014

Let say http://www.yyets.com/ and I want to remove the left advertisement.

I added a filter rule below but it's not working.
untitled

@karlcheong
Copy link
Contributor Author

@bebeboy for removing ads on yyets homepage

actionfile:

{ +filter{yyetsads} +force-text-mode +forward-override{forward .} }
.yyets.com
{ +block{Reason: baiduads} }
#for removing the baidu ads on yyets
res.yyets.com/ads/.*
cpro.baidustatic.com/cpro/ui/.*\.js.*
pos.baidu.com/

filterfile:

FILTER: yyetsads for yyets
s|<div id="floatAD_.*</div>||Usg
s|<div class="games-rec-list">|<div class="games-rec-list" style="display:none;">|g
s|\.ads_partner_list(.*);|.ads_partner_list$1; display:none;|Ug

@bebeboy
Copy link

bebeboy commented Jul 12, 2014

多谢指教。

@leira
Copy link

leira commented Aug 15, 2014

@kukat I use RT-N56U too, until reading the source from https://code.google.com/p/rt-n56u/, I found that the logic adding “nameserver 127.0.0.1” into /etc/resolv.conf was hardcoded in the binary code of /sbin/rc, there is no way to avoid that. The way I solved it, was to rebuild the /etc/resolv.conf file in /etc/storage/started_script.sh, but it also means you lost the capability to change the DNS servers from web GUI.

  1. Add the following lines into /etc/storage/started_script.sh:

echo nameserver 8.8.8.8 > /tmp/resolv.conf
echo nameserver 8.8.4.4 >> /tmp/resolv.conf

  1. save the change by calling:

mtd_storage.sh

  1. reboot to apply the change.

@LogicoZone
Copy link

@karlcheong

I've tried configured everything with reverse proxy settings but still doesn't work. I also tried "http://ipservice.163.com/isFromMainland" to verify on my computer and the return is false. How can I verify if my settings is working? Or at least, to know if it goes through privoxy properly?

I think my question is that all devices do not need configuration? if I don't configure the browser to use the privoxy's port, it doesn't work. How can I make it work w/o configuration change on devices? I'm kind of confused.

More detail. I checked the dnsmasq and it does load the basehosts.

root@OpenWrt:/tmp# dnsmasq -C /var/etc/dnsmasq.conf -d
dnsmasq: started, version 2.71 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC
dnsmasq-dhcp: DHCP, IP range 10.0.1.100 -- 10.0.1.249, lease time 12h
dnsmasq: using local addresses only for domain lan
dnsmasq: reading /tmp/resolv.conf.auto
dnsmasq: using local addresses only for domain lan
dnsmasq: using nameserver 75.75.75.75#53
dnsmasq: using nameserver 75.75.76.76#53
dnsmasq: using nameserver 2001:558:feed::1#53
dnsmasq: using nameserver 2001:558:feed::2#53
dnsmasq: read /etc/hosts - 1 addresses
dnsmasq: read /tmp/hosts/dhcp - 0 addresses
dnsmasq: read /tmp/hosts/odhcpd - 0 addresses
dnsmasq: read /etc/privoxy/basehosts - 93 addresses
dnsmasq-dhcp: read /etc/ethers - 0 addresses

Then I checked the dns resolving from my computer and it does resolve fine to my router local net ip.

Leo-rMBP:~ sliu$ dig ipservice.163.com

; <<>> DiG 9.8.3-P1 <<>> ipservice.163.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32656
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;ipservice.163.com. IN A

;; ANSWER SECTION:
ipservice.163.com. 0 IN A 10.0.1.202

;; Query time: 25 msec
;; SERVER: 10.0.1.202#53(10.0.1.202)
;; WHEN: Sun Sep 14 17:05:57 2014
;; MSG SIZE rcvd: 51

However, I don't see any activity in the privoxy log. It seems it does nothing and the privoxy does listen on port 80 on router. Somehow, request to the privoxy seems not doing anything. Any hints on the problem?

Thanks.

@akpotter
Copy link

akpotter commented Jan 8, 2015

感謝樓主的文章跟 rule, 昨天在家裡的 openwrt 測試 reverse proxy 成功了。
利用這個方法,小米盒子連上 openwrt router 也可以不需要改任何設定,收看 youku 等源的影片。
在安裝的時候遇到一些問題 拋磚引玉一下:

  1. 預設安裝新版 opkg install privoxy 以後,用 /etc/init.d/privoxy start 開看起來會抓到 uci 的 config 而不是 /etc/privoxy/config,後來發現問題以後手動執行 privoxy /etc/privoxy/config 就成功了。
  2. 想要在開機帶起來的話也可以將 "privoxy /etc/privoxy/config" 加入 /etc/rc.local 的 exit 前面行即可。

@bba56k
Copy link

bba56k commented Jan 9, 2015

ddwrt可以吗? 能post一下你的详细步骤吗?
多谢

On Thursday, January 8, 2015, akpotter notifications@github.com wrote:

感謝樓主的文章跟 rule, 昨天在家裡的 openwrt 測試 reverse proxy 成功了。
利用這個方法,小米盒子連上 openwrt router 也可以不需要改任何設定,收看 youku 等源的影片。
在安裝的時候遇到一些問題 拋磚引玉一下:

預設安裝新版 opkg install privoxy 以後,用 /etc/init.d/privoxy start 開看起來會抓到 uci
的 config 而不是 /etc/privoxy/config,後來發現問題以後手動執行 privoxy /etc/privoxy/config
就成功了。
2.

想要在開機帶起來的話也可以將 "privoxy /etc/privoxy/config" 加入 /etc/rc.local 的 exit
前面行即可。


Reply to this email directly or view it on GitHub
#106 (comment)
.

@karlcheong
Copy link
Contributor Author

@bba56k 如果是只改dnsmasq 把特定域名指向我們的代理的話還好,
但想要架設privoxy/其他HTTP代理的話,
ddwrt 的方法會跟openwrt有相當不同。。

相比openwrt,因為ddwrt的系統分區是唯讀的,所以軟件包和設定只能放在路由內置jffs2分區/USB/samba上。
(路由內建jffs2分區空間和USB接口在便宜的路由幾乎沒有,因為系統分區已佔用了大部分空間,而用samba的話還不如把privoxy放到跑samba的機器上運行)
還有DDWRT是沒有預裝opkg管理器的,得手動安裝,比較麻煩也易出問題。

簡單來說,要用ddwrt弄privoxy的話,假設你的路由有足夠內置jffs2空間/USB記憶棒,我會這樣做:
1 安裝opkg,privoxy 和他們的依賴包以及privoxy的rules到jffs2分區,把basehosts也放到jffs2
2 ddwrt中的dnsmasq設定中加入上面的addn-hosts, 還有下面額外設定使它不監聽 lo 本機介面

interface=<你的LAN區域網絡介面編號,一般是br0>
except-interface=lo

3 在boot script 再運行一個 標準設定的 dnsmasq ,只監聽 lo 本機介面

@bba56k
Copy link

bba56k commented Jan 9, 2015

你的openwrt路由器已经自动代理了? 任何连接的客户端都自动走unblock youku? 盒子上,什么也不用设置?

能把你参考的文章链接或者@我一下吗?
我找个openwrt路由试试!

多谢
On Jan 9, 2015 10:49 AM, "karlcheong" notifications@github.com wrote:

如果是只改dnsmasq 把特定域名指向我們的代理的話還好,
但想要架設privoxy/其他HTTP代理的話,
ddwrt 的方法會跟openwrt有相當不同。。

相比openwrt,因為ddwrt的系統分區是唯讀的,所以軟件包和設定只能放在路由內置jffs2分區/USB/samba上。

(路由內建jffs2分區空間和USB接口在便宜的路由幾乎沒有,因為系統分區已佔用了大部分空間,而用samba的話還不如把privoxy放到跑samba的機器上運行)
還有DDWRT是沒有預裝opkg管理器的,得手動安裝,比較麻煩也易出問題。

簡單來說,要用ddwrt弄privoxy的話,假設你的路由有足夠內置jffs2空間/USB記憶棒,我會這樣做:
1 安裝opkg,privoxy 和他們的依賴包以及privoxy的rules到jffs2分區,把dnsmasq的設定也放到jffs2
2 ddwrt中的dnsmasq設定中加入上面的addn-hosts, 還有下面額外設定使它不監聽 lo 本機介面

interface=<你的LAN區域網絡介面編號,一般是br0>
except-interface=lo

3 在boot script 再運行一個 標準設定的 dnsmasq ,只監聽 lo 本機介面


Reply to this email directly or view it on GitHub
#106 (comment)
.

@karlcheong
Copy link
Contributor Author

@bba56k
我因為換了個 11ac 路由, 已經沒在用openwrt了,
現在是用的一個 raspberry pi 在架設 (一個超微型ARM電腦),
設定和192.241那個DNS代理基本一樣, 也是 dnsmasq+privoxy

在上面每一步我都解釋了目的, 所以你也可以通過自己的方法做, 能達成效果就可以
我參考最多的就是
openwrt (opkg) http://wiki.openwrt.org/doc/techref/opkg
, dnsmasq 的 manpage http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
和 privoxy 的config/action/filter manpage http://www.privoxy.org/user-manual/index.html

@biankasyo
Copy link

@kukat 请教下我也是在N56U第三方固件上安装privoxy,但因没有/etc/init.d/privoxy不知如何启动,请问怎么弄好

@whuhacker
Copy link
Contributor

@biankasyo 如果你是用的 OpenWRT 固件,可以使用官方的包管理系统进行安装

opkg update
opkg install privoxy

@biankasyo
Copy link

@whuhacker 多谢指教,本体固件是俄罗斯Padavan编写的改版华硕固件,自行安装entware后,安装privoxy,现已启动成功,已将basicsetting中的config及trust复制到etc/privoxy下,但不知为何8123依旧失败

@bba56k
Copy link

bba56k commented Jan 15, 2015

请问楼主的路由器型号?可以 推荐几款吗? 谢谢
On Jan 8, 2015 1:04 AM, "akpotter" notifications@github.com wrote:

感謝樓主的文章跟 rule, 昨天在家裡的 openwrt 測試 reverse proxy 成功了。
利用這個方法,小米盒子連上 openwrt router 也可以不需要改任何設定,收看 youku 等源的影片。
在安裝的時候遇到一些問題 拋磚引玉一下:

預設安裝新版 opkg install privoxy 以後,用 /etc/init.d/privoxy start 開看起來會抓到 uci
的 config 而不是 /etc/privoxy/config,後來發現問題以後手動執行 privoxy /etc/privoxy/config
就成功了。
2.

想要在開機帶起來的話也可以將 "privoxy /etc/privoxy/config" 加入 /etc/rc.local 的 exit
前面行即可。


Reply to this email directly or view it on GitHub
#106 (comment)
.

@biankasyo
Copy link

之前8123端口无法成功,
是因为自行安装的opt环境路径与basicsetting中的config绝对路径不同导致privoxy启动失败,
在修改config后8123端口方式已成功,
在尝试进阶版时,同样遇到了与之前回复中相同问题因系统不同卡在了第4步,
在Padavan固件中dnsmasq用的是系统/etc/resolv.conf,
因此在 wan up script 启动脚本加入了配置公共DNS,
同时修改了/etc/storage/dnsmasq/dnsmasq.conf的配置文件(etc/dnsmasq.conf重启系统后会被重置),
在其中添加addn-hosts,目前通过http://uku.im/check 检测为true,木有发现其他问题,感谢作者的贡献,
Thank you:)

@ysuolmai
Copy link

ysuolmai commented Jun 9, 2015

貌似YOUKU已经更新了,这个proxy服务器不能用了。unblock youku插件还可以用(最近更新过)。求大神更新啊!

@sbeagle25
Copy link

請問這個方式現在還可以使用嗎
我照步驟做完之後還是無法看

@gmuskie
Copy link

gmuskie commented Nov 27, 2015

Port 80 不能用啊!

3.18. Can I just set Privoxy to use port 80 and thus avoid individual browser configuration?

No, its more complicated than that. This only works with special kinds of proxies known as "intercepting" proxies (see below).

REF: http://www.privoxy.org/faq/configuration.html#PORT-80

@zhyjp
Copy link

zhyjp commented Jan 2, 2016

if you are using version 3.0.23-3, you should change this file /etc/init.d/privoxy line 113,
change privoxy.privoxy to root.root,
this solved my 'not able to listen port 80' issue.

@kenichan
Copy link

能post一下你的详细步骤吗?

@litan1106
Copy link

感謝樓主的文章. 昨天在家裡的 dd-wrt kong arm r7000 运用 entware-ng 測試 reverse proxy 成功了.
请教如何如何屏蔽广告?

@chuyee
Copy link

chuyee commented Oct 15, 2018

请问这个是不是只针对80端口的HTTP, 443的HTTPS可以用吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests