Re:WireHole: Set up Pihole, WireGuard, and Unbound instantly
by dsissitka on Wednesday September 09, 2020 @06:44PM
(#24426759)
Are you sure? From https://docs.docker.com/compose/compose-file/:
> Either specify both ports (HOST:CONTAINER), or just the container port (an ephemeral host port is chosen).
It sounds like you get a random publicly accessible port unless you specify a non publicly accessible IP. I'm not sure whether having a DNS server listening on a non standard port would be an issue though.
Re:WireHole: Set up Pihole, WireGuard, and Unbound instantly
by byteknight on Wednesday September 09, 2020 @06:54PM
(#24426858)
Sorry! I was wrong you are correct.
but nonetheless you're ingress rules in your cloud provider will not allow anything but that's single port so it's not really a big deal provided you close everything else off in your firewall.
I will make an update to see how I can work around this
Re:WireHole: Set up Pihole, WireGuard, and Unbound instantly
by dsissitka on Wednesday September 09, 2020 @07:12PM
(#24427032)
> but nonetheless you're ingress rules in your cloud provider will not allow anything but that's single port...
That's all that's required for a DNS amplification attack. :)
Re:WireHole: Set up Pihole, WireGuard, and Unbound instantly
by byteknight on Wednesday September 09, 2020 @07:19PM
(#24427099)
Thats not true. DNS isnt on 51820. That's wireguard. You cannot hit the DNS unless you're connected to the wireguard VPN provided you're using a cloud provider and you havent configured any additional ingress rules other than port 51820. That I am positive on.
Re:WireHole: Set up Pihole, WireGuard, and Unbound instantly
by dsissitka on Wednesday September 09, 2020 @07:28PM
(#24427186)
You're right! I thought we were talking about the Pi-hole port. ><
Re:WireHole: Set up Pihole, WireGuard, and Unbound instantly
by jradd on Wednesday September 09, 2020 @07:09PM
(#24427008)
You can try setting up a vpn and no tcp/udp is necessary. Pinhole could be accessed over local network.
Re:WireHole: Set up Pihole, WireGuard, and Unbound instantly
by byteknight on Wednesday September 09, 2020 @07:57PM
(#24427406)
Modified it so that only port 51820 is exposed preventing any unintentional exposure.
Re:WireHole: Set up Pihole, WireGuard, and Unbound instantly
by matrixagent on Wednesday September 09, 2020 @06:22PM
(#24426591)
Ahh, so as long as I only list single ports and not pairs, it is not exposed to the host, because the other number of a pair is the port to be exposed on the host. And therefor it is not exposed to the public network in this case. Makes sense, thanks for the explanation!
Re:WireHole: Set up Pihole, WireGuard, and Unbound instantly
by NerdyBird on Wednesday September 09, 2020 @06:48PM
(#24426797)
This is false. Not listing the host port will make docker choose a random one. It however is still opened up in the firewall by default.
Re:WireHole: Set up Pihole, WireGuard, and Unbound instantly
by byteknight on Wednesday September 09, 2020 @06:58PM
(#24426903)
EDIT 2:
Just provided instructions in the repo for how to configure DDNS: https://github.com/IAmStoxe/wirehole#configuring-for-dynamic...
Also modified it so only the port 51820 is exposed preventing any unintentional exposure.