V2ray-core: v2ray 是否支持本地客户端输出 http 协议的代理?

Created on 12 Oct 2017  ·  3Comments  ·  Source: v2ray/v2ray-core

提交 Issue 之前请先阅读 Issue 指引,然后回答下面的问题,谢谢。
Please read the instruction and answer the following questions before submitting your issue. Thank you.

1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
What version of V2Ray are you using (If you deploy different version on server and client, please explicitly point out)?

2.4

2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
What's your scenario of using V2Ray? E.g., Watching YouTube videos in Chrome via Socks/VMess proxy.
希望通过 http 结合 pay 做到系统级的全局代理

3) 你看到的不正常的现象是什么?
What did you see? ,想询问怎么配置 http 本地代理

4) 你期待看到的正确表现是怎样的?
What's your expectation?

5) 请附上你的配置文件(提交 Issue 前请隐藏服务器端IP地址)。
Please attach your configuration file (Mask IP addresses before submit this issue).

Server Configuration File(服务器端配置文件):
    // 在这里附上服务器端配置文件
    // Please attach your server configuration file here.
Client Configuration File(客户端配置文件):
    // 在这里附上客户端配置文件
    // Please attach your client configuration file here.

6) 请附上出错时软件输出的日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。
Please attach the log file, especially the bottom lines if the file is large. Log file is usually /var/log/v2ray/error.log on Linux.

Server Log File(服务器端日志):
    // 在这里附上服务器端日志
    // Please attach your server log here.
Client Log File(客户端日志):
    // 在这里附上客户端日志
    // Please attach your client log here.

Most helpful comment

Use the following configure as your "inbound" or put it in the "inboundDetour" list:

{
  "port": 3128,
  "listen": "127.0.0.1",
  "protocol": "http",
  "settings": {
    "timeout": 0
  }
}

Ref:
https://www.v2ray.com/chapter_02/01_overview.html
https://www.v2ray.com/chapter_02/protocols/http.html

All 3 comments

Use the following configure as your "inbound" or put it in the "inboundDetour" list:

{
  "port": 3128,
  "listen": "127.0.0.1",
  "protocol": "http",
  "settings": {
    "timeout": 0
  }
}

Ref:
https://www.v2ray.com/chapter_02/01_overview.html
https://www.v2ray.com/chapter_02/protocols/http.html

明白了,那是否支持通过路由配置,提供 pac?例如 http://127.0.0.1:3128/pac

客户端路由规则变了,pac 就有变化,否则会导致全局都走这个端口。。。

不支持,你需要一个额外的程序

Was this page helpful?
0 / 5 - 0 ratings