Configuration for openmptcprouter doesn't work, rule missing

,

I try to use traefik for the vps for openmptcprouter .
so the configuration is long and I use a perl script to generate it to prevent typing errors.

tcp:
  routers:
    omrvpsdsvpn:
      entryPoints:
        - "omrvpsdsvpn"
      rule: "HostSNI(`*`)"
      service: service-omrvpsdsvpn

    omrvpsgtunt:
      entryPoints:
        - "omrvpsgtunt"
      rule: "HostSNI(`*`)"
      service: service-omrvpsgtunt

    omrvpsiprefit:
      entryPoints:
        - "omrvpsiprefit"
      rule: "HostSNI(`*`)"
      service: service-omrvpsiprefit

    omrvpsojson:
      entryPoints:
        - "omrvpsojson"
      rule: "HostSNI(`*`)"
      service: service-omrvpsojson

    omrvpsovpn:
      entryPoints:
        - "omrvpsovpn"
      rule: "HostSNI(`*`)"
      service: service-omrvpsovpn

    omrvpsray:
      entryPoints:
        - "omrvpsray"
      rule: "HostSNI(`*`)"
      service: service-omrvpsray

    omrvpssockst:
      entryPoints:
        - "omrvpssockst"
      rule: "HostSNI(`*`)"
      service: service-omrvpssockst

  services:
    service-omrvpsdsvpn:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65401"

    service-omrvpsgtunt:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65001"

    service-omrvpsiprefit:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65400"

    service-omrvpsojson:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65500"

    service-omrvpsovpn:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65301"

    service-omrvpsray:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65228"

    service-omrvpssockst:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65101"

udp:
  routers:
    omrvpsgtunu:
      entryPoints:
        - "omrvpsgtunu"
      rule: "HostSNI(`*`)"
      service: service-omrvpsgtunu

    omrvpsiprefiu:
      entryPoints:
        - "omrvpsiprefiu"
      rule: "HostSNI(`*`)"
      service: service-omrvpsiprefiu

    omrvpsmlvpn1:
      entryPoints:
        - "omrvpsmlvpn1"
      rule: "HostSNI(`*`)"
      service: service-omrvpsmlvpn1

    omrvpsmlvpn2:
      entryPoints:
        - "omrvpsmlvpn2"
      rule: "HostSNI(`*`)"
      service: service-omrvpsmlvpn2

    omrvpsmlvpn3:
      entryPoints:
        - "omrvpsmlvpn3"
      rule: "HostSNI(`*`)"
      service: service-omrvpsmlvpn3

    omrvpsmlvpn4:
      entryPoints:
        - "omrvpsmlvpn4"
      rule: "HostSNI(`*`)"
      service: service-omrvpsmlvpn4

    omrvpsmlvpn5:
      entryPoints:
        - "omrvpsmlvpn5"
      rule: "HostSNI(`*`)"
      service: service-omrvpsmlvpn5
   omrvpsmlvpn6:
      entryPoints:
        - "omrvpsmlvpn6"
      rule: "HostSNI(`*`)"
      service: service-omrvpsmlvpn6

    omrvpsmlvpn7:
      entryPoints:
        - "omrvpsmlvpn7"
      rule: "HostSNI(`*`)"
      service: service-omrvpsmlvpn7

    omrvpsmlvpn8:
      entryPoints:
        - "omrvpsmlvpn8"
      rule: "HostSNI(`*`)"
      service: service-omrvpsmlvpn8

    omrvpssocksu:
      entryPoints:
        - "omrvpssocksu"
      rule: "HostSNI(`*`)"
      service: service-omrvpssocksu

    omrvpswg1:
      entryPoints:
        - "omrvpswg1"
      rule: "HostSNI(`*`)"
      service: service-omrvpswg1

    omrvpswg2:
      entryPoints:
        - "omrvpswg2"
      rule: "HostSNI(`*`)"
      service: service-omrvpswg2
 services:
    service-omrvpsgtunu:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65001"

    service-omrvpsiprefiu:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65400"

    service-omrvpsmlvpn1:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65201"

    service-omrvpsmlvpn2:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65202"

    service-omrvpsmlvpn3:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65203"

    service-omrvpsmlvpn4:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65204"

    service-omrvpsmlvpn5:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65205"

    service-omrvpsmlvpn6:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65206"

    service-omrvpsmlvpn7:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65207"

    service-omrvpsmlvpn8:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65208"

    service-omrvpssocksu:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65101"

    service-omrvpswg1:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65311"

    service-omrvpswg2:
      loadBalancer:
        servers:
          - address: "192.168.99.112:65312"

All entrypoints are running.

error message in the log:

level=error msg="Error while building configuration (for the first time): /etc/traefik/c
onf.d/omrvps.yml: field not found, node: rule" providerName=file

There are no rules missing.
May be it is not allowed to use
"HostSNI(*)"
for UDP?

Yes, to use rules in udp isn't possible. Now it works.

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