• silfer@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 hours ago

    Reverse proxy for services for friends and family

    Tailscale for my remote services

    Basically everything is in docker containers.

  • lch361@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    16 hours ago

    Rootless LXC containers, TLS. In my case, I have both VPS and my own hardware, so every sensitive data is hosted on the hardware only.

  • grue@lemmy.world
    link
    fedilink
    English
    arrow-up
    42
    ·
    2 days ago

    My stuff is only accessible from my LAN (because I haven’t figured out how to set up a tunnel or reverse proxy yet).

    • zebidiah@lemmy.ca
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 days ago

      I’m in this boat too, my security is awful, bad practices everywhere, my solution: don’t let it go out in public…

      • Solrac@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        Screw Tailscale, ZeroTier and specially cloudflare, all centralized, all with changable terms.

        Use a VPS, lowest spec but good bandwidth, and use Wireguard VPN for your VPS and homeserver, and nginx or caddy to make a Reverse Proxy

        • horus_son_of_isis@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          5 hours ago

          I’m so close to doing this. Cloudflare makes me nervous. Have you heard of Rathole? That was recommended to basically do what my cloudflared tunnel is already doing. The only trouble I could see was I was going to have to keep the cloudflared access controls.

        • reddit_sux@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 day ago

          All agreed but not every homelabber can spend money for something that is not the main job or contributed to work. Tailscale for now works well enough for free.

          Cloudflare agreed is not something I would trust.

      • grue@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        I’ve tried to use ZeroTier because Tailscale still has centralized servers for starting the connection, but had trouble getting it to work. Maybe I should stop letting the perfect be the enemy of the good.

  • curbstickle_lw@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 days ago

    Secure enough I suppose.

    f2b at the FW, auth with MFA for anything exposed, anything local only has restricted access at the FW level, with exposed (via proxy) and local-only (separate proxy) on different vlans. Each service is (typically, with some exceptions) an LXC, with additional rules and templated out based on use case. The few cases where docker is involved is local-only and that has its own vlan with additional rules.

  • tired_n_bored@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 day ago

    I have 3 subnets. One for me, one for family members and one for the publicly accessible services I expose. Each process has limited access to the file system, no root shell and even in the case someone gains full control of it they can’t reach other subnets. I use fail2ban too.

    For the “me” part, I connect through a VPN. I’d like to run rootless docker services tho, or by using Podman

  • CameronDev@programming.dev
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 days ago

    User process makes sense, but login shell is probably limited value. If your service gets pwn’d the attacker will spin up a reverse shell, and that isn’t protected by the login shell. You ideally want to use selinux/apparmor to prevent execution, or containers to limit the available execution environment.

  • lntl@lemmy.ml
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 days ago

    I operate SSH, nginx, and uvicorn like this:

    SSH

    • pubkey auth only
    • not on default port
    • AllowUsers var in sshd.conf is set

    nginx

    • runs as its own user
    • serves static files or forwards to uvicorn
    • rate limits are set
    • returns 444 on requests that aren’t in sitemap.xml (nonsense and probing)

    uvicorn

    • runs as its own user

    and a firewall runs on top of everything in a hardened kernel. I’m self taught, so I could be missing something obvious and this setup has been reliable for me for a few years.

    • jello@programming.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      Do you have any sort of access limiting, either by whitelist (e.g. Tailscale), or blacklist (e.g. Crowd-Sec)?

      • lntl@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        2 days ago

        Nope, I’m accessible on the WAN and the webserver is intentionally public facing.

        Edit: AllowUsers in sshd.conf is my access control