yyyar / gobetween

:cloud: Modern & minimalistic load balancer for the Сloud era
http://gobetween.io
Other
1.94k stars 211 forks source link

Using gobetween as a TUN (transparent mode for TCP) load balancer #281

Open dopessoa opened 4 years ago

dopessoa commented 4 years ago

This is a great project and I'm currently testing it for an architecture.

I have a question about a functionality, I will try to trace parallels with IPVS, as it is what I am used to.

From what I saw on the architecture gobetween only supports load balancing as a NAT load balancer.

I would like to know if gobetween support acting as a TUN load balancer, with this I would be able to use Direct Server Return and avoid having gobetween receiving the response from the backends.

Looking at issues on the repo I found about the transparent parameter in UDP protocol, but there is nothing about it in TCP.

Thank you.

nickdoikov commented 4 years ago

Hello, @dopessoa

Hmm, so you are talking about something like DSR mode? Like this, Correct? https://www.haproxy.com/blog/layer-4-load-balancing-direct-server-return-mode/

dopessoa commented 4 years ago

Hi @nickdoikov,

Thank you for your response.

Yes, like that.