I’ve been trying to figure this out off and on for months without any luck. This is my first homelab setup in a while. I have Proxmox running a few VMs, one is Truenas with some drives in direct passthrough. I also have a Proxmox container running Docker which is running a few things, Traefik being one of them.

I’ve got http/https working and figure out LetsEncypt certs via DNS checks through blood, sweat, and tears, but I cannot – for the life of me – figure out how to get Traefik to handle smb for that Truenas server so I don’t have to have 2 different DNS entries (1 pointing to Traefik for web and one pointing right at the VM for smb).

I found the ports Truenas claims to use for smb (and other services) here and how to capture TCP and UDP entrypoints on Traefik here, but I can’t seem to find the right combo for my Docker compose and Traefik setup.

Anybody else figure this out?

edit: My fat thumbs on mobile create a lot of typos. I also added the entrypoints documentation URL

  • Nick
    link
    fedilink
    English
    21 year ago

    I’m not sure if you can proxy smb as it’s not http/s data. If using NGiNX you could use something like the stream config, but there’s not really an advantage.

    • BanditMcDougalOP
      link
      English
      11 year ago

      I’m not sure that’s right, in the routers section of the Traefik docs they say…

      UDP routers can only target UDP services (and not HTTP or TCP services).

      Feels possible, just not widely documented. I could be completely wrong, though.

      • Nick
        link
        fedilink
        English
        21 year ago

        Oh ok. That’s awesome. I didn’t know it could do UDP/TCP proxying. That’s awesome.