Relayd stopped working

Started by laci, April 04, 2025, 12:51:37 AM

Previous topic - Next topic
I had a virtual server set up for my K3s lab. It worked when I had only one virtual server and its nodes. I was able to access the K3s nodes through the virtual server FQDN and IP.

When I tried to add another virtual server then it stopped working for every virtual servers.
Even if I remove the second virtual server the first one still does not work.
I tried removing relayd (completely all local files and passwd and group entries) then reinstall and set it up again. No luck.

The status page for relayd also stopped working at the same time.

I use Unbound DNS and have an override for the IP and FQDN.

Help would be greatly appreciated. I am new to OPNSense, so I might misconfigured it.

Here is my configuration:


# cat relayd.conf
# DO NOT EDIT THIS FILE -- OPNsense auto-generated file

interval 10
log state changes
log host checks
prefork 1
timeout 3000

table <K3sControlPlaneNodes> {
192.168.1.201
192.168.1.202
192.168.1.203
}
table <K3sWorkerNodes> {
192.168.1.204
192.168.1.205
}


relay "K3SVIP" {
listen on 192.168.1.209 port 6443
forward to <K3sControlPlaneNodes> mode roundrobin  check icmp
}
relay "K3sHTTP" {
listen on 192.168.1.209 port 80
forward to <K3sWorkerNodes> mode loadbalance  check icmp
}
relay "K3sHTTPS" {
listen on 192.168.1.209 port 443
forward to <K3sWorkerNodes> mode loadbalance  check icmp
}

Switched to HA Proxy and it seems to work.