Security Systems and Notes

Notes for configurations and guides I've used.

View on GitHub

Back

Create your Pihole Container using Portainer!

Make folders to hold the data

cd
mkdir portainer
cd portainer
mkdir {etc-pihole,etc-dnsmasq.d}

On newer Ubuntu distros

Open Portainer

Make sure you have your portainer repo templates

Go to App templates and look for Pihole

Click and Edit Advanced Settings

    ports:
      #Domain port 53 for DNS Queries
      - "53:53/tcp"
      - "53:53/udp"
      # "67:67/udp"  If you want Pihole to act as your DHCP server you will need to uncomment this
      #Port 1010 will be the internal port where 80 is the external ( you should change your ports so they don't interfere )
      - "1010:80/tcp"
      #Same as port 80 but this is for https traffic
      - "4443:443/tcp"
      # Changing the port 80 to 83 becausse im gonna use port 80 for something else (homer)
    # Add the path that you created here to store the Pihole data in-between upgrades 
    # Replace the username with yours
    volumes:
      - '/home/banjo/portainer/etc-pihole/:/etc/pihole/'
      - '/home/banjo/portainer/etc-dnsmasq.d/:/etc/dnsmasq.d/'

Network Create (Optional)

Volume Create (Optional)

Look for Login credentials

Access pihole

Add Block lists

Check out this Website for a list of common blocklisted domains There is also this link too from github

Use

You can edit your pc’s network adapter settings to use the IP address of the server you installed pihole on You can login to your router and edit the DHCP settings to assign the IP address to the devices on your network

Documentation

Docker CLI reference

Portainer Documentation

Back