Skip to content

Commit 512a24f

Browse files
committed
net/haproxy: support more sample fetches, closes #3702
1 parent 4a03086 commit 512a24f

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

net/haproxy/pkg-descr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Added:
1414
* support custom HTTP status code in "http-request deny" rules
1515
* add new backend option to control PROXY protocol for health checks (#2909)
1616
* add support for new map file type: reg (#3641)
17+
* add support for more sample fetches: quic_enabled, stopping, wait_end (#3702)
1718

1819
Changed:
1920
* upgrade to HAProxy 3.2 release series (#5147)

net/haproxy/src/opnsense/mvc/app/models/OPNsense/HAProxy/HAProxy.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,6 +1720,7 @@
17201720
<expression type="OptionField">
17211721
<Required>Y</Required>
17221722
<OptionValues>
1723+
<stopping>HAProxy process is currently stopping</stopping>
17231724
<http_auth>HTTP Basic Auth: username/password from client matches selected User/Group</http_auth>
17241725
<hdr_beg>Host starts with</hdr_beg>
17251726
<hdr_end>Host ends with</hdr_end>
@@ -1738,6 +1739,8 @@
17381739
<cust_hdr_reg>HTTP Header regex</cust_hdr_reg>
17391740
<cust_hdr_sub>HTTP Header contains</cust_hdr_sub>
17401741
<http_method>HTTP Method</http_method>
1742+
<wait_end>Inspection period is over (WAIT_END)</wait_end>
1743+
<quic_enabled>QUIC transport protocol is enabled</quic_enabled>
17411744
<url_param>URL parameter contains</url_param>
17421745
<ssl_c_verify>SSL Client certificate is valid</ssl_c_verify>
17431746
<ssl_c_verify_code>SSL Client certificate verify error result</ssl_c_verify_code>

net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
{# Macro expects a CSV list of Actions and validates them. #}
4242
{%- macro AclsAndActions(linkedData) -%}
4343
{% if linkedData is defined %}
44+
{% set acl_boolean_types = ['quic_enabled', 'stopping', 'wait_end'] %}
4445
{# # remember all ACLs to avoid duplicate declarations #}
4546
{% set acls_seen = [] %}
4647
{% set global_action_options = [] %}
@@ -411,6 +412,10 @@
411412
{% set acl_enabled = '0' %}
412413
# ERROR: missing parameters
413414
{% endif %}
415+
{# # handle boolean ACL types that do not require any input #}
416+
{% elif acl_data.expression in acl_boolean_types %}
417+
{% do acl_options.append(acl_data.expression) %}
418+
{# # handle custom ACL types #}
414419
{% elif acl_data.expression == 'custom_acl' %}
415420
{% if acl_data.custom_acl|default("") != "" %}
416421
{% do acl_options.append(acl_data.custom_acl) %}

0 commit comments

Comments
 (0)