![]() ![]() Select the “Continue” optin with the arrow keys and press the “Enter” key. You can, of course, set the static IP address later if you wish. I already mentioned doing this in OPNsense so that your container will be ready to go with the static IP address ahead of time. You will see a message about needing to set up Pi-hole with a static IP address. Press the “Enter” key to continue after being prompted about the project being funded by donations. You are now installing a “network-wide ad blocker”! Press the “Enter” key to continue. You will see the installation script running. Those familiar with Debian-based Linux distributions will recognize the commands to update the OS via command line. Update OS Software in the ContainerĪfter the container has been created and is running, you should update the Operating System software. I will assume you are logged in as root for the remaining portion of this guide. On the “Console” section on the Pi-hole container, login as the root user using the password you entered when you created the container. ![]() You should see the container being generated and a “TASK OK” when it is done. By default, the container will use the Proxmox host DNS server, which will not work if your container is located on a different network than your Proxmox host system unless you allow it via firewall rules in OPNsense.įinally, click “Start after created” and then “Finish” in order to create and start the new container. You will need to enter the DNS server of the LAN network such as 192.168.1.1 so the container itself can reach DNS. ![]() I have noticed that even though I am using DHCPv6 on my network, selecting “SLAAC” for Proxmox containers allows the containers to properly get an IPv6 address assigned. If you wish to use “IPv6” as well, you can select “SLAAC”. In my example, I am placing it on the LAN network, which I am using as the management LAN where all of the network infrastructure is located.įor “IPv4”, select “DHCP” since it will be assigned to the static IP that was reserved in OPNsense. On the “Network” section, you will need to select the “Bridge” for the network where you want to locate Pi-hole. You just have to be careful not to overprovision your resources too much. If you want to keep things as tight as possible, you may even set it as low as 128 MB, but keep in mind that if the container is only using 100 MB of RAM and you have it set to 512 MB of RAM, the 412 MB of unused RAM can still be used by other containers/VMs. I did not see the warning message when using 2 cores for the container.įor “Memory”, you should be able to set this to 256 MB. Depending on the speed of your system, you may or may not need to use 2 cores. Pi-hole is lightweight so you might be able to get away with 1 core, but I noticed that when Pi-hole first was importing the list of domains to block that it displayed a warning message about exceeding 100% CPU usage. Note that you can easily allocate more space later without needing to recreate your container or do anything special inside the container for the additional space to be recognized.įor the “CPU”, you can enter 2 cores. The container defaults to 8 GB of disk space, but you can set it a bit higher if you want. Even with using Ubuntu, the resources used by the container is still very minimal as you will see once Pi-hole is up and running.Ĭhoose the “Storage” location for the container if you have more locations besides the default “local” location. You may use a lighter weight Linux template, but I am personally comfortable with Ubuntu/Debian Operating Systems. I will be using the Ubuntu 22.04 template in my example. Click “Next”.Ĭhoose the “Storage” where your container template is stored (you need to download a CT template before you can create any containers). Finally, enter the “Password” for the root user of the container. On the Proxmox web interface, click on “Create CT” to create a container to use for Pi-hole.Įnter an unused “CT ID” number as well as the “Hostname” used for the container. If you make Pi-hole the upstream DNS server for Unbound DNS on OPNsense, you will simply see the OPNsense router as the only client in Pi-hole so you lose the ability to see the DNS queries on individual clients on your network.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |