HAProxy community

Frontend configuration limit

#1

How many frontend configuration can be done in haproxy? Is there a limit…? Please help

#2

Hi,We have a requirement that the traffic is originating from our network to our clients and we need certain private IPs to be NATed to certain public IPs. We decided to use HAProxy for this requirement. The implementation plan is that…
We have configured IPtables to NAT the private-publicIP(2 Private IP to a public IP) and installed HAProxy for load balancing the backend IPs but it requires to configure 100 frontends and 100 backends to fulfill this requirement.
i have tested this requirement in gns3.I can see the IPs are being NATed and we can’t test it completely in GNS3.
Please let us know how many frontend/backend section we can configure.
We know HAProxy document says that HAProxy is not for l4 loadbalncing,but we are using HAProxy for long time so we want to HAProxy for this requirement too.Please help…

#3

I have given the sample configuration here.

frontend tcp1_in
mode tcp
bind 10.0.0.1:100-65535
default_backend real1
backend real1
source 0.0.0.0 usesrc clientip
server server1 20.1.1.2
server server2 20.1.1.3
frontend tcp2_in
mode tcp
bind 10.0.0.1:100-65535
default_backend real2
backend real2
source 0.0.0.0 usesrc clientip
server server1 20.1.1.4
server server2 20.1.1.5

like this how many sections i can create… Please help

#4

Anyone can confirm whether there is a limit for front/backend configuration?Please

#5

There is not.

#6

Ok thanks… you mean we can configure hundreds of frontend IPs and backends and thousands of connections can be handled by each frontend and its respective backend IPs right? Please confirm

#7

Yes, that’s what I mean.

#8

Thanks let me try…