-
因为刚出了portMap功能,所以尝试精简转发的配置,原先配置是:一个inbound监听一个端口,分配一个tag,在路由当中根据inboundtag分流到不同outbound。目标是将分流到相同outbound的inbound合并成一个监听多端口,根据portMap确定转发地址,路由继续根据inboundtag分流。但是目前发现这种方法行不通,多端口情况下rules当中使用inboundtag无法正确分流。 |
Beta Was this translation helpful? Give feedback.
Answered by
RPRX
Aug 4, 2025
Replies: 1 comment 2 replies
-
匹配 inbound tag 的基础上匹配目标 ip/port 就行了, 所以路由代码应当加上对 localPort、localIP 的匹配,还有那个 source 应当改名 sourceIP @Fangliding @patterniha
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
RPRX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
匹配 inbound tag 的基础上匹配目标 ip/port 就行了,
除非它俩也分别相同且你就是要走不同的 outbound所以路由代码应当加上对 localPort、localIP 的匹配,还有那个 source 应当改名 sourceIP @Fangliding @patterniha
于是路由中最没用的两项是:sourcePort 和 localIP