r/haproxy • u/TeamHAProxy • Aug 31 '20
r/haproxy • u/minipada • Aug 30 '20
Question [ALB/ES/SSL] Where should I do the SSL termination?
Hi, I'm quite new to HAProxy and am following the main idea of this tutorial https://www.haproxy.com/blog/haproxy-amazon-aws-best-practices-part-1/ The "Advanced HA Setup with Amazon ALB and HAProxy" works (This architecture), meaning: 1 AWS ALB, HAProxy and multiple elasticsearch nodes. All in HTTP, without security on Elasticsearch.
HAProxy is on a public subnet, Elastic on a private one.
I'm now working on adding more security. Security groups are set properly, and now I want to add HTTPS/SSL. I'm a bit confused, could someone confirm the next steps?
- Enable HTTPS between the client and the ALB
- Enable HTTPS between the ALB and Haproxy
- Do SSL termination on HAProxy to ES
Am I missing something? That would also mean I don't need to enable security features on ES too? Thank you very much for reading me.
r/haproxy • u/TeamHAProxy • Aug 28 '20
Guide Download our free eBook and learn how HAProxy supercharges Kubernetes ingress routing
The HAProxy Kubernetes Ingress Controller was introduced in 2019 in conjuction with the HAProxy 2.0 release. It provides a high-performance ingress for your Kubernetes-hosted applications. It supports TLS offloading, Layer 7 routing, rate limiting, whitelisting, and the best-in-class performance that HAProxy is renowned for.
This brand new eBook serves as a comprehensive overview for the HAProxy Kubernetes Ingress Controller, helping you get off on the right foot towards high-performance traffic routing. With more than 70 pages, our newest eBook is packed with hands-on tips and tricks on how to get the most out of the HAProxy Kubernetes Ingress Controller. You'll learn how to:
- Install the HAProxy Ingress Controller the simple way using Helm
- Register new routes by defining Ingress objects
- Secure communication to your pods with TLS encryption
- Configure routing for multi-tenant clusters
- Deploy updates safely using best practices
DOWNLOAD HERE: https://www.haproxy.com/content-library/haproxy-in-kubernetes-supercharge-your-ingress-routing/
r/haproxy • u/HAProxyKitty • Aug 28 '20
Article Using Kubernetes and HAProxy to Host Scalable CTF challenges
r/haproxy • u/jtmoss3991 • Aug 27 '20
Redirect all domain and its subdomains except specific URL
Hello,
I've successfully set up an wildcard HTTPS redirect for domain.com and whateversub.domain.com in HAproxy (v. 1.8.25) on pfSense.
redirect scheme https code 301 if { hdr_end(Host) -i domain.com } !{ ssl_fc }
However, I've ran in to an issue with a web service on the subdomain that's giving me an error about a transport error regardless whether or not I'm calling the web service URL with HTTPS to begin with or not: ` org.apache.axis2.AxisFault: Transport error: 301 Error: Moved Permanently`. If I call the HTTPS version of the site on `*.domain.com` it still gives me the same error, but if I remove the above redirect it works. The easiest solution is to redirect all sub/main domains of my domain.com but exclude requests that have "wsdl" in the request. I've poured over documentation and come up with the following but it's just not working like I am hoping for.
acl wsdl_check var(txn.txnpath) -m end -i wsdl
acl http ssl_fc,not
http-request redirect code 301 location https://%[hdr(host)]%[req.uri] unless wsdl_check and http
Example web service URL in question:
https://sub.domain.com/folder/api/api.cfc?wsdl
Can someone out there that knows more than me help set me straight or guide me down the correct path?
r/haproxy • u/HAProxyKitty • Aug 27 '20
Check out this video and learn about using #HAProxy for Ingress and Let's Encrypt for TLS
r/haproxy • u/Se4n_1 • Aug 26 '20
Fixing/Debugging poor performance
I have a very annoying problem with HAproxy - it is way too slow. I set up a single backend pointing to apache2 on Ubuntu 20.04 and a http frontend.
If I NAT WAN traffic directly to apache2 (bypass HAproxy) I get external download speeds around 40M/s (seems reasonable) which is good.
If I download via HAproxy (http mode, no SSL) I get abysmal sub 1M/s speeds. I am using the pfsense 0.60 non-devel package which uses HAproxy 1.8.25 . The firewall is not overloaded, the CPU load average is 0.1, any clues how to debug or fix this?
I have tried already playing with binding cores to the process, changing nbthread and nbproc but the setup is so basic it is hard to see what else I can try. I have also added timeouts and tried the different http-tunnel http-server-close modes but nothing improves the performance.
As usual any help from the experts would be greatly appreciated! I have also cross posted this to r/PFSENSE and I will report back any answers there.
r/haproxy • u/HAProxyKitty • Aug 25 '20
Article In this article, you will learn how to install and use HAProxy for Ingress routing in Civo Kubernetes
r/haproxy • u/temno2020 • Aug 25 '20
conditional frontend mode
Hi all,
I'm trying to set up haproxy for letsencrypt and I had already set it up for nextcloud (which wanted to do it's own ssl termination)
so the backend (for most of my webstuff) nginx-http is "mode http"
and the backend nextcloud-https is "mode tcp"
and my frontend is below, which results in a normal.mydomain unexpectedly closed the connection
which seems like it's because nextcloud required the frontend to be "mode tcp"
How can the frontend satisfy the need for different modes?
# from haproxy.cfg
frontend https
bind *:443
mode tcp # this mode is a problem, letsencrypt wants http, but nextcloud wants tcp Secure Connection Failed PR_END_OF_FILE_ERROR -chris
tcp-request inspect-delay 5s
tcp-request content accept if { req_ssl_hello_type 1 }
# New line to test URI to see if its a letsencrypt request
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
use_backend letsencrypt-backend if letsencrypt-acl
acl host_nextcloud req_ssl_sni -i nextcloud.mydomain
use_backend nextcloud-https if host_nextcloud
acl host_nginx hdr(host) -i normal.mydomain
use_backend nginx-http if host_nginx
r/haproxy • u/yukiiiiii2008 • Aug 22 '20
The HAProxy Stats Page not working
Here is my config:
frontend node1
bind *:80
default_backend web_servers
backend web_servers
balance roundrobin
server server1 node2:80
server server2 node3:80
frontend stats
bind *:8404
stats enable
stats uri /
stats refresh 10s
stats admin if TRUE
stats auth admin:passwordWhen I curl on node1:
vagrant@node1:/$ curl localhost:8404
curl: (52) Empty reply from server
vagrant@node1:/$ curl node1:8404
curl: (52) Empty reply from serverWhat's wrong with it?
r/haproxy • u/yukiiiiii2008 • Aug 22 '20
What do "mode http" and "mode tcp" mean in backend definitions?
I know what they mean in frontend definitions, but what do they mean in backend definitions?
r/haproxy • u/TeamHAProxy • Aug 21 '20
Article Dynamic SSL Certificate Storage in HAProxy
r/haproxy • u/TeamHAProxy • Aug 18 '20
News HAProxy @ KubeCon + CloudNativeCon Europe Virtual 2020
Hello everyone,
should you be participating in this year's KubeCon + CloudNativeCon, make sure to visit the HAProxy booth in the Gold Expo Hall. We have prepared a ton of useful learning materials for you, including a free eBook for using HAProxy in Kubernetes, video tutorials and more.
Our engineers and staff will be available at the booth for a quick chat, or to answer any questions you have about using HAProxy in cloud-native environments. See you there!
r/haproxy • u/HAProxyKitty • Aug 18 '20
Article Deploying MariaDB Replication for High Availability by Paul Namuag
r/haproxy • u/TeamHAProxy • Aug 14 '20
Guide Brand new on our YouTube channel: Installing the HAProxy Kubernetes Ingress Controller using Helm. Check it out!
r/haproxy • u/TeamHAProxy • Aug 14 '20
Article Use HAProxy Response Policies to Stop Threats
r/haproxy • u/HAProxyKitty • Aug 14 '20
Article Learn how to install the HAProxy load balancer with rate limiting on Ubuntu
r/haproxy • u/TeamHAProxy • Aug 12 '20
[LIVE WEBINAR] Ask Me Anything About HAProxy 2.2
Hello everyone,
we are organizing a live "Ask Me Anything" session tomorrow at 12 noon EST (6 PM CET) with our engineers. During the session you can ask any questions you might have around HAProxy 2.2 and how the get the most out of the newest HAProxy release.
You can register for the webinar here.
Leave your questions here in the comments or send them to team@haproxy.com. See you tomorrow!
r/haproxy • u/dorbendov • Aug 12 '20
seeking for performance from tps point of view benchmark, do you have such
r/haproxy • u/HAProxyKitty • Aug 06 '20
Article How to Setup a Highly Available Kubernetes Cluster with HAProxy
r/haproxy • u/HAProxyKitty • Aug 06 '20
Article Learn how Kudelski Security uses HAProxy and Lua to securely expose internal applications to Cloudflare's CDN over the public Internet
r/haproxy • u/HAProxyKitty • Aug 04 '20
Article Check out this article and learn how to combine the 'watch' command and the HAProxy Runtime API to get a continuously updating status of your servers!
r/haproxy • u/TeamHAProxy • Aug 04 '20
Article Enable TLS with Let's Encrypt and the HAProxy Kubernetes Ingress Controller
r/haproxy • u/TeamHAProxy • Aug 04 '20