apt install -y tor
# 编辑配置文件
nano /etc/tor/torrc
添加以下配置:
ORPort 9001
ExitRelay 0
RelayBandwidthRate 100 MBytes
RelayBandwidthBurst 200 MBytes
ContactInfo your@email.com
Nickname YourRelayNickname
Log notice file /var/log/tor/notices.log
「ExitRelay 0」明确声明这不是Exit节点,「RelayBandwidthRate」控制贡献的带宽量(根据VPS套餐调整)。
systemctl enable --now tor
# 查看节点状态
cat /var/lib/tor/fingerprint
新节点通常需要3-7天才能被Tor网络充分利用(Guard旗位获取需要更长时间)。