Giter Site home page Giter Site logo

Comments (7)

zfl9 avatar zfl9 commented on May 13, 2024

你的意思是 -> "ss-tproxy 是否可以在 虚拟机 上运行" 吗?如果是,我的回答是:当然可以,我本人就是这么做的!

from ss-tproxy.

jockerxlj avatar jockerxlj commented on May 13, 2024

我现在是这样的情况,我在我其中一台VM上部署了ss-tproxy之后,在这台vm可以访问google了,但是我其他的vm通过设置export http_proxy https_proxy指向那台ss-tproxy vm仍无法访问成功google,我还需要做什么额外的设置么?

from ss-tproxy.

zfl9 avatar zfl9 commented on May 13, 2024

是在 VMware 上的 VM 吗

from ss-tproxy.

zfl9 avatar zfl9 commented on May 13, 2024

export http_proxy=xxx https_proxy=xxx不适合 ss-tproxy。你应该将网关指向部署了 ss-tproxy 的 VM

from ss-tproxy.

jockerxlj avatar jockerxlj commented on May 13, 2024

在openstack上的虚拟机,我之前使用的方案是ss-local + polipo(将socks协议转成http的程序),然后其他虚拟机通过export http_proxy https_proxy进行指向就可以代理成功,但是这样有一个问题,就是如果我访问一些内网的ip比如 192.168.1.66 它也会走proxy,所以我就试了ss-tproxy。但是现在proxy可以访问google,但是其他vm访问不了了

from ss-tproxy.

jockerxlj avatar jockerxlj commented on May 13, 2024

那台做proxy的vm(假设ip:192.168.1.10/24)跟我其他vm是现在是在同一个子网的,他们默认路由都指向了集群的网关(假设192.168.1.1),我现在要修改其他vm上的默认路由让他指向(192.168.1.10)么?修改默认网关可能会断网所以没有试过。

from ss-tproxy.

zfl9 avatar zfl9 commented on May 13, 2024

了解了,我感觉可以在其他 VM 上利用 iptables 规则,TCP 数据包被 DNAT 至部署了 ss-tproxy 的VM的 ss-redir 上,UDP (DNS除外)做 iptables-TPROXY 至部署了 ss-tproxy 的 VM 的 ss-redir 上。最后将 DNS 指向部署了的 VM 的 53 端口(即 dnsforwarder)

当然这只是我的想法,要实地测试才知道

from ss-tproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.