On my Lan I have 192.168.1.111 hosting a bunch of various services not containerized. All connections are done either from my internal lan or from wireguard going through 192.168.1.111 so no external traffic bar wireguard.

I’ve set the host name of 111 in the hosts file inside the router and 111 and it works for all devices expect the ones connecting via wireguard.

But I dont want to have to use hostname+port for every service, I’d like each service to have its own name. I’d also like certs.

Can someone point me in the right direction for what I need to do? I’m thinking maybe this requires a local DNS server which im hesitant to run because im happy using 8.8.8.8.

For certs do I create a single cert on the 192.168.1.111 and then point all the applications to it?

  • KyuubiNoKitsune@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 months ago

    I don’t see anyone else recommending it here but you can also use Traefik, that’s what I use. I’ve set it up so that I can automatically add any docker hosted apps based on the container tags, it makes it convenient to use.

  • irmadlad@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    As others have said, reverse proxy. My experience is with Caddy and LetsEncrypt. If you wanted to step it up a couple notches, you could go with Cloudflare tunnels/zero trust. With the latter scenario, you’ll need a domain name that you can change the nameservers to Cloudflare assigned nameservers. With the Cloudflare option, you don’t have to fiddle with ports, UFW, or NAT. Just install on your server and it punches a fully encrypted tunnel.

  • fruitycoder@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    Reverse proxies! They can redirect based on the dns name used to get to them. This is based on layer 7 data though so just http(s) services and not multiple ssh tunnels for example.

    k3s/rke2 (k8s distros) do it automatically with Traefik when you use the gateway or ingres apis

    Also for DNS a fun option is sslip.io which lets you do <some service>-192-168-1-10.sslip.io and it redirects to your ip but with a dns name added.

    Though your router likely has an easy way to add local entries for dns and also upstream for the rest (i.e. 8.8.8.8)

  • CameronDev@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    3 months ago

    Nginx proxy manager can help you with all of that.

    basically want a domain name that you can use to subdomain each service off.

    E.g:

    https://service1.auth.local/ -> proxies your first service (192.168.1.111:4567)

    Https:/service2.auth.local -> proxies to the second (192.168.1.123:9876) And so on.

    If you purchase an actual domain name, you can get letencrypt certs via nginx proxy manager, and it all works very smoothly.

    • Auth@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      Ok thanks ill give that ago tonight. I never would have thought of a proxy manager.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 months ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    CA (SSL) Certificate Authority
    DHCP Dynamic Host Configuration Protocol, automates assignment of IPs when connecting to a network
    DNS Domain Name Service/System
    HTTP Hypertext Transfer Protocol, the Web
    IP Internet Protocol
    NAT Network Address Translation
    SSL Secure Sockets Layer, for transparent encryption
    nginx Popular HTTP server

    7 acronyms in this thread; the most compressed thread commented on today has 7 acronyms.

    [Thread #113 for this comm, first seen 24th Feb 2026, 01:20] [FAQ] [Full list] [Contact] [Source code]

  • mrnobody@reddthat.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    First off, get of for DNS!!! Use 9.9.9.9 (quad9) or DNS.watch for God’s sake! Even 1.1.1.1 is better!

  • LievitoPadre@feddit.it
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    You need a thing called reverse proxy. There are many available.

    Some suggested nginx, I recommend to give a try to caddy. It’s easier than nginx and includes the certificate management as well.

      • hamsda@feddit.org
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        Currently using nginx-proxy-manager for exactly this purpose. Nice and easy-to-use UI, including automatic LetsEncrypt ssl certificates :)