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

增加自定义入站,以及路由规则增加自定义入站 #275

Open
HenTele opened this issue Jan 19, 2025 · 0 comments
Open

增加自定义入站,以及路由规则增加自定义入站 #275

HenTele opened this issue Jan 19, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@HenTele
Copy link
Contributor

HenTele commented Jan 19, 2025

Feature description

场景:

  • 有时候访问到一些不常访问的网站,但是它又没有被路由规则覆盖导致走了默认直连(或者有时候访问一些只允许不允许代理服务器所在国家的IP访问的网站,被匹配进入了代理规则,而导致访问被拒绝)。这个时候,就只能修改并添加规则,然后重启服务后才能正常访问。
  • 目前的homeproxy服务端,默认是让流量经过当前主机发出。比如homeproxy在跳板机时。目前通过homeproxy服务端无法同时:
    • 提供一个端口用于直接通过当前主机直连到出口接口(相当于全局直连)
    • 提供一个端口用于在当前主机直连到二级代理(相当于全局代理)

此时,如果能添加自定义的入站(比如mixed,http,socks。或者shadowsocks,vless之类的可以直接取代原有的服务端),然后将该自定义入站通过inbound的tag,使用路由规则设置为直接走代理,或者直接走直连。就相当于有了全局直连和全局代理的功能。(然后通过各个系统自带的代理设置可以临时切换并访问)

非常希望可以有这么个控制。

sing-box是支持inbound的标签作为路由规则的:
https://sing-box.sagernet.org/configuration/route/rule/#inbound

Expected behavior

No response

Additional information

No response

@HenTele HenTele added the enhancement New feature or request label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant