blue-painting-27230
03/22/2023, 7:17 AMjolly-london-20127
03/22/2023, 9:01 AMjolly-london-20127
03/22/2023, 9:01 AMjolly-london-20127
03/22/2023, 9:01 AMjolly-london-20127
03/22/2023, 9:02 AMblue-painting-27230
03/23/2023, 7:00 AMblue-painting-27230
03/23/2023, 7:45 AMjolly-london-20127
03/23/2023, 11:07 AMjolly-london-20127
03/23/2023, 11:08 AMblue-painting-27230
03/23/2023, 11:47 AMjolly-london-20127
03/23/2023, 12:44 PMblue-painting-27230
03/23/2023, 1:10 PMblue-painting-27230
03/23/2023, 6:01 PMjolly-london-20127
03/23/2023, 6:04 PMblue-painting-27230
03/23/2023, 6:04 PMnetmaker | [netmaker] Fatal: Unable to initialize iptables on host: lookup coredns on 127.0.0.11:53: no such hostblue-painting-27230
03/23/2023, 6:05 PMjolly-london-20127
03/23/2023, 6:05 PMjolly-london-20127
03/23/2023, 6:06 PMjolly-london-20127
03/23/2023, 6:06 PMblue-painting-27230
03/23/2023, 6:06 PMblue-painting-27230
03/23/2023, 6:06 PMjolly-london-20127
03/23/2023, 6:06 PMblue-painting-27230
03/23/2023, 6:06 PMblue-painting-27230
03/23/2023, 7:05 PMblue-painting-27230
03/23/2023, 7:05 PMSo if anyone stumbles over this when searching, this is what I did to get pihole working with netmaker as a vpn:
Install netmaker as normal with the installer script on github, after it is up and running and you've confirmed that it works do the following:
Stop the containers (docker-compose down)
Edit the docker-compose.yml:
1. change 'DNS_MODE: "on"' to 'DNS_MODE: "off"'
2. change 'PORT_FORWARD_SERVICES: "dns"' to 'PORT_FORWARD_SERVICES: ""'
3. Comment out every line for coredns (you don't need it anymore, probably)
4. add a standard pihole setup from the pi-hole github instructions for pihole, but change ports 80 to 8080, and add 'WEB_PORT: 8080' under environment.
Start the containers again (docker-compose up)
Bash into the pihole container (docker exec -it pihole bash)
Set a new password for pihole (pihole -a -p) and exit it
Port forward 8080 if you haven't for pihole
Go into the pihole webui, and make sure DNS is set to allow only local requests
Run the command "docker network inspect root_default" on your server and find the IPv4Adress for your pihole docker
In the netmaker ui, setup a new network, and go to the newly created node and make it an ingress and egress node
Go to the newly created network, and set "Default Ext Client DNS" to the ip address for the pihole docker that you grabbed earlier
Add an external client, add it to your wireguard on your phone/laptop/smart toaster, and you're up and running with a pihole'd VPN.
Un-portforward your pihole webui, it can be accessed on the open internet currently, you want that to only be available when on vpnblue-painting-27230
03/23/2023, 7:07 PM