在一台机器上运行paros,从另一台机器上运行paros

时间:2011-02-03 16:30:35

标签: proxy

如何在一台计算机(X)上运行paros代理并从另一台计算机(Y)运行它? 详情:

  • 在X上,在工具/选项/本地代理中,我将地址设置为 “127.0.0.1 192.168.0.2”和192.168.0.2是X的LAN地址。

  • 在X本身,“telnet 127.0.0.1 8080”有效,但是 “telnet 192.168.0.2 8080”失败。

  • 在Y上,“telnet 192.168.0.2 8080”失败。

  • 在X上,我运行了“/etc/init.d/iptables off”,所以我不认为这是一个 防火墙问题。

  • 我可以让paros记录不成功的连接尝试吗?

如果有帮助,我正在使用Fedora 11。我接下来会尝试一个ssh隧道,但它 不应该是必要的吗?

编辑:好的,即使是ssh隧道也无法正常工作。这是我做的:

  • 从Y开始,“ssh -L 8079:X:8080用户@ X”

  • 从Y,“telnet 127.0.0.1 8079”。结果:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
  • 在我执行“ssh”的终端上(在Y上,现在登录到X),我为ssh启用了-vvv,这种情况发生了:
Connection to port 8079 forwarding to 192.168.0.2 port 8080 requested.
debug2: fd 9 setting TCP_NODELAY
debug3: fd 9 is O_NONBLOCK
debug3: fd 9 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 8079 for 192.168.0.2 port 8080, connect from 127.0.0.1 port 64087, nchannels 4
debug3: channel 3: status: The following connections are open:
  #2 client-session (t4 r0 i0/0 o0/0 fd 6/7 cfd -1)
  #3 direct-tcpip: listening port 8079 for 192.168.0.2 port 8080, connect from 127.0.0.1 port 64087 (t3 r-1 i0/0 o0/0 fd 9/9 cfd -1)

debug3: channel 3: close_fds r 9 w 9 e -1 c -1
编辑:我解决了这个问题:

ssh -L 8079:127.0.0.1:8080 user@192.168.0.2
ssh -L 8079:192.168.0.2:8080 user@192.168.0.2

在上面两行中,第一行起作用,第二行起作用。

0 个答案:

没有答案