On Thu, Jun 11, 2015 at 11:06 AM, Thibault LABRUT <[email protected]> wrote: > Hello, > > I’m going to install HA Proxy. > > My architecture is as folows : > - 2 servers in DMZ => reverse proxy (RP) > - 2 servers in LAN => Load balancing (LB) > > Several applications contact RP with different IP adress but with always de > same port. > > With the settings as below the connection is up : > > RP settings > > # Frontend > frontend http_test > bind xx.xx.xx.xx:42 > capture request header Host len 200 > default_backend test > > # Backend > backend test > server srv_ test test.maycompany.local:42 check > > LB settings > > # Frontend > frontend http_test > bind xx.xx.xx.xx:42 > capture request header Host len 200 > default_backend test > > # Backend > backend test > balance roundrobin > server test01 xx.xx.xx.xx:42 check > server test02 xx.xx.xx.xx:42 check > > But in this case the connection is down : > > # Frontend > frontend http_test > bind xx.xx.xx.xx:42 > capture request header Host len 200 > > # ACL > acl acl_test src 12.34.56.78 (IP client) > use_backend test if acl_test > > # Backend > backend test > server srv_ test test.maycompany.local:42 check > > LB settings > > # Frontend > frontend http_test > bind xx.xx.xx.xx:42 > capture request header Host len 200 > > # ACL > acl acl_test src 12.34.56.78 > use_backend test if acl_test > > # Backend > backend test > balance roundrobin > server test01 xx.xx.xx.xx:42 check > server test02 xx.xx.xx.xx:42 check > > Can you say me what is the problem with my settings? > > Best Regards, > > Thibault Labrut.
Hi Thibault, In the second case, you don't have any default backend. So you'll get a 503 unless you are 12.34.56.78. Baptiste

