- 論壇徽章:
- 0
|
tor 一個好的匿名路由軟件,以后可以不用代理了
你可能象我一樣在google里找到一份好的資料,但發(fā)現(xiàn)該知名網(wǎng)站的鏈接卻是打不開的,比如維基大百科全書?床坏竭@本號稱超過大英百科全書的書真遺憾啊
因為國家出于某些考慮屏蔽了這些網(wǎng)站的訪問能力。http://zh.wikipedia.org/wiki/%E9%A6%96%E9%A1%B5
剛剛我發(fā)現(xiàn)了一個好東東-tor,其手冊這樣說:
About tor:
- tor is a connection-oriented anonymizing communication service. Users choose a source-routed path through a set of nodes, and negotiate a "virtual circuit" through the network, in which each node knows its predecessor and successor, but no others. Traffic flowing down the circuit is unwrapped by a symmetric key at each node, which reveals the downstream node.
- Basically tor provides a distributed network of servers ("onion routers"). Users bounce their TCP streams -- web traffic, ftp, ssh, etc -- around the routers, and recipients, observers, and even the routers themselves have difficulty tracking the source of the stream.
復(fù)制代碼
譯一下如下:
- tor是一種面向連接的匿名通信服務(wù)。用戶端在網(wǎng)絡(luò)上一堆結(jié)點中協(xié)商選擇一條路由,這里面每個結(jié)點都知道它的前承和后繼結(jié)點,但不知道其它的結(jié)點的存在。在這個路由上的數(shù)據(jù)流是通過各結(jié)點之間協(xié)商的對稱密鑰才能解開的。
- tor提供一種基本的網(wǎng)絡(luò)服務(wù)(洋蔥路由),用戶把TCP流(如http,ftp,ssh等協(xié)議流)在路由器、接收端、監(jiān)察者甚至它自己之間來回反彈,這樣使得該數(shù)據(jù)流很難被查到其源頭了。
復(fù)制代碼
關(guān)于:
/*********************************************************************
*filename: tor-一個好的匿名路由軟件,以后可以不用代理了
*purpose: 突破封鎖訪問外網(wǎng)的方法
*wrote by: zhoulifa(zhoulifa@163.com) 周立發(fā)(http://zhoulifa.9999mb.com)
Linux愛好者 Linux知識傳播者 SOHO族 開發(fā)者 最擅長C語言
*date time:2006-07-01 18:40:00
*Note: 任何人可以任意復(fù)制代碼并運用這些文檔,當(dāng)然包括你的商業(yè)用途
* 但請遵循GPL
*Thanks to: 廣東省Linux公共服務(wù)技術(shù)支持中心(GDLC)
*********************************************************************/
怎么樣?是個好東東吧?趕快來試試吧:
第一步:安裝tor,如果是用Debian/Ubuntu,就直接apt-get install tor
第二步:在上一步中會被推薦安裝privoxy和socat另外兩個軟件名,可以都安裝,但這里只有privoxy是必須的,apt-get install privoxy
第三步:編輯/etc/privoxy/config文件,在文件最后面加上一句:
forward-socks4a / localhost:9050 .
[注意]包括最后那個點號.
其實這一行是修改原配置文件里的這一行:
forward-socks4a / socks-gw.example.com:1080 www-cache.example-isp.net:8080
第四步:經(jīng)過上面的步驟,tor就裝好了!打開你的瀏覽器測試一下:編輯->首選項, 選擇連接設(shè)置,選擇手動配置代理,在HTTP代理中填入localhost,端口填8118,再試試上這個網(wǎng)站http://zh.wikipedia.org/wiki/%E9%A6%96%E9%A1%B5
這個軟件有個缺點就是:速度會慢一點(可以想到的,為了避免IP地址被追蹤,每個包都會在網(wǎng)絡(luò)各節(jié)點之間不斷反彈,肯定需要花些時間啦),但總比打不開好一點啦,祝Linux使用者們用得開心!
如果要修改本地監(jiān)聽端口,請修改/etc/tor/torrc文件里的這一行:
SocksPort 9050 # what port to open for local application connections
如果要修改代理端口,請修改/etc/privoxy/config文件里的這一行:
listen-address 127.0.0.1:8118
要能使用軟件,當(dāng)然需要啟動兩個服務(wù),用如下命令:
/etc/init.d/tor start
/etc/init.d/privoxy start
以后任何一個被禁止的網(wǎng)站應(yīng)該都可以訪問了,而且你上網(wǎng)時的IP地址是不斷變化的 :(
[ 本帖最后由 zhoulifa 于 2006-10-19 08:39 編輯 ] |
|