• 0 Posts
  • 15 Comments
Joined 3 years ago
cake
Cake day: June 27th, 2023

help-circle







  • The point of the reverse proxy is that it simplifies your firewall configuration… you open one port (443) to one endpoint (your reverse proxy), and that’s it. The more complex your firewall configuration, the more likely you are to get something wrong and accidentally expose what you might not want to expose.

    I do not use my reverse proxy for access control.

    If you’re using containerized applications, then the worst-case scenario is somebody gets root permissions inside the container. Under those circumstances, they can destroy that instance of your application and access any data stored within the container. The thing is, they can ALSO do that if you’re on a VPS.

    If there happens to be a Docker vulnerability that allows file system access to the host AND AT THE SAME TIME an application vulnerability, then you might be in trouble. The confluence of those two events, especially if you keep things updated, is unlikely enough that I have no reservations about hosting public services on my home network.

    But that said… we all have our own level of risk tolerance. If it’s not right for you, then you shouldn’t do it.

    edit: just reading up on huntarr and ooooh boy. Vibe coded app that asked you to provide API keys so it could talk to and control other services. No wonder it caused problems. It’s probably worth saying out loud: if the container you want to install is used to talk to and control other containers, you need to be EXTRA SURE that it’s reputable.





  • tko@tkohhh.socialtoSelfhosted@lemmy.worldHairpin dns issue
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    As I dug into this, I found that it is in fact trivial to change the Unraid UI ports. There’s a setting for it. I can only assume that since Unraid attracts a LOT of novices, bad advice gets passed around and taken as gospel. So, I changed Unraid’s ports, set my reverse proxy to listen on 80/443, updated the NAT on my router, and added the relevant host overrides to the DNS Resolver. Hairpin eliminated. Thanks again!


  • tko@tkohhh.socialtoSelfhosted@lemmy.worldHairpin dns issue
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    Totally fair… I appreciate you engaging with me, your perspective is appreciated! I won’t defend Unraid’s choice when it comes to the UI ports, but I will simply say that there are things that are really nice about Unraid from a usability standpoint.

    Thanks again for your thoughts!


  • tko@tkohhh.socialtoSelfhosted@lemmy.worldHairpin dns issue
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    5 months ago

    The challenge here is that the host is Unraid, which publishes its own interface on 80/443. My reverse proxy is of course handling all requests for my sites, but that is ALSO running on a container, and must be listening on something other than 80/443 when using host or bridge networking.

    So, if I’m following along correctly, I would need to put my reverse proxy on a different host (bare metal or VM) in order for it to listen on 80/443.


  • tko@tkohhh.socialtoSelfhosted@lemmy.worldHairpin dns issue
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    I super appreciate where you’re coming from on this. Unless I’m mistaken, NAT port forwarding makes this not quite so clean. If my (internally hosted) site is published on ports other than 80/443, is there any way to route them internally without needing to include the port in the request?

    If not, then I either have to include the port in my request when I’m inside the LAN, or I need to set up a macvlan in my docker network to facilitate a LAN IP and standard ports.

    Do I have that right?