AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题

问题[tor](unix)

Martin Hope
aironman
Asked: 2022-06-28 03:51:44 +0800 CST

如何在 Kali 中更改 Tor 端口

  • 0

我想将默认的 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 

我在做什么错?

tor
  • 1 个回答
  • 113 Views
Martin Hope
razer
Asked: 2022-03-13 00:50:40 +0800 CST

关于尾部操作系统和代理链 - 连接被拒绝

  • 0

我一直在尝试在 tails os 4.28 版中运行钱包应用程序,但没有成功。将它与代理链一起使用时出现拒绝错误。作为这里的菜鸟,有人会帮助我让我知道我在这里做错了什么。我在这里包含了终端和代理链配置信息以供参考。

amnesia@amnesia:~/Persistent$ chmod +x Neuron-v0.101.2-x86_64.AppImage
amnesia@amnesia:~/Persistent$ proxychains ./Neuron-v0.101.2-x86_64.AppImage 
ProxyChains-3.1 (http://proxychains.sf.net)
|S-chain|-<>-127.0.0.1:9050-<><>-127.0.0.1:8114-<--denied
06:16:58.553 › Network: connection dropped
|DNS-request| localhost 
|DNS-request| localhost 
|DNS-response| localhost is 127.0.0.1
|S-chain|-<>-127.0.0.1:9050-|DNS-request| localhost 
<><>-127.0.0.1:8114-<--denied
|DNS-response| localhost is 127.0.0.1
|S-chain|-<>-127.0.0.1:9050-<><>-127.0.0.1:8114-|DNS-request| localhost 
<--denied
06:17:00.145 › Network: fail to connect to the network. Is CKB node running?
06:17:00.323 › Network: switched to: {
  id: 'mainnet',
  name: 'default node',
  remote: 'http://localhost:8114',
  genesisHash: '0x92b197aa1fba0f63633922c61c92375c9c074a93e85963554f5499fe1450d0e5',
  type: 0,
  chain: 'ckb'
}
06:17:01.453 › Main window: The main window is ready to show
|DNS-response| localhost is 127.0.0.1
|S-chain|-<>-127.0.0.1:9050-|DNS-request| localhost 
<><>-127.0.0.1:8114-<--denied
|DNS-response| localhost is 127.0.0.1
|S-chain|-<>-127.0.0.1:9050-<><>-127.0.0.1:8114-|DNS-request| localhost 
<--denied
|DNS-response| localhost is 127.0.0.1
|S-chain|-<>-127.0.0.1:9050-<><>-127.0.0.1:8114-<--denied
|DNS-response| localhost is 127.0.0.1
|DNS-request| localhost 
|DNS-request| localhost 
|S-chain|-<>-127.0.0.1:9050-<><>-127.0.0.1:8114-<--denied
06:17:03.705 › CKB: external RPC on default uri not detected, starting bundled CKB node.
06:17:03.707 › CKB: Initializing node...
06:17:03.708 › CKB: init: config file detected, skip ckb init.
06:17:03.708 › CKB: starting node...
06:17:04.116 › CKB: process closed
|DNS-response| localhost is 127.0.0.1
|S-chain|-<>-127.0.0.1:9050-|DNS-request| localhost 
<><>-127.0.0.1:8114-<--denied
|DNS-response| localhost is 127.0.0.1
|S-chain|-<>-127.0.0.1:9050-<><>-127.0.0.1:8114-<--denied
|DNS-request| localhost 
|DNS-response| localhost is 127.0.0.1
|S-chain|-<>-127.0.0.1:9050-<><>-127.0.0.1:8114-|DNS-request| localhost 
<--denied
^C|DNS-response|: localhost does not exist
Aborted

proxychain.config 文件

#dynamic_chain
strict_chain
#random_chain
#chain_len = 2
#quiet_mode
proxy_dns 

# Some timeouts in milliseconds
tcp_read_time_out 15000
tcp_connect_time_out 8000

[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
socks4  127.0.0.1 9050

感谢您在此问题上的任何帮助。

linux tor
  • 1 个回答
  • 183 Views
Martin Hope
Kile Maze
Asked: 2019-12-16 17:23:51 +0800 CST

由于 libevent 无法安装 Tor

  • 0

我正在尝试在 Kali Linux 2019.4 上安装 Tor 并在运行后不断出现以下问题apt-get install tor。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 tor : Depends: libevent-2.0-5 (>= 2.0.10-stable) but it is not installable
       Recommends: tor-geoipdb but it is not going to be installed
       Recommends: torsocks but it is not installable
E: Unable to correct problems, you have held broken packages.

我已经安装了 libevent,如下所示:

libevent-2.1-6/now 2.1.8-stable-4 amd64 [installed,local]
  Asynchronous event notification library

libevent-2.1-7/now 2.1.11-stable-1 amd64 [installed,local]
  Asynchronous event notification library

libevent-core-2.1-7/now 2.1.11-stable-1 amd64 [installed,local]
  Asynchronous event notification library (core)

我不知道如何解决这个问题,所以任何帮助将不胜感激。

kali-linux tor
  • 1 个回答
  • 4029 Views
Martin Hope
Ole Tange
Asked: 2019-05-02 11:50:06 +0800 CST

ssh 配置以“预先设置”torsocks

  • 1

我可以通过以下方式联系我的电话:

torsocks ssh myphone

如果我有这个.ssh/config:

Host myphone
  User u0_a162
  Port 2222
  HostName umqkh75wp2chf5av5esqhtyzedmw4it76dvs7ild2rikbcek6eyqfsqd.onion

我可以以某种方式调整它,.ssh/config以便我可以简单地编写它并运行它:

ssh myphone

我可以以某种方式将其torsocks移入.ssh/config- 可能使用 ProxyCommand 或类似的吗?

ssh tor
  • 1 个回答
  • 199 Views
Martin Hope
Tim
Asked: 2018-11-01 05:51:49 +0800 CST

cron是否修改执行环境,让tor servce不改变出口节点?

  • 0

根据https://unix.stackexchange.com/a/478636/674,cron 修改执行环境来执行作业。

  1. 当我sudo service tor reload直接在 bash 中运行两次时,它总是显示两个不同的 IP 地址

    $ sudo service tor reload; torsocks  curl ipinfo.io/ip; sudo service tor reload; torsocks  curl ipinfo.io/ip
    12.345.678.901
    987.654.321.00
    

    sudo service tor reload最有可能更改出口节点并因此更改公共 IP 地址是否正确?

  2. 但是当我在中创建一个 cron 作业时/etc/cron.d/myjob,

    * * * * * tim (sudo service tor reload; torsocks  curl ipinfo.io/ip; sudo service tor reload; torsocks  curl ipinfo.io/ip) > /tmp/cron.log
    

    每次我检查/tmp/cron.log时,它总是显示两个相同的 IP 地址,尽管 IP 地址因作业而异(当下一个计划的作业覆盖日志时,它会显示两个相同的 IP 地址与覆盖前的两个不相同)。当我sleep 20在两次重新加载之间插入时相同:

    * * * * * tim (sudo service tor reload; torsocks  curl ipinfo.io/ip; sleep 20; sudo service tor reload; torsocks  curl ipinfo.io/ip) > /tmp/cron.log
    

    作为cron作业,为什么sudo service tor reload更改IP地址失败?我怎样才能让它工作?

谢谢。

cron tor
  • 1 个回答
  • 267 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve