| Age | Commit message (Collapse) | Author |
|
IPv6 addresses
The listen-address check ignored the HAProxy VRF. An address on an
interface in that VRF was reported as not assigned. With "vrf default"
the port check always failed.
Changing the VRF only reloaded HAProxy, so it kept running in the old
VRF.
HAProxy cannot parse a link-local address with its "%interface" scope.
The commit passed, but HAProxy failed to load the config.
A new IPv6 address cannot be used until duplicate address detection
finishes. Adding it together with the listen-address, as on every boot,
was refused as "port used by another service".
Now:
- addresses and ports are checked inside the HAProxy VRF, and "default"
means no VRF
- HAProxy restarts when its VRF changes
- a link-local address is passed to HAProxy as "bind <address> interface
<interface>"; one without an interface is refused
- the check waits until a new IPv6 address can be used
|
|
firewall: T9474: multiple issues in rule processing (time based rules, fragment matching and failing commits)
|
|
The WAN load-balancing ruleset only deleted the existing table when its
rule file in /run was present. A table removed while the file stayed made
the delete, and with it the ruleset reload, fail.
The table is now declared right before it is deleted, so each reload
rebuilds it regardless of what is currently loaded.
|
|
When load balancing TLS backends in TCP passthrough mode there is
currently no way to perform an HTTPS health check: http-check sends
the request in plaintext, and the only TLS option (backend ssl
no-verify/ca-certificate) renders the 'ssl' keyword on the server
lines, which re-encrypts the forwarded traffic and breaks passthrough
of clients that already speak TLS end-to-end (e.g. kube-apiserver
clients authenticating with TLS client certificates).
Add 'set load-balancing haproxy backend <name> ssl checks-only'
(valueless). When set, the existing backend ssl options apply to
health checks only: server lines get 'check-ssl verify none' or
'check-ssl ca-file <ca>.pem' instead of 'ssl ...', leaving forwarded
traffic untouched. Commit validation rejects checks-only when no
server in the backend has check enabled, or when neither no-verify
nor ca-certificate is set, since either case would otherwise be
inert. Existing configurations render unchanged.
|
|
|
|
|
|
is sent
Add support for specifying a custom health check port for HAProxy backend servers.
This allows health probes to target a dedicated endpoint - such as port 8080 - separate
from normal traffic ports (e.g., 80 or 443).
|
|
|
|
|
|
T7595: Support PROXY protocol for haproxy
|
|
|
|
balanced packets only
Matched the out iface name in wan load balancer default SNAT rule
so that SNAT is performed to load balanced packets only
|
|
When instructing certbot to listen on a given address, check if the address is
free to use. Also take this into account when spawning certbot behind HAProxy.
If the address is not (yet) bound - the request must be done in standalone mode
and not via the reverse-proxy.
|
|
Always enable the ACL entry to reverse-proxy requests to the path
"/.well-known/acme-challenge/" when "redirect-http-to-https" is configured for
a given HAProxy frontend service.
This is an intentional design decision to simplify the implementation and reduce
overall code complexity. It poses no risk: a missing path returns a 404, and an
unavailable backend yields an error 503.
This approach avoids a chicken-and-egg problem where certbot might try to
request a certificate via reverse-proxy before the proxy config is actually
generated and active.
By always routing through HAProxy, we also eliminate downtime as port 80 does
not need to be freed for certbot's standalone mode.
|
|
Automatically render HaProxy rules to reverse-proxy ACME challanges when the
requested certificate was issued using ACME.
|
|
If redirect-http-to-https is set we will render a discrete onfiguration in
HAproxy to properly claim port 80 in the system to detect if a service is
alreadey using the port or not.
|
|
Add the ability to configurate default timeout and frontend
client timeout
```
set load-balancing haproxy service web timeout client '600'
set load-balancing haproxy timeout check '4'
set load-balancing haproxy timeout client '600'
set load-balancing haproxy timeout connect '12'
set load-balancing haproxy timeout server '120'
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
haproxy supports both ":::80 v4v6" and "[::]:80 v4v6" as listen statement,
where the later one is more humand readable. Both act in the same way.
|
|
|
|
|
|
config
|
|
|
|
|
|
server certificates
|
|
|
|
We will use _ as CLI level divider. The XML definition filename and also
the Python helper should match the CLI node.
Example:
set interfaces ethernet -> interfaces_ethernet.xml.in
set interfaces bond -> interfaces_bond.xml.in
set service dhcp-server -> service_dhcp-server-xml.in
|
|
Add ability to configure multiple SSL certificates for
frontend/service
set load-balancing reverse-proxy service web mode http
set load-balancing reverse-proxy service web port 443
set load-balancing reverse-proxy service web ssl certificate cert1
set load-balancing reverse-proxy service web ssl certificate cert2
|
|
A `backup` server can be defined to take over in the case of all other
backends failing
set load-balancing reverse-proxy backend <tag> server <tag> address '192.0.2.3'
set load-balancing reverse-proxy backend <tag> server <tag> port '8883'
set load-balancing reverse-proxy backend <tag> server <tag> backup
|
|
By default haproxy uses timeouts in millisecond but we set timeouts
in seconds from CLI
Fix template to use 'seconds' units
|
|
To accept a Proxy Protocol header on incoming TCP connections,
add an accept-proxy parameter to the bind line in a frontend section.
This parameter detects both Proxy Protocol version 1 (text format)
and Proxy Protocol version 2 (binary format).
set load-balancing reverse-proxy backend <tag> server <tag> send-proxy
|
|
Load-balancing reverse-proxy listen-address is multi-value node
Use bracketize for correct set bind config for IPv6 addresses
Listen by default IPv4 and IPv6 if listen-address is not defined
|
|
Improve and refactoring "load-balancing reverse-proxy"
- replace 'reverse-proxy server <tag>'
=> 'reverse-proxy service <tag>'
- replace 'reverse-proxy global-parameters tls <xxx>'
=> 'reverse-proxy global-parameters tls-version-min xxx'
=> 'reverse-proxy global-parameters ssl-bind-ciphers xxx'
- replace 'reverse-proxy service https rule <tag> set server 'xxx'
=> 'reverse-proxy service https rule <tag> set backend 'xxx'
'service https rule <tag> domain-name xxx' set as multinode
|
|
|
|
Use XML and python3 for 'load-balancing wan'
Use Jinja2 templates instead of old vyatta-wanloadbalance.pl to
generate configuration '/run/load-balance/wlb.conf' wich used by
/opt/vyatta/sbin/wan_lb
|