unifi-utilities / unifios-utilities

A collection of enhancements for UnifiOS based devices
GNU General Public License v3.0
3.91k stars 420 forks source link

nspawn-container - having network connection issues during initial setup - looking for confirmation #544

Closed waffles0042 closed 1 year ago

waffles0042 commented 1 year ago

I updated my UDM-P to 3.20 earlier today and are now trying to get my PiHole installed on it again. I have been working my way through the instructions, but keep running into network connection issues with the custom container.
I wonder if I may have have run into a mix-up of the container vs. the gateway address: is what's shown for the Address for the file 'mv-br5.network' correct? See blue arrow. Shouldn't this /24 be part of the Gateway address, as shown in the other 2 screenshots? Thanks!

image image image

waffles0042 commented 1 year ago

So I went with the installation as described above. While in the Debian Container, I can ping an IP address, but DNS does not seem to work. pinging google.com is not being recognized. Furthermore, my pi-hole installation attempts fail:

(sorry for the poor formatting...I tried to include the CLI content as code, but obviously failed :-( )

`Firmware version: v3.0.20

.__. | | |__ |_ __/| | | / | || ) | | (c) 2010-2023 | | | | \ || \ | | Ubiquiti Inc. |__|| /||/ || |/ https://www.ui.com

  Welcome to UniFi Dream Machine Pro!

***** NOTICE **

Any help would be greatly appreciated!

waffles0042 commented 1 year ago

Here is what I get for ip addr show

image

waffles0042 commented 1 year ago

I think I got it working now.

  1. the IP configurations in the guide are correct (=> my initial post)

  2. I think I had missed this step (even though I had used the scripted install) image

Once I manually added "nameserver 1.1.1.1" image

.... I was able to complete the PiHole installation.

All set for now!

Hope this is helpful to s.o. in a similar situation.

NullVoxPopuli commented 1 year ago

if you're using 1.1.1.1 for the nameserver, does that mean you're not use the pi-hole for DNS?

waffles0042 commented 1 year ago

if you're using 1.1.1.1 for the nameserver, does that mean you're not use the pi-hole for DNS?

I am image

But to be able to install PiHole in the first place, I needed an 'outside' name server, as far as I understand.