HAProxy - clear/delete Config
-
Dear Sir or Madam,
unfortunately it's impossible to load a simple configuration with haproxy anymore.
I'm not sure if i messed something up so i'm trying to start from the beginning.For demonstration purposes my configuration is as follows:
1. one backend namend b_test
2. one frondend named f_test witch uses b_testpfSense 2.2.4-RELEASE (amd64)
HAProxy RELEASE 0.33Error: Proxy 'f_test': unable to find requied use_backend: 'b_test_https_ipvANY'.
Screenshots:
https://lukatz.de/frontends.png
https://lukatz.de/frontend.png
https://lukatz.de/backend.pngPossible Bug?
My final decision is to delete the haproxy config und start over with a clean configuration.
Deleteing all frontends + backends and uninstalling haproxy didn't help.
How can i revert to default haproxy-configuration?Thank you very much
Lukatz -
Shouldnt the backend have a server defined to send the traffic to.?
-
Yes .. But for demonstration purposes I left it empty.
It has no impact an the error. -
I have tried reproducing your situation, and it seems to be fixable by filling in a server.
Though i used pfSense 2.2.6 and haproxy-1_5 0.33 for the test. That shouldn't make any difference though..Can you add a server, and then check what /var/etc/haproxy_test/haproxy.cfg looks like.? And post its contents here if you keep getting the error?
Mine looks like this:
/var/etc/haproxy.cfg file contents: global maxconn 500 stats socket /tmp/haproxy.socket level admin gid 80 nbproc 1 chroot /tmp/haproxy_chroot daemon stats socket 127.0.0.1:3000 level admin stats socket /tmp/haproxy.adminsocket group admins mode 0020 level admin listen HAProxyLocalStats bind 127.0.0.1:2200 name localstats mode http stats enable stats refresh 5 stats admin if TRUE stats uri /haproxy_stats.php?haproxystats=1 timeout client 5000 timeout connect 5000 timeout server 5000 frontend f_test bind 192.168.0.120:443 name 192.168.0.120:443 mode tcp log global maxconn 100 timeout client 30000 tcp-request inspect-delay 5s acl aclusr_ssl_sni_matches_test.com req.ssl_sni -i test.com tcp-request content accept if { req.ssl_hello_type 1 } use_backend b_test_https_ipvANY if aclusr_ssl_sni_matches_test.com backend b_test_https_ipvANY mode tcp timeout connect 30000 timeout server 30000 retries 3 option httpchk OPTIONS / server test 192.168.0.40:443 check-ssl check inter 1000 verify none
-
You were right! Problem Solved
Thank you so much for your help.