UDP configuration

Hello

I'm trying to find the right way to configure a plain UDP port for a service behind traefik.
I followed the documentation, the format, the rules but i can't get it to work.
In the static configuration i created the entry points:

entryPoints:
  syslog:
    address: ":514/udp"
  logstash:
    address: ":1514/tcp"
  logstash-beats:
    address: ":1515/tcp"
  elasticsearch:
    address: ":9200/tcp"
  kibana:
    address: ":55000/tcp"

(i know /tcp is not needed because that is the default, but for clarity sake)
Also set the router and service in the dynamic configuration

#--Plain-UDP-routers---
udp:
  routers:
    to-wazuh-514:
    entrypoints:
      - syslog
    rule: HostSNI(`fake.fake.webredirect.org`)
    service: wazuh-agent-514
    tls: {}
#---UDP-services---
  services:
    wazuh-agent-514:
      loadbalancer:
        servers:
          - address: 192.168.0.219:514

And i can see the error the service is missing on the udp router
What am i missing here?

UDP usually has no rule, as you have no TLS with SNI and no http with Host (doc). So you can only have a single service behind a UDP port.

Ty for your answer.
It was a rough ride but finally i found the right formatting.

#--Plain-UDP-routers---
udp:
  routers:
    to-wazuh-514:
      entrypoints:
        - syslog
      service: wazuh-agent-514
#---UDP-services---
  services:
    wazuh-agent-514:
      loadbalancer:
        servers:
          - address: 192.168.0.219:514

TY

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.