Questions tagged [haproxy]

HAProxy is an open source, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. It is particularly suited for web sites crawling under very high loads while needing persistence or Layer7 processing.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

HAProxy cannot bind socket :4443

I'm trying to add a new port for forwarding to HAProxy but whenever I try to restart the service with the new configuration I get the error haproxy-systemd-wrapper[32276]: [ALERT] 092/112955 (32277) :...
0
votes
0answers
33 views

ERROR smtpserver: Socket to hostname (x.x.x.x) closed remotely. java.net.SocketException: Connection reset

Haproxy smtpchk is flooding errors in smtpservers.log. The option “option smtpchk” in the (haproxy.cfg) SMTP backend is causing the below error at every check. ERROR smtpserver: Socket to hostname (x....
0
votes
0answers
26 views

HTTP/2 Server Push from Apache behind HAProxy

I'am wondering if it is possible to use the HTTP/2 Server Push feature behind HAProxy. HAProxy 2.+ supports HTTP/2 at frontend and backend. I have created an simple setup to test it, as far as i can ...
0
votes
1answer
43 views

How to access a virtual server on a host from remote host

Support I have a host A with ip 9.21.118.35, in this host there exists a virtual server with ip 192.168.130.11 and virtual server expose port 31666. Then I want to connect to virtual server (192.168....
0
votes
0answers
10 views

How to split haproxy to 3 server

i have 2 haproxies haproxy.cfg and haproxy_1.cfg so for haproxy_1.cfg: i want to split 3 servers to equally weight so i set the weight to: server serv1 IP:Port weight 2 check inter 2000 fall 3 ...
0
votes
0answers
23 views

HighAvailability with HAProxy, Keepalived and Lightsail Static IP

I'm trying to configure a High Availability setup utilizing HAProxy, Keepalived and AWS Lightsail. I have configured everything to the point where if I manually switch the location of the IP, ...
0
votes
0answers
26 views

Remove parameters from URL haproxy 1.5 when connecting to backend - Using reqrep to strip URL paramters

I have a service that runs on port 10000, which should be fronted by haproxy. I'm changing the urls, but the structure looks like this: localhost:10000/testbutton/?test=test However, we have ...
0
votes
2answers
33 views

active/active load balancer in linux? [closed]

we have 2 haproxy servers in an active passive (keepalived) setup forwarding to a couple apache backends. The load has increased and I'm searching for an active active load balancer solution. Is there ...
0
votes
0answers
30 views

haproxy: Can I annotate an IP whitelist file?

In my "/etc/haproxy/haproxy.cfg" file, I specify a whitelist file that contains IP addresses that are permitted to access a frontend. frontend default-frontend <snip> tcp-request ...
0
votes
0answers
42 views

Reverse proxy using haproxy redirection of node-red dashboard

I have multiple node-red servers running behind a HAProxy reverse proxy which runs as apart of a pfSense box. I want to access different node-red instances by accessing the pfSense box at different ...
0
votes
0answers
21 views

nginx redirect fails if behind haproxy with tcp mode (wrong port is added to url) [duplicate]

Hi I'm using haproxy as reverse proxy in tcp mode with different backends depending on the SNI headers: The config looks like: # simplified version of ssl_sni front end # the real config checks sni ...
0
votes
1answer
26 views

Number of connections per client in L4 vs. L7 Load balancing

I am reading the faq for HAProxy. It mentions that the layer 4 connection is established between the client and the server. And in the next section, the layer 7 load-balancer acts as a proxy, ...
0
votes
0answers
9 views

In haproxy config file, is it possible to block/up a server just by conditions, not by creating a new backend?

I have only one backend: backend only server app1 ... server app2 ... server app3 ... server app4 ... Can haproxy activate/disbable the fourth server per some conditions? for example,...
0
votes
0answers
13 views

High avaibilty openstack port duplicate?

I have follow this book: https://docs.huihoo.com/openstack/docs.openstack.org/ha-guide/HAGuide.pdf And also the docs from openstack: https://docs.openstack.org/ha-guide/control-plane-stateless.html ...
0
votes
0answers
11 views

Haproxy path_reg compare number?

The paths are like this: https://example.com/10001/5235723gdh.jpg https://example.com/10007/836789370md.jpg We want to extract the number and compare. I tried with acl image1 path_reg \/[0-...
0
votes
0answers
17 views

HAProxy behind AWS API Gateway

I have a problem regarding using HAProxy behind AWS API Gateway. The current setup is as follows: AWS API Gateway with custom domain name is used to unify several services to one URL. The services ...
0
votes
1answer
31 views

In haproxy, what’t the ACL rule to check whether a server is up and running or not?

In the file /etc/haproxy/haproxy.cfg, How can we determine if a server is running or shutdown to be used in some conditions?
0
votes
1answer
33 views

How to remove DNS Resolution in Haproxy

I have got in a situation where hosts mentioned in the haproxy are resolved into it's ip and sends the request. But in host's server, where they have configured to receive request only with the host ...
0
votes
0answers
16 views

IP Masquerading using HAProxy

I currently have a solution that works well for doing NAT. Destination --------+-------- Source IP:Port (172.22.0.42:443) | ...
0
votes
0answers
60 views

HAproxy forward proxy with SSL termination

Problem: Iam trying to build a forward proxy with ssl termination, further it upstreams to my proxy servers eg: TOR. My upstream proxy services are non-https. Client -> Network-Haproxy -> Uptstream-...
0
votes
0answers
19 views

block all png request with haproxy

Hi so i have been trying all images through haproxy for certain reasons so i tried using http-request deny option but that only works for http request for me so i added this to my haproxy frontend ...
0
votes
0answers
29 views

How to config SSL certificate for Jira and Confluence by HAProxy?

Using HAProxy version: 2.1.3 I did setting in the /etc/haproxy/haproxy.cfg file: frontend jira.mysite.com # bind :::8080 v4v6 bind :::443 v4v6 ssl crt /home/user/ssl/server.pem http-...
0
votes
1answer
40 views

HAProxy logging TCP traffic in syslog

i'm trying to configure my HAProxy to log more information than just saying "proxy backend_xx started" and it looks like i am failing to understand how it works. my HAProxy is a pure TCP LB (just ...
0
votes
1answer
100 views

HAproxy Use backup server with active servers in one backend

I'm struggling with a scenario that I've searched and read so much but couldn't find anything to solve it. I have 3 servers, 2 actives and one as a standby(backup). every time one of active servers go ...
0
votes
1answer
23 views

HAProxy `SSL handshake failure` when proxing request from another server

I'm trying to proxy HTTP requests from one server to another - both are running HAProxy. I have the backend defined from the originating server as: backend site100 option redispatch ...
1
vote
1answer
48 views

haproxy not using full server resources for ssl offload

i have a haproxy setup on a virtual machine using kvm with 8 cores and 4Gb of memory. i,m using it as a load balancer with SSL offloading(with verify required). the server has a load average of 1.7 ...
1
vote
0answers
20 views

Problems proxy requests to multiple backends with http2, “connection coalescing”, connection reuse in google chrome

We are looking for a way to use http2, one proxy with SSL termination and multiple different backends for different subdomains. I found this explanation of the problem and I am looking for solutions ...
0
votes
1answer
13 views

Docker flow proxy multiple domains forwarding

I am running multiple redmine instances over docker where the web requests are handled with docker flow proxy ACL's so that every ACL is performing the link between the name of the running docker ...
0
votes
1answer
21 views

Haproxy 1.8 redirect confusion

I need some help with my redirects, currently i can the following domains: http://example.com http://www.example.com http://example.net http://www.example.net These need to redirect to secure: ...
0
votes
0answers
16 views

HAProxy. Can I use parameter cpu-map without nbproc?

I'm doing configuration HAproxy with CentOS 7. So, I tried to follow the offical tutorial In that tutorial, they used both params nbproc and cpu-map #This is placed in the global section of the ...
0
votes
0answers
14 views

How to respond with “410 Gone” for specific URLs

For SEO reasons I want to return "410 Gone" for some specific URLs which I will match using path_beg or path_sub. I've tried the following: frontend foo mode http bind :80 # 1) this ...
0
votes
0answers
12 views

HAProxy, Nginx or Python sleep before passing query if url does not contain “=appName”

We would like to slow down calls that are made without the right format, using either HAProxy or nGinX. We would like to detect if the URL contains &appName= and if it doesn't, redirect it to a ...
0
votes
0answers
43 views

haproxy & LDAP Backend with old SSL/ciphers

I try to use haproxy to proxy requests to an old LDAP server with really outdated SSL/ciphers .. but ldapsearch always returns an error: ldap_result: Can't contact LDAP server (-1) Here is my ...
0
votes
1answer
113 views

Install HAProxy 2 on Centos 7

Where can I find official documentation on HAproxy 2x installation documentation for Centos 7? $ yum install haproxy $ haproxy -v HA-Proxy version 1.5.18 2016/05/10 Copyright 2000-2016 Willy Tarreau &...
0
votes
0answers
50 views

High Traffic Server Configuration - Are We Doing It Wrong?

We have a REST API server with 25 million calls each day. Our stack consists of Haproxy + Gunicorn + Flask also we have a MongoDB database that's used by our Rest API. We monitor it with Netdata and ...
1
vote
1answer
91 views

haproxy tls1.0 to tls1.3 proxy

I have a very old application on prem that can only talk tls1.0 and I need to talk to a internet site on tls1.3. Can I use HAProxy to configure my local listener to listen on https tls 1.0 and ...
1
vote
1answer
56 views

HAProxy - Need to add a URL parameter to ACL to differentiate between services with the same URL, but on different ports

I have several services that run on different ports, each of which use the same URI paths. For example: New York Housing Service 127.0.0.1:8080/homes 127.0.0.1:8080/prices Las Vegas Housing Service ...
0
votes
1answer
66 views

HAProxy ACL to multiple backend ports not working

I'm trying to set up haproxy to navigate between the multiple applications running on the same server. If my understanding is correct, I should be able to use ACL rules in the frontend to switch ...
0
votes
1answer
77 views

HAProxy rejecting connections with low resource usage

I'm having issues with my haproxy servers rejecting new connections (or timing them out) after a certain threshold. The proxy servers are AWS c5.large EC2's with 2 cpus and 4GB of ram. The same ...
0
votes
1answer
20 views

Consul template, consul and HaProxy setup with springboot applications in docker containers

Can someone tell me how to configure HaProxy config and consul-template to fill the config file automatically? How do we configure consul-template? How do the HaProxy config file and consul-template ...
0
votes
0answers
59 views

HaProxy Configuration Error

I have 2 springboot applications running on ports 9000 and 9001. I have also run HaProxy using a docker container. My config file is as follows: global defaults mode http timeout connect ...
0
votes
1answer
119 views

HAProxy reports that servers-http and servers-https is down. Does not start

I'm trying to setup haproxy for the first time, and it has been giving me a lot of trouble. Right now, when I call the haproxy file in the /etc/init.d folder to start it up, I get the following: $ ./...
1
vote
0answers
33 views

Ubuntu 18.04 as a reverse proxy server and NAT box

I'm setting up a system made of application and database servers all running on a private LAN. The application servers are accessed through HTTP Nginx reverse proxy server and the database servers are ...
0
votes
0answers
52 views

HAProxy for Jira can't show static files

When using haproxy set load balancer for Jira, made config file /etc/haproxy/haproxy.cfg as: frontend jira bind :::8080 v4v6 # acl url_static path_beg -i /static /images /...
0
votes
0answers
23 views

How to redirect public IP to DNS using HAproxy

My stack: Ubuntu 18.04 HA-Proxy version 2.0.12 How can I redirect the server public IP address to my domain. When someone type the IP: 100.200.300.400 - I want to redirect them to my domain.com. ...
0
votes
2answers
61 views

Does HAProxy support multiple subdomains within one server?

I currently have a structure with an Apache 2 server with multiple subdomains. As the example below: <VirtualHost *:80> ServerName www.example.com ServerAlias example.com DocumentRoot /var/...
0
votes
0answers
33 views

How does HAProxy Data Plane API ensure consistency across instances?

The HAProxy Data Plane API is an executable (details on GitHub here) that runs alongside HAProxy and provides a REST API that can be used to configure HAProxy whilst it is running, therefore providing ...
0
votes
0answers
25 views

How to set server for haproxy with IPv6 format?

I hided real IPv6 addresses in this question. I set a backend config in /etc/haproxy/haproxy.cfg: # ... frontend app bind *:8000 default_backend app backend app balance ...
0
votes
0answers
29 views

HAPROXY Append Query Parameter in URL

I've been searching around for an example of creating a rule on specific url, by appending/adding a query string, example: http://www.website.com/foo/bar/index?query1=123 to http://www.website.com/...
0
votes
1answer
46 views

HAProxy is not balancing to the correct server

I'm balancing 3 fronts with HAProxy, but I want to use always the same backend/server with a specific subdomain (admin.mysite.com). HAProxy is not terminating SSL (I was told this is not good, is ...

1
2 3 4 5
37