File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
mvc/app/models/OPNsense/HAProxy
service/templates/OPNsense/HAProxy Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 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
1819Changed:
1920* upgrade to HAProxy 3.2 release series (#5147)
Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 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 = [] %}
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) %}
You can’t perform that action at this time.
0 commit comments