Questions tagged [haproxy]

HAProxy is a load-balancer, to spread out requests between web servers.

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

can't get haproxy to work

I have a server with three existing exit nodes: Exit CryptoStorm (located in Paris), Exit Mullvad (also in Paris, France), and Exit NordVPN (in Amsterdam, Netherlands). My application is running ...
prince royce's user avatar
2 votes
0 answers
226 views

Add timezone to HAProxy logs

I have a HAProxy (2.2.9) running on an Debian 11 machine and I would like to add the timezone to the HAProxy logs like Apache has: [25/Jul/2023:14:27:40 +0200]. I have found that I can use the log-...
Mr. Diba's user avatar
  • 390
0 votes
0 answers
55 views

HAProxy redirection on 2 ports on same server

I've two docker instances (app & api) and I want to split the flows between frontend & Backend with haproxy. I've tried the following so based on url after failing to use hdr_beg flag. ...
admstg's user avatar
  • 684
0 votes
1 answer
162 views

Adding SSL certificates to HAProxy with certbot

I am trying to configure my Nginx server to act as my primary load balancer. I have done the necessary package installation with certbot but the problem comes in when I try to configure my haproxy.cfg ...
Santagotthejuice's user avatar
0 votes
0 answers
76 views

haproxy SSL termination not working for login-page to nginx backend

I have nginx pods running inside K8 on port:18080 exposed on nodePort:32070 Next I have an HAPROXY sitting between nginx and public network. I want to configure SSL termination at haproxy level Below ...
Sollosa's user avatar
  • 1,929
0 votes
1 answer
183 views

HAProxy over Tomcat returns Error 403

I have an old server which runs a Tomcat service on port 8080. For various reasons (including securing the access from clients) I had to set up a HAProxy server in front of it, secured with a SSL ...
dr_'s user avatar
  • 29.7k
0 votes
0 answers
41 views

centos 7 haproxy.service stop sometimes

l’m on centos 7 with cpanel & WHM, i have haproxy binded to port 80 thats workings fine, every day at a random time the haproxy stops so i have to start the service again (service enabled). please ...
GhostSt94's user avatar
0 votes
1 answer
386 views

What hostname to put in main.cf for self-hosted postfix, behind HAProxy?

Pfsense (HAproxy as reverse proxy)—->Unraid I run postfix on Debian Bullseye VM (under Unraid) on my home server. It is up and running. I can send the mail out but can’t receive any incoming mail. ...
bthoven's user avatar
0 votes
1 answer
7k views

kubectl connection issues on Ubuntu 22.04LTS with Kubernetes 1.26.0

I have installed kubeadm, kubelet and kubectl using sudo apt install command, and they are all version 1.26.0. I use Ubuntu 22.04LTS machine. I just wanted to test and use Kubernetes on my local ...
best_of_man's user avatar
1 vote
1 answer
463 views

Run Haproxy 2.6.7 as service on CentOS 9

I want to run HAProxy 2.6.7 on my CentOS 9. I have downloaded and compiled the project with USE_SYSTEMD flag enabled and installed the compiled file. Here are the commands I have used: make TARGET=...
kavehmb2000's user avatar
4 votes
1 answer
1k views

How to redirect rsyslog messges from a specific unix socket to a different log file without duplication?

I have been trying to implement separate logging for haproxy. But I end up with duplicate logging and can't separate logs based on the input socket or facility alone. My sample configuration in ...
GP92's user avatar
  • 815
0 votes
1 answer
901 views

haproxy: command not found

I am trying to use haproxy on linux. I installed it using sudo apt install haproxy but after install is complete when I run haproxy -vv i get error haproxy: command not found. I tried running sudo ...
seriously's user avatar
  • 113
0 votes
1 answer
890 views

Where does each of my local facilities logs to in Unix?

I was using local0 facility to log info in HAProxy. What I don't understand is in which file each of my facilities (local0 ... local7) logs to?
Himanshuman's user avatar
0 votes
1 answer
3k views

HAPROXY traffic logs not logging in /var/log/haproxy.log

I have below configuration in /etc/haproxy/haproxy.cfg # Example configuration for a possible web application. See the # full configuration options online. # # http://haproxy.1wt.eu/download/1.4/...
vijaykumar nemannavar's user avatar
0 votes
1 answer
94 views

Does the "offical" HAProxy ingress controller provide drain support?

We're exploring using the "offical" HARoxy ingress controller (https://www.haproxy.com/documentation/kubernetes/latest/) and require traffic to continue to be sent to a pod that is in a ...
user3546411's user avatar
0 votes
0 answers
423 views

Getting rsyslog to fwd to Splunk from Ubuntu .20.04

So I've got an Ubuntu 20.04 LTS server setup with Haproxy and I'm trying to fwd log info to Splunk Cloud. I have the Haproxy.cfg with a Global entry: log 127.0.0.1 local4 And I've got an entry in /...
Skeer's user avatar
  • 53
0 votes
0 answers
1k views

HAproxy + Transparent Squid configuration

I tried configuring squid to be a transparent proxy and then connecting it to a HAProxy load balancing server on CentOS 7. My squid configuration is this: http_access allow localnet http_access allow ...
Gwynn's user avatar
  • 41
0 votes
0 answers
507 views

kex_exchange_identification error: Git behind Reverse Proxy

Not really sure where to go here. I'm stuck. I've got a git repository (call it hostname Git) running on a local VM that I can access locally via [email protected], I can have my router forward any port to ...
The Kaese's user avatar
  • 101
1 vote
1 answer
492 views

Where is a mistake in HAProxy configuration?

I have a problem with HAProxy configuration. I have several backend servers and in most cases, redirections are being done correctly. It works everywhere except one backend, where Rocket.Chat is ...
BrejSki's user avatar
  • 31
0 votes
1 answer
446 views

Haproxy: replace any active failing server with backup

My haproxy configuration is like this: backend my-liveBackend timeout connect 5s timeout server 600s mode http balance uri len 52 server my-live-backend1 10.80.1.161:8080 ...
Gui13's user avatar
  • 168
1 vote
1 answer
3k views

Why is HAProxy forwarding HTTP2 requests as HTTP 1.1?

I'm trying to configure a load balancer between 2 servers with HAPoxy, this is my configuration: frontend haproxynode bind *:443 ssl crt /etc/ssl/private/isel.pem alpn h2,http/1.1 mode tcp ...
Rodrigo Pina's user avatar
1 vote
1 answer
2k views

Docker: Restricting inbound and outbound traffic using iptables

We have lot of applications that run on Linux server using Docker. As an example, let us say my application runs on ServerA as a container (Docker). CONTAINER ID IMAGE ...
Koshur's user avatar
  • 1,359
0 votes
1 answer
2k views

haproxy SSL Load balancer empty response

my haproxy.cfg global maxconn 50000 defaults timeout connect 10s timeout client 30s timeout server 30s log global mode http option httplog maxconn 3000 frontend bravo ...
Nasir Mahmood 's user avatar
1 vote
0 answers
510 views

Proxy tomcat with haproxy

I am trying to proxy tomcat with haproxy. Tomcat and haproxy are dockerized inside containers gis-web & web-gateway (both are added to docker bridge network) I added sample.war app to webapps ...
Goran's user avatar
  • 111
0 votes
1 answer
2k views

How can I access the web console of CodeReady Containers, installed on CentOS Docker container, from Host machine?

I have this scenario: a HOST machine running Debian that runs docker containers. a CentOS docker container that have CodeReady Containers (CRC) installed on itself. CRC working on the container, via ...
Kambei's user avatar
  • 161
1 vote
1 answer
421 views

How to define OpenVPN network in haproxy ACLs

I would like to define OpenVpn network in haproxy ACLs. OpenVPN server and haproxy is running on the same server (X.X.X.X/32). It is possible to set up in haproxy to allow requests only from the ...
Zili's user avatar
  • 121
3 votes
1 answer
977 views

Cannot access haproxy stats socket with systemd

I am trying to disable a haproxy frontend from a systemd service in Debian 9 (haproxy 1.7.5-2). The default config sets up admin access via a unix socket at /run/haproxy/admin.sock so I use socat (1....
some-guy's user avatar
0 votes
1 answer
58 views

Filtering Apache log for errors codes

Suppose I have a Apache/Haproxy log: Jan 28 15:45:18 lict haproxy[48318]: 103.133.5.14:52243 [28/Jan/2020:15:45:08.730] LICT_front~ LICT_back/web2 9320/0/0/212/9532 302 556 - - --VN 24/24/4/1/0 0/0 "...
desertSniper87's user avatar
0 votes
0 answers
140 views

Make https request with HAProxy without explicitly mentioning certificates?

Why? Some app started making annoying authentication verification that work with the region. Every time I travel, and I login from another country, I have to go through a very annoying process of ...
The Quantum Physicist's user avatar
0 votes
1 answer
2k views

Haproxy seems to not send logs to 127.0.0.1:514 despite configuration

Edit: the actual problem ended up being either the local0 vs local2 distinction and the rsyslog end of deal. I'm building a kubernetes / openshift cluster, and on front of that, I need to set up a L4 ...
Tommi Tuura's user avatar
1 vote
0 answers
734 views

DNS round-robin and keepalived

I'm experimenting with a pair of HAProxy servers in an HA load balancing configuration. What I'd like to do is get a pair of IP addresses to put in a DNS round-robin, and have keepalived maintain one ...
dafydd's user avatar
  • 1,458
0 votes
1 answer
313 views

HAproxy + Varnish Cache configuration

need some help here. I have HAProxy that's load balancing 2 servers. HAProxy - 192.168.1.20:80 Server 1 - 192.168.1.18:80 Server 2 - 192.168.1.19:80 Now I would like to configure Varnish Cache to ...
joniop's user avatar
  • 17
0 votes
0 answers
103 views

haproxy setup is not working when resource utilization become high

We are using HA proxy v2.3 in our organization for load balancing our apache application servers. Three web application servers are configured in haproxy. When any one of the web application server ...
Arun Thampi's user avatar
1 vote
1 answer
279 views

HAProxy ignores nbproc

In our test environment we've identified a strange HAProxy behavior. We're using the standard RHEL 7 provided haproxy-1.5.18-8.el7.x86_64 RPM. According to our understanding, the total number of ...
Jaroslav Kucera's user avatar
0 votes
0 answers
272 views

How to use haproxy for outgoing requests?

I am trying to create a tls link between two haproxy instances. Each instance is installed on a machine which have some apps that need to talk with each other using the proxy. I want the haproxy ...
Badr's user avatar
  • 101
0 votes
2 answers
3k views

Getting "ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value" Error using mariadb

While creating a haproxy_check user in MariaDB I am getting error ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value, what I need to do?
Aftab Ali's user avatar
0 votes
0 answers
199 views

HAproxy / rewrite local ip to external ip

I have a local cluster and an external client on the internet. The solution is communicating on several ports, but though a HAproxy upstream LB. The cluster handles many other solutions on the local ...
jnj's user avatar
  • 47
1 vote
1 answer
2k views

Deployment of haproxy between devices and Syslog server

Below is the current architecture of Syslog-NG to avoid single point of failure. Currently devices send same syslog message to two syslog servers listening on UDP port 514. Each server stores the ...
overexchange's user avatar
  • 1,536
2 votes
1 answer
1k views

Source-MAC Filter iptables

I have a HAProxy box with centos7 and doing load balance proxy for a smtp cluster providing mail relay to our customers. default gateway => 10.0.0.1 master-relay.example.net => 10.0.0.254 ...
Radu Radu's user avatar
5 votes
1 answer
17k views

How to start HAProxy on CentOS with systemd

I'm trying to set up a simple web load balancing using CentOS 7.5 (64bit, kernel 3.10), HAProxy 1.8.13 and systemd. It seems that the HAProxy configuration is OK, but starting the application gives me ...
ArgisIsland's user avatar
0 votes
0 answers
1k views

HAProxy didn't start as service

Did need to configurate and start HAproxy from User without SUDO rights. in general it turned out to be done. /data/haproxy/haproxy -f /etc/haproxy/haproxy.cfg stdout: [WARNING] 198/141606 (119143) ...
Nikolay Baranenko's user avatar
0 votes
2 answers
1k views

haproxy pass origin IP in galera cluster db

We have one galera cluster, mariadb version 10.3 and haproxy. We want the users to connect like this client->haproxy->galera_cluster. The user we create in the database we allow the IP to the client....
pioupiou's user avatar
  • 826
2 votes
1 answer
1k views

FIPS 140-2 compliance for Apache and Haproxy on CentOS 7 [closed]

I have CentOS 7 and Apache and the Haproxy load balancer with SSL support. How to make the server compliant to FIPS 140-2? From CHAPTER 10. FEDERAL STANDARDS AND REGULATIONS | redhat.com I got the ...
user avatar
0 votes
1 answer
431 views

add a header to incoming http request in a server

I have a ubuntu 16.04 server. It runs nginx webserver for the frontend part. Also the backend application runs in the same server. Now the requirement is to add header to incoming http requests. And ...
Samin Munankarmi's user avatar
1 vote
2 answers
4k views

Why haproxy logs status code 200 when using "http-response set-status <not-200>"?

I am using haproxy 1.7.8. I have a config that blocks requests with some specific abusers domains in HTTP Referer header. Important parts of my haproxy config looks like this: frontend ...
Greg Dubicki's user avatar
3 votes
0 answers
8k views

haproxy silently fails to start up using systemd on CentOS because of missing permissions for pid file

I have a CentOS 7.4 installation with haproxy which I updated to 1.8. Haproxy fails to start, even sudo systemctl start haproxy doesn't show any output. sudo systemctl status haproxy displays this: ●...
Marged's user avatar
  • 711
3 votes
3 answers
17k views

HAproxy - add path to backend server

I'm setting up HAproxy as a reverse proxy on my NAS, because I would like to use easy to remember subdomains instead of referring to the apps on my NAS with their port numbers. I managed to get it ...
Koenraad's user avatar
0 votes
1 answer
137 views

2-way TLS Using HAProxy Authenticates with Command Line but Fails in Browser

For a proof of concept development, I have an HAProxy server running on my local machine (OSX) which is expecting to make a 2-way TLS with any client and then forward that client to a web server. I ...
jaredad7's user avatar
  • 294
0 votes
1 answer
520 views

CARP Interface Doesn't Respond to Traffic

I have two OpenBSD boxes on running as Gen1 VMs on Hyper-V 2016; the VMs are split across two Hyper-V hosts. The NICs associated with the CARP pseudo interface do have MAC address spoofing enabled; ...
user avatar
2 votes
2 answers
3k views

HaProxy 1.5.8 to FTP server

I have been at this a few times and have become completely stuck in configuring this. Currently, I have this set up for an FTP server: Local PC (My MAC) -> AWS EC2 (HaProxy) -> FTP Server Here's a ...
ryekayo's user avatar
  • 4,763