Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/haproxy: Option pass-through in Public Service results in warning message #4574

Open
3 tasks done
kingfisher77 opened this issue Mar 7, 2025 · 0 comments
Open
3 tasks done

Comments

@kingfisher77
Copy link

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug
When using the ‘pass-through’ option in the Public Service, the resulting configuration is validated with a warning. This is because the additional configuration is placed at the end of the frontend block. It should be placed before the use_backend statements.

To Reproduce
Steps to reproduce the behavior:
Add this into the Option pass-through textarea (our case):

tcp-request inspect-delay 5s
tcp-request content accept if { req.ssl_hello_type 1 }

Press "test syntax"

This warning message appears:

[NOTICE] (44943) : haproxy version is 3.0.8-6036c31
[NOTICE] (44943) : path to executable is /usr/local/sbin/haproxy
[WARNING] (44943) : config : parsing [/usr/local/etc/haproxy.conf.staging:155] : a 'tcp-request' rule placed after a 'use_backend' rule will still be processed before.
Warnings were found.

The same warning appears when testing on the console:

[root@fw3 /usr/local/etc]# haproxy -f /usr/local/etc/haproxy.conf.staging -c -V
[NOTICE]   (20752) : haproxy version is 3.0.8-6036c31
[NOTICE]   (20752) : path to executable is /usr/local/sbin/haproxy
[WARNING]  (20752) : config : parsing [/usr/local/etc/haproxy.conf.staging:155] : a 'tcp-request' rule placed after a 'use_backend' rule will still be processed before.
Warnings were found.
Configuration file is valid

Expected behavior
The Option pass-through value should be placed before use_backend directives.

Environment
Software version used and hardware type if relevant.
e.g.:

OPNsense 25.1.2 (amd64).
os-haproxy 4.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant