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

relayd ion mode redirection gui blocked #3850

Closed
2 tasks done
informatique4ipbs opened this issue Mar 9, 2024 · 8 comments
Closed
2 tasks done

relayd ion mode redirection gui blocked #3850

informatique4ipbs opened this issue Mar 9, 2024 · 8 comments
Assignees
Labels
cleanup Low impact changes

Comments

@informatique4ipbs
Copy link

informatique4ipbs commented Mar 9, 2024

Important notices

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

Describe the bug

Using relayd in relay mode for relaying my LDAP-Active Directory (port 389 and 3268) works like a charm. Everything is fine.
Using relayd in redirect mode fore relaying my DNS doesn t works. In fact when i try to implement it vi the gui all seems fine and when i click save it runs (like an infinite loop) and keeps the windows open. It never save the configuration (i ve search via a recursive grep in the conf ie : /etc , /usr/local/etc, /conf ). There is no error message.
i try to implement, at first the TCP part of example in manpage relayd :
redirect "dns" {
listen on dns.example.com tcp port 53
listen on dns.example.com udp port 53

               forward to <dnshosts> port 53 check tcp
       }

Expected behavior

create the virtual server

Describe alternatives you considered

????

Screenshots

2 screenshots one of relayd in relay mode (working) the other in redirect mode (not working)
Capture du 2024-03-09 13-00-32
Capture du 2024-03-09 13-01-18

Relevant log files

no as far as i 've ssen

Additional context

Add any other context about the problem here.

Environment

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

OPNsense 24.1.3_1-amd64
FreeBSD 13.2-RELEASE-p10
OpenSSL 3.0.13
everything is up to date

@fichtner fichtner transferred this issue from opnsense/core Mar 9, 2024
@mlevy823
Copy link

I have this same issue, the save button is nonfunctional if you select Redirection as a server type when you are on Edit Virtual Server. I am on a fresh and fully updated installation:
OPNsense 24.1.3_1-amd64
FreeBSD 13.2-RELEASE-p10
OpenSSL 3.0.13
os-relayd 2.8_1

@AdSchellevis
Copy link
Member

when expanding advanced, there's likely an error. let me double check.

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

ed456b2 should fix the required but empty situation here.

@kulikov-a
Copy link
Member

kulikov-a commented Mar 20, 2024

@AdSchellevis
Hi!
opnsense/core@9c98fd4
perhaps it wouldn’t be superfluous either?

@AdSchellevis
Copy link
Member

@kulikov-a do you have an example form where this causes issues?

@kulikov-a
Copy link
Member

@AdSchellevis
I tried it on the relayd Virtual Server form (without your model fix) and displaying a field validation error for the Backup Table Scheduler field (Scheduler "" not supported for redirects.) (index.volt view tries to keep track of how fields are displayed depending on the value of the options by assigning a .hidden class)

@AdSchellevis
Copy link
Member

@kulikov-a the relayd plugin seems to have more issues, I think we should refactor it one day to be honest. For now I only fixed the validation part.

@kulikov-a
Copy link
Member

@AdSchellevis got it, thanks )

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

4 participants