pihole
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| pihole [2024/04/20 16:34] – zainal | pihole [2024/04/20 22:46] (current) – zainal | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Pi Hole Ad Blocker====== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | Pi Hole dirancang dan populer digunakan dalam single board computer Raspberry Pi. Namun ada opsi lain juga untuk linux x64 & x32. | ||
| + | |||
| + | ===== Instalasi ===== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | '' | ||
| + | cd " | ||
| + | sudo bash basic-install.sh'' | ||
| + | |||
| + | ===== Admin Web interface ===== | ||
| + | |||
| + | http:// | ||
| + | |||
| + | ===== Blok internet device tertentu ===== | ||
| + | |||
| + | Saya menggunakan cara ini untuk membatasi TV yang dipakai anak untuk menonton Youtube.\\ | ||
| + | Memang bukan secara langsung memutus koneksi internet. Cara ini membuat device tidak bisa mendapatkan DNS reply. | ||
| + | |||
| + | Di Web Admin pilih '' | ||
| + | Group Assignment kepada group device yang berisi device yang akan kita batasi. | ||
| + | |||
| + | ===== Error port 53 binding when install via docker ===== | ||
| + | |||
| + | When the Port 53 is already in Use, you can check this with this command (ubuntu): | ||
| + | |||
| + | Port 53 is being used at your host machine, that's why you can not bind 53 to host. | ||
| + | |||
| + | To find what is using port 53 you can do: sudo lsof -i -P -n | grep LISTEN | ||
| + | |||
| + | I'm a 99.9% sure that systemd-resolved is what is listening to port 53. | ||
| + | |||
| + | To solve that you need to edit the / | ||
| + | |||
| + | After that reboot your system or restart the service with | ||
| + | |||
| + | service systemd-resolved stop \\ | ||
| + | service systemd-resolved restart | ||
| + | |||
| + | ===== Docker YAML ====== | ||
| + | |||
| + | version: " | ||
| + | | ||
| + | # More info at https:// | ||
| + | services: | ||
| + | pihole: | ||
| + | container_name: | ||
| + | image: pihole/ | ||
| + | # For DHCP it is recommended to remove these ports and instead add: network_mode: | ||
| + | ports: | ||
| + | - " | ||
| + | - " | ||
| + | # - " | ||
| + | - " | ||
| + | environment: | ||
| + | TZ: ' | ||
| + | WEBPASSWORD: | ||
| + | # Volumes store your data between container upgrades | ||
| + | volumes: | ||
| + | - '/ | ||
| + | - '/ | ||
| + | # | ||
| + | #cap_add: | ||
| + | # - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed | ||
| + | restart: unless-stopped | ||
| + | | ||
| + | volumes: | ||
| + | etc-pihole: | ||
| + | |||
| + | |||
| + | |||
pihole.txt · Last modified: by zainal
