Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inbounds为SS时路由未生效 #2639

Closed
steamsv opened this issue Aug 6, 2023 · 1 comment
Closed

inbounds为SS时路由未生效 #2639

steamsv opened this issue Aug 6, 2023 · 1 comment

Comments

@steamsv
Copy link

steamsv commented Aug 6, 2023

以下配置,入口节点为vmess时,路由生效;为SS时路由未生效;IP为示例
服务端配置:

{
    "inbounds": [
        {
            "email": "user10001@v2ray.com",
            "port": 10001,
            "protocol": "shadowsocks",
            "settings": {
                "method": "aes-256-gcm",
                "password": "hvfdghvufgv",
                "network": "tcp,udp"
            }
        },
        {
            "email": "user10002@v2ray.com",
            "port": 10002,
            "protocol": "shadowsocks",
            "settings": {
                "method": "aes-256-gcm",
                "password": "hvfdghvufgv",
                "network": "tcp,udp"
            }
        },
        {
            "email": "user10003@v2ray.com",
            "port": 10003,
            "protocol": "shadowsocks",
            "settings": {
                "method": "aes-256-gcm",
                "password": "hvfdghvufgv",
                "network": "tcp,udp"
            }
        }
    ],
    "log": {
        "access": "none",
        "error": "none",
        "loglevel": "none"
    },
    "outbound": {
        "protocol": "freedom"
    },
    "outboundDetour": [
        {
            "sendThrough": "1.1.1.1",
            "protocol": "freedom",
            "tag": "ip1"
        },
        {
            "sendThrough": "1.1.1.2",
            "protocol": "freedom",
            "tag": "ip2"
        },
        {
            "sendThrough": "1.1.1.3",
            "protocol": "freedom",
            "tag": "ip3"
        }
    ],
    "routing": {
        "domainStrategy": "AsIs",
        "rules": [
            {
                "type": "field",
                "user": [
                    "user10001@v2ray.com"
                ],
                "outboundTag": "ip1"
            },
            {
                "type": "field",
                "user": [
                    "user10002@v2ray.com"
                ],
                "outboundTag": "ip2"
            },
            {
                "type": "field",
                "user": [
                    "user10003@v2ray.com"
                ],
                "outboundTag": "ip3"
            }
        ]
    }
}
@steamsv steamsv closed this as completed Aug 7, 2023
@whale-fall-wh
Copy link

我碰到了一个问题, inbound 配置了Vmess和socks, 对IP和域名分流, socks能正常分流, vmess不行.大哥可以指导一下嘛#2966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants