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

对于单端口和端口段混合+多IP的需求,一个配置文件可以解决吗? #123

Closed
odup opened this issue Mar 4, 2024 · 1 comment

Comments

@odup
Copy link

odup commented Mar 4, 2024

1111 => 192.168.1.1:1111
10001-11000 => 192.168.1.1:10001-11000

2222 => 192.168.1.2:2222
20001-21000 => 192.168.1.2:20001-21000

上面这种情况,既有单端口,也有端口段。而且针对多个IP的转发。
我搜了下Issues也没找到在一个配置文件里就能把上面这些配置上的例子。求一个例子。想启用一遍程序,用一个配置文件解决问题。

@zephyrchien
Copy link
Collaborator

在layer4实现的 "端口段转发" 本质都是为每一个端口建立转发。在配置文件中支持 "端口段" 语法会让配置文件变得难理解 #41,维护难度也会增加。因此还是希望用户自行编写脚本,生成配置文件后再由Realm加载。

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