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

    If your using docker and the ports are bound you can just use the network mode host so the container gets it’s own ip. It’s how I have adguard running on my unraid server

    • StarkZarn@infosec.pub
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 hour ago

      That’s not how that works. network_mode: host shares the network namespace with the container host, so it doesn’t do any NAT, it only exists on the host’s IP. It would be akin to running a natively installed app, rather than in a container. macvlan networking is what gives a container its own IP on the logical network, without the layer of NAT that the default bridge mode networking that docker typically does.