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

os-relayd won't start if virtual server name is too long #3916

Closed
knan-md opened this issue Apr 17, 2024 · 2 comments
Closed

os-relayd won't start if virtual server name is too long #3916

knan-md opened this issue Apr 17, 2024 · 2 comments
Assignees
Labels
cleanup Low impact changes

Comments

@knan-md
Copy link

knan-md commented Apr 17, 2024

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

Describe the bug
If you add a virtual server to relayd that has a name longer than 31 characters, and click apply, relayd will stop and not restart until you remove or shorten the virtual server name.

To Reproduce

  1. Go to services => relayd => settings
  2. Add a host on the Backend Hosts tab
  3. Add a table on the Tables tab, including the host you added
  4. Go to the virtual servers tab, click add
  5. For server type, pick redirection
  6. Pick the table you just created in tables
  7. Fill out an arbitrary listen address and listen port
  8. Type a name of >31 characters in the Name field
  9. Save, Apply
  10. Relayd won't run.

Expected behavior
Relayd running, or error message in the UI.

Relevant log files
relayd.conf:

interval 1
log state changes
log host checks
prefork 3
timeout 200

table {
127.0.0.1
}

redirect "localhost-4446 blarg blarg blatt" {
listen on 192.168.2.1 tcp port 10001
forward to port 4446 mode roundrobin check https "/rules.limits" host acs-areq code 200
session timeout 600
}

root@OPNsense:/usr/local/etc # relayd -n
configuration OK

root@OPNsense:/usr/local/etc # relayd -d
startup
pfe: init_tables: name too long: Invalid argument
hce exiting, pid 27854
ca exiting, pid 28639
relay exiting, pid 28317
relay exiting, pid 28311
relay exiting, pid 28285
lost child: pid 27407 exited abnormally
ca exiting, pid 28730
ca exiting, pid 28836
parent terminating, pid 27011

Environment
OPNsense 24.1.5_3

@AdSchellevis AdSchellevis self-assigned this Apr 17, 2024
@AdSchellevis AdSchellevis added the cleanup Low impact changes label Apr 17, 2024
@AdSchellevis
Copy link
Member

@knan-md e7602ec should do the trick here

@knan-md
Copy link
Author

knan-md commented Apr 18, 2024

Looks good to me! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Low impact changes
Development

No branches or pull requests

2 participants