HAproxy in PROXY mode and data connection fails #565
-
|
Hi, I seem to be unable to configure both pieces of the puzzle correctly: haproxy.cfg, the proxy has the IP 172.16.29.101: The backend IP address is later updated via the haproxy stats socket. libunftp code: the server has the IP 172.16.31.93 The client has the IP 172.16.2.137. The connection goes through to the libunftp server, but the data connection fails. The client sees correctly the IP of the HAproxy in the PASV reply: but then no connection can be established. The logfile tells me something weird: it says it tries to bind on the IP address of the HAproxy and not its own: Why is the libunftp daemon then trying to listen on the haproxy IP? What am I doing wrong here? Michael. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
I think the message was misleading. It just tells, that this connection info was sent out to the client. There are actual data packets flowing through to libunftp, but only 3 packets or so. Then everything stops. I have no idea, what's going on. I had that working without proxy mode without problems. |
Beta Was this translation helpful? Give feedback.
-
|
The issue was solely on my side. Here is what happened: I prepared the haproxy to distribute the load across many backend containers, so I went with a haproxy config with
So I left it unset which worked for the normal non-PROXY-protocol mode, as the high-port data connections are left untouched and routed through to the backend. I configure the backends using the stats socket of haproxy, issuing a |
Beta Was this translation helpful? Give feedback.
-
|
Ah nice to hear! And do you then do some source ip based hashing for the routing rules? |
Beta Was this translation helpful? Give feedback.
The issue was solely on my side. Here is what happened:
I prepared the haproxy to distribute the load across many backend containers, so I went with a haproxy config with
server-templates. In those templates, the documentation states:So I left it unset which worked for the normal non-PROXY-protocol mode, as the high-port data connections are left untouched and routed through to the backend. I …