使用TCP/UDP 动态代理, 想实现不限制client ip 或 server ip进行转发,求建议 #8124
Unanswered
chenjinfeng0505
asked this question in
Q&A
Replies: 1 comment 6 replies
-
try
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
背景:使用 TCP/UDP动态代理实现请求转发功能,
规则中有:
server_addr: 接受 Stream Route 连接的 APISIX 服务器的地址。
server_port: 接受 Stream Route 连接的 APISIX 服务器的端口。
remote_addr: 发出请求的客户端地址。
实现目标: 将apisix收到的请求全部转发至指定地址。
问题: 客户端ip不固定,因此不能使用remote_addr来进行转发;
因服务 server ip 会因网元重启发生变更,无法指定server ip来进行转发,(ps: 每次重启后,重新根据新的service ip进行设置,但这种方式仍会造成部分请求的丢失)
请问有没有更好的方式可以不限制client ip 或 service ip 实现请求的转发?(可以限制端口)
Beta Was this translation helpful? Give feedback.
All reactions