arch連接和配置tor
本文寫現在如何在 clash(mihomo)配置完成之后通過網橋鏈接 tor 網絡
我的環境變量
$ cat /etc/environment
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
#
XDG_SESSION_TYPE=wayland
XDG_CURRENT_DESKTOP=Hyprland
http_proxy="http://127.0.0.1:7890"
https_proxy="http://127.0.0.1:7890"
HTTP_PROXY="http://127.0.0.1:7890"
HTTPS_PROXY="http://127.0.0.1:7890"
all_proxy="socks5://127.0.0.1:7891"
ALL_PROXY="socks5://127.0.0.1:7891"
no_proxy="127.0.0.1,localhost,.local"
NO_PROXY="127.0.0.1,localhost,.local"
需要安裝這些軟件
yay -S tor obfs4proxy
開啟服務:
sudo systemctl enable tor
sudo systemctl start tor
發郵件獲取網橋(我使用 google 郵箱):
收件人: bridges@torproject.org
主題:get transport obfs4
內容:(空)
回信示例:
bridges@torproject.org
附件00:39 (20小時前)
發送至 我
[This is an automated email.]
Here is your bridge:
<你的網橋>
If it doesn't work, you can try this other bridge:
<你的網橋>
If you are using Tor Browser:
1. Choose "? ? Settings ? Tor" to open your Tor settings.
2. In the "Bridges" section, enter your bridge in the "Provide a bridge" field.
If you are using Tails, enter your bridge in the Tor Connection assistant.
If these bridges are not what you need, reply to this email with one of
the following commands in the message body:
get bridges (Request default Tor bridges.)
get ipv6 (Request IPv6 bridges.)
get transport obfs4 (Request obfs4 obfuscated bridges.)
get vanilla (Request unobfuscated Tor bridges.)
編輯這個
nvim /etc/tor/torrc
在最后加上這些:
## 啟用網橋模式
UseBridges 1
## 告訴 Tor 使用 obfs4proxy 進行混淆傳輸
ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy
## 將你從郵件中得到的 Bridge 行粘貼到此處
## 注意,每行前加上 `Bridge ` 關鍵字,如下所示
Bridge <你的網橋>
Bridge <你的網橋>
HTTPSProxy 127.0.0.1:7890
重啟電腦
sudo reboot
使用 torbrowser-launcher 安裝瀏覽器
yay -S torbrowser-launcher
torbrowser-launcher
然后應該會自動開始下載 tor 瀏覽器
用這個命令之后就可以啟動 tor 瀏覽器
瀏覽器需要初始設置:
在 tor 瀏覽器的設置里面:
settings -> connection(左側第五個圖標) ->(滾輪到最下面)Advanced -> Settings -> (點方框打對勾)I use a proxy to access the Internet -> (下拉菜單選擇Proxy type)HTTP/HTTPS -> Address:127.0.0.1 Port:7890 -> OK
然后去上面Bridges里面填入你的網橋:
Add new bridge -> (粘貼你的網橋,只粘貼一個) -> next -> OK
最上面的Tor Network點擊Connect
posted on 2025-01-19 22:48 Nicolette86132 閱讀(160) 評論(0) 收藏 舉報
浙公網安備 33010602011771號