-
Notifications
You must be signed in to change notification settings - Fork 647
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: unable to configure to listen on IPv6 address #540
Comments
|
Looks like this regex doesn't match IPv6 addresses: https://github.com/opnsense/plugins/blob/master/net/haproxy/src/opnsense/mvc/app/models/OPNsense/HAProxy/HAProxy.xml#L317 |
|
@abraxxa I can't reproduce this on OPNsense 18.1.6 (anymore). Is this still not working for you in the current release? If yes, then please provide a screenshot of the error message and the values that are not working. |
|
Closing this issue, because I can't reproduce it. Please report back how to reproduce this issue and provide a screenshot of the error. |
|
Sorry for the delay, marking mails as important in the inbox isn't sufficient enough :( |
|
@abraxxa Thanks for the confirmation! |
|
Clearly something is not working even with latest 19.7. I tried to add something like |
|
Maybe your syntax is wrong? |
|
@ssbarnea Please try this patch: |
|
@fraenki I applied the patch, restarted all services and I did allow me add the address. Still, I think that binding to ipv6 does not work for the haproxy. I tried running |
|
Can you try |
|
@ssbarnea I don't have an IPv6 test box, but binding on local IPV6 seems to work. Your HAProxy log may reveal why it is unable to bind to a certain address. Additionally, you may want to check if there are more detailed startup messages when using the RC script to start HAProxy: |
|
For me binding haproxy to the Internet IPv6 address assigned via DHCP works as long as the static IPv6 address entered in the haproxy config is available and hasn't changed. |
True. HAProxy will even refuse to start if the configured listen address is unavailable (i.e. not configured on a local interface). |
|
I can confirm that this patches worked. Sorry that it took so long to reply. I mention that for some reason I had to add an extra rule to the firewall but that is clearly unrelated to the patch. Thanks for fixing that! |
|
@ssbarnea Thanks for testing! The patch will be included in the upcoming release 2.19 of os-haproxy. |
When I try to configure a Public Service listening to an IPv6 address the following error is display on save:
I guess this is just a validation error.
I tried both 2a01:....:1:443 as well as [2a01:.....:1]:443
OPNSense verion 18.1_1
os-haproxy plugin version: 2.4
UI URL: https://firewall.hartmaier.priv.at/ui/haproxy/#frontends
The text was updated successfully, but these errors were encountered: