I have a working loadbalancing config with balance source and hash-type-consistent for my FTP but isn’t sufficient.
It seems that I’m still getting to much connections from one IP address on one of my FTP servers.
If I can send all of the traffic from one customer with one IP address to one FTP server I should have fixed the issue.
How can I send all traffic to FTP server A and traffic coming from a certain external IP address to server B?
I added the acl to the frontend, but now it fails to start the haproxy service with code=exited, status=1/FAILURE.
Commenting the ACL rules out makes it run again.
These acl rules must be added in the frontend part right?
Alright I found the problem.
use_backend backend ftp-pool-backend-static if forwarding_acl
Removed the extra backend and now it runs.
This config doesn’t send the connections to the servers now even though I got the HAPROXY service running.
Without the backend it works, but with the backend it doesn’t send anything to ftp01 or ftp02 server.
Have I made a mistake in the config?
Got it working.
It seems that the backend part also needs the “mode” part to work.
Added the mode tcp to both backends and it’s now routing correctly. Thanks for the help lukastribus!