-
-
Notifications
You must be signed in to change notification settings - Fork 331
Closed
Description
I am having some trouble setting up custom domains and restricting them to specific SSH keys.
For context this is my setup:
- sish domain:
t.hrsn.net- this is the domain used in the SSH command to connect to sish and is the default hostname when not using a custom domain (e.g.tunnel123.t.hrsn.net). - Custom domain:
t.wdh.gg- this is the domain I'm trying to restrict to a specific SSH key. A CNAME record is configured fort.wdh.ggand*.t.wdh.ggpointing tot.hrsn.net. - Cloudflare proxy is disabled.
- I am using Docker compose to host sish.
In my config file I have the following:
bind-any-host: false
bind-hosts: t.wdh.ggNow, this config works and I can setup subdomains on t.wdh.gg like tunnel123.t.wdh.gg however even though I have a TXT record set at _sish.t.wdh.gg with the content:
SHA256:yQ2G5ra7npl6ROKw3BJQWULROIG37u14aMfbfKoWFqQ
Even though that TXT record is in place, anyone regardless if they are using that SSH key are able to use t.wdh.gg subdomains even though it should be restricted to that specific key.
I have tried the following, none of which worked:
- Removing the
bind-hostskey entirely, however when attempting to use a subdomain oft.wdh.ggliketunnel123.t.wdh.ggit would instead bind totunnel123.t.wdh.gg.t.hrsn.net. - Removing the
SHA256:bit from the TXT record, which did not work. - Using the old DNS configuration by creating the following TXT record at
t.wdh.gg(attempted with and without theSHA256:bit):
sish=SHA256:yQ2G5ra7npl6ROKw3BJQWULROIG37u14aMfbfKoWFqQ
Please let me know how I can setup custom domains and restrict them using TXT records to specific SSH keys. Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels