Score:0

How to use DSR load balnce from two different network?

um flag

I have a server (A) which clients connect to it throw internet and its ip is 195.45.10.2 it route trafic to server (B) and its ip is 85.10 20.2 . So now I want to use some thing like dsr to let server b directly send packets to clients. Client send to A and A send to B then B respons to client directly. So it is needed to request packets from A to B have client ip address as source and then response packets from B to client have server A ip address as source ip address.

Score:0
pe flag

You should be fine with using DSR mode for that scenario, as long as:

Server A has direct network access to Server B i.e. at least one interface on the same subnet.

And Server B has direct access to respond to the client over the Internet via any valid route.

However I just checked and NGINX only seems to support UDP mode for DSR and not TCP? https://www.nginx.com/blog/ip-transparency-direct-server-return-nginx-plus-transparent-proxy/

LVS supports it just fine and we've been using it for years: http://www.linuxvirtualserver.org/ https://www.loadbalancer.org/blog/layer-4-vs-layer-7-load-balancing-we-still-love-dsr/

Ehsan Hosseini avatar
um flag
As I searched I can use l3dsr for this problem. Because my 2 servers are in different subnets. But I did not find any step by step tutorial to setup l3dsr . So if somebody know about it I will approtiate him
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.