Code Monkey home page Code Monkey logo

Comments (9)

bdbai avatar bdbai commented on August 22, 2024

为什么不直接在宿主环境运行 xray 呢?

有试过给上游服务器加一个 Direct 规则吗?

from maple.

chise0713 avatar chise0713 commented on August 22, 2024

为什么不直接在宿主环境运行 xray 呢?

不知道为什么在虚拟机下xray的延迟会明显降低

有试过给上游服务器加一个 Direct 规则吗?

没试过,具体该怎么做

from maple.

bdbai avatar bdbai commented on August 22, 2024

没试过,具体该怎么做

取决于你的上游代理服务器地址类型,在 Maple 配置文件的 [Rule] 区域开头加上

IP-CIDR, 114.51.4.191/32, Direct

DOMAIN, my.proxy.server.com, Direct

其中 114.51.4.191my.proxy.server.com 分别是代理服务器的 IP 和域名。

from maple.

chise0713 avatar chise0713 commented on August 22, 2024
[General]
loglevel = error
tun = auto
dns-server = 8.8.8.8, 1.1.1.1, 223.5.5.5, 114.114.114.114

[Proxy]
# Define your proxy server here
server1 = ss, 192.168.1.10, 65530, encrypt-method=aes-256-gcm, password=1145141919
Direct =direct
[Rule]
# `server1` refers to one of the defined proxy server
FINAL, server1
IP-CIDR, 1145:1419:1981:09f:54ff:fff:ffff:233/64, Direct

我这样加了一个直连的地址,但是没效果,是leaf不支持ipv6的rule设置吗,还是说我哪设置错了。

from maple.

bdbai avatar bdbai commented on August 22, 2024

@KoinuDayo /64 换成 /128

from maple.

chise0713 avatar chise0713 commented on August 22, 2024

@KoinuDayo /64 换成 /128

结果一样,没效果。我/64是在终端ip addr里复制的

from maple.

bdbai avatar bdbai commented on August 22, 2024

想了一下,现在 Leaf 的出站接口是统一指定的,普通的 conf 配置应该很难做到不同出站走不同接口。或许你可以试试给虚拟机配一个 external switch,然后让 xray 绑定到物理接口?

from maple.

chise0713 avatar chise0713 commented on August 22, 2024

想了一下,现在 Leaf 的出站接口是统一指定的,普通的 conf 配置应该很难做到不同出站走不同接口。或许你可以试试给虚拟机配一个 external switch,然后让 xray 绑定到物理接口?

不知道为什么,我的hyper-v管理器不允许我再创建一个switch。
我想了想还是给xray设置个socks5入站然后再用windows的系统代理进行代理吧,之前系统代理不能代理虚拟机折腾我半天,最后还是回到系统代理

from maple.

chise0713 avatar chise0713 commented on August 22, 2024

没试过,具体该怎么做

取决于你的上游代理服务器地址类型,在 Maple 配置文件的 [Rule] 区域开头加上

IP-CIDR, 114.51.4.191/32, Direct

DOMAIN, my.proxy.server.com, Direct

其中 114.51.4.191my.proxy.server.com 分别是代理服务器的 IP 和域名。

这两天闲着没事又去试了下,果然是leaf的问题,指定ipv6 rule都无效(也可能是我的问题
不过如果真是leaf的话可以去那开个issue了

from maple.

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.