tor的全称是the onion router,是用来保护互联网隐私的一个开源软件。
这篇文章是在debian上安装使用tor代理的过程。
安装
在 debian 上安装 tor 只需要执行一条命令
sudo apt-get install tor
配置
编辑torrc文件
sudo vi /etc/torrc
找到这行,去掉前面#号
#ControlPort 9051
找到这行,去掉前面#号,再把 1 改成 0
#CookieAuthentication 1
重启 tor
sudo /etc/init.d/tor restart
下面是跨机共享代理流量给其他设备,去掉前面#号即可开启
#SocksPort 0.0.0.0:9050
卸载tor
sudo apt remove tor && sudo apt purge tor && sudo apt autoremove