Questions tagged [haproxy]

40 questions
23
votes
1 answer

how to view haproxy status on the command line using a socket

In the examples, I have seen on the net https://www.datadoghq.com/blog/how-to-collect-haproxy-metrics/#show-me-the-metrics You can use the command line echo "show stat" | nc -U /var/lib/haproxy/stats Which is very ugly in the output. Columns…
nelaaro
  • 14,139
  • 30
  • 88
  • 115
15
votes
1 answer

Multiple processes listening on the same port; how is it possible?

Multiple processes are listening on same port. But as far as I know only one process can listen on a port. Is it possible (how?) that multiple processes can listen on same port? $ sudo lsof -n -i :80 | grep LISTEN haproxy 2039 root 4u IPv4 …
Kundan
  • 153
13
votes
1 answer

haproxy configuration errors

Here's my configuration global log /dev/log local0 log 127.0.0.1 local1 notice maxconn 4096 user haproxy group haproxy daemon defaults log global mode http option …
8
votes
1 answer

haproxy wait until dns resolve backend

I have 2 docker containers in the same network - web and proxy running haproxy with backend backend web server web web:80 check Also init-addr is set to last,libc,none, so it does not fail if can't resolve web on start. If I start proxy first,…
Alexey
  • 363
4
votes
1 answer

HAProxy works fine ran manually, but as a Systemd-service fails to load SSL pem-file

I'm trying to set up SSL on a Fedora 22 -server running HAProxy. Here's the config (/etc/haproxy/haproxy.cfg): global log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid maxconn 4000 …
2
votes
3 answers

Route SSH traffic based on domain with HAProxy

I'm currently building my own little cluster at home and I'm trying to get SSH routing (load balancing) to work with HAProxy. I have figured out how to route HTTP traffic but I'm struggling with SSH. I do not know enough about the TCP protocol to…
2
votes
1 answer

haproxy- setting up an TCP connection cache for an HTTP server

I am trying to setup a local TCP connection cache to provide access to a remote HTTP server for multiple local applications. I have started to configure haproxy to do this: global log /dev/log local0 pidfile /var/run/haproxy.pid …
mathieu
  • 113
2
votes
2 answers

HAProxy 2.0.5: Unable to convert message in HTX for HTTP return code 503

I am so sorry for any unconvenience as I am very fresh new to HAProxy and now I have one issue which may not really an issue but as I am fresh new to this tool I don't know how to fix it. I was using HAProxy version 1.8.8 and now I am upgrade to…
2
votes
1 answer

Can’t SSH into GitLab when it’s accessible via HAProxy

I have a GitLab instance in docker-compose on a VM in my home network. It's running behind HAProxy proxy and accessible on git.example.com:443. To be able to access them both inside my home network and outside my home network, I have to have the DNS…
cclloyd
  • 882
2
votes
1 answer

Proxy all traffic without matching the domain names in Haproxy

I'm using Haproxy in my VPS for stream some video content. with my current setup I need to mention each every domain in the front-end and back-end section in my Haproxy.conf file. if I need to watch 10 channels I need to add many domains. I only use…
1
vote
0 answers

How to enable http response buffering on HaProxy?

I hope I understand it right: HAProxy is able (http-mode) to buffer the output (response) from a backend server, so that the server process is made free as soon as possible. A slow client would therefore "only" consume ressources on the HAProxy. How…
Frank59
  • 111
1
vote
0 answers

How to make haproxy use a list of proxy?

squid can use a proxy list like: cache_peer %(host)s parent %(port)s 0 no-query weighted-round-robin weight=%(weight)s connect-fail-limit=2 allow-miss max-conn=5 then just access squid port, it would auto choose a proxy to access internet for…
Mithril
  • 937
1
vote
1 answer

haproxy relay ssh to backend based on fqdn : kex_exchange_identification: Connection closed by remote host

I'm trying to relay ssh connections from port 122/tcp to another server on port 22/tcp based on the FQDN. Here is my HAProxy configuration : frontend my_ssh_frontend bind *:122 mode tcp option tcplog acl my_ssh_acl hdr(host)…
SebMa
  • 2,035
1
vote
1 answer

Can’t renew LE certs behind haproxy after upgrade

My previous setup to maintain Let's Encrypt certificates, which worked, was: WAN -> pfSense -> Ubuntu 18.04 -> haproxy -> certbot v0.27.0 (for renewal) pfSense forwarded all TCP traffic on port 80 and 443 to Ubuntu. haproxy knew about the LE certs,…
Craig
  • 475
1
vote
1 answer

Proxying FTP Over MQTT

Considering we have established a secure connection via MQTT (Let's say to AWS-IoT /Azure etc) can we then use it to tunnel FTP server running on Embedded Device (For remote access)? If it's possible, would it work with the raw ftp data being sent…
Ukhan
  • 11
1
2 3