我想将默认的 Tor 端口从 9050 更改为 9150。编辑 /etc/tor/torsocks5.conf 我可以看到这些:
TorPort 9050
所以,换成9150,应该可以了吧?它没有。
> sudo vi /etc/tor/torsocks.conf
> sudo cat /etc/tor/torsocks.conf | grep 9150
TorPort 9150
> sudo service tor reload
> sudo service tor restart
> sudo service tor status
● tor.service - Anonymizing overlay network for TCP (multi-instance-master)
Loaded: loaded (/lib/systemd/system/tor.service; enabled; vendor preset: disabled)
Active: active (exited) since Mon 2022-06-27 13:46:11 CEST; 7s ago
Process: 43748 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 43748 (code=exited, status=0/SUCCESS)
CPU: 2ms
Jun 27 13:46:11 kali systemd[1]: Starting Anonymizing overlay network for TCP (multi-instance-master)...
Jun 27 13:46:11 kali systemd[1]: Finished Anonymizing overlay network for TCP (multi-instance-master).
> sudo netstat -tanp | grep tor
tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN 43758/tor
tcp 0 0 192.168.85.139:36538 178.238.236.41:1337 ESTABLISHED 43758/tor
tcp 0 0 192.168.85.139:57824 162.55.131.67:9100 ESTABLISHED 43758/tor
我在做什么错?
您要更改的参数是:
通常这位于
torrc
文件中。