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

请问有无计划增加动态添加路由规则的grpcAPI? #211

Closed
ku3333027 opened this issue Jan 27, 2021 · 10 comments · May be fixed by #412
Closed

请问有无计划增加动态添加路由规则的grpcAPI? #211

ku3333027 opened this issue Jan 27, 2021 · 10 comments · May be fixed by #412
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@ku3333027
Copy link

ku3333027 commented Jan 27, 2021

Shadowsocks都增加了单端口多用户功能,那么是否可以增加一个动态增删routing的api,现有的API只能操作inbound和outbound。

以至于动态控制出口功能实现需要采用在路由中添加多条预设好的规则,用inboundTag和outboundTag来控制路由。

谢谢

例:

{
    "routing": {
        "strategy": "rules",
        "settings": {
            "rules": [{
                    "type": "field",
                    "inboundTag": ["api"],
                    "outboundTag": "api"
                }, {
                    "outboundTag": "1_out",
                    "type": "field",
                    "inboundTag": ["1_in"]
                }, {
                    "outboundTag": "2_out",
                    "type": "field",
                    "inboundTag": ["2_in"]
                }, {
                    "type": "field",
                    "inboundTag": ["3_in"],
                    "outboundTag": "3_out"
                }, {
                    "inboundTag": ["4_in"],
                    "outboundTag": "4_out",
                    "type": "field"
                }
            ]
        }
    },
    "stats": {},
    "log": {
        "loglevel": "debug"
    },
    "api": {
        "services": ["HandlerService", "LoggerService", "StatsService"],
        "tag": "api"
    },
    "policy": {
        "levels": {
            "0": {
                "statsUserUplink": true,
                "statsUserDownlink": true
            },
            "1": {
                "statsUserUplink": true,
                "statsUserDownlink": true
            }
        },
        "system": {
            "statsInboundUplink": true,
            "statsInboundDownlink": true
        }
    },
    "inbounds": [{
            "listen": "0.0.0.0",
            "port": 9998,
            "protocol": "dokodemo-door",
            "settings": {
                "address": "0.0.0.0"
            },
            "tag": "api"
        }
    ],
    "outbounds": []
}

另外吐槽以下v2fly/v2ray-core项目的go mod,项目地址都改为v2fly了,代码里面引用还依旧是v2ray.com的地址,导致go mod 不断重复load 旧版本的包。

@RPRX RPRX added the enhancement New feature or request label Jan 27, 2021
@ghost
Copy link

ghost commented Feb 3, 2021

先敲碗ss单端多用户的api啦

@AkinoKaede
Copy link
Contributor

先敲碗ss单端多用户的api啦

可以试试 #233

@ghost
Copy link

ghost commented Feb 4, 2021

先敲碗ss单端多用户的api啦

可以试试 #233

有bin了吗?我试试

@AkinoKaede
Copy link
Contributor

先敲碗ss单端多用户的api啦

可以试试 #233

有bin了吗?我试试

需要什么架构的?

@ghost
Copy link

ghost commented Feb 4, 2021

@AkinoKaede arm64 amd64皆可

@AkinoKaede
Copy link
Contributor

@NutterChen 系统呢

@ghost
Copy link

ghost commented Feb 4, 2021

@AkinoKaede linux

@ghost
Copy link

ghost commented Feb 5, 2021

@NutterChen 测试了一天 完美

@ku3333027
Copy link
Author

@AkinoKaede 有计划增加吗?

@AkinoKaede AkinoKaede linked a pull request Mar 22, 2021 that will close this issue
@AkinoKaede AkinoKaede added the duplicate This issue or pull request already exists label Mar 22, 2021
@AkinoKaede
Copy link
Contributor

#414

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants