This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clear | |
let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)" | |
let secs=$((${upSeconds}%60)) | |
let mins=$((${upSeconds}/60%60)) | |
let hours=$((${upSeconds}/3600%24)) | |
let days=$((${upSeconds}/86400)) | |
UPTIME=`printf "%d days, %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: | |
# The verbosity number, level 0 means no verbosity, only errors. | |
# Level 1 gives operational information. Level 2 gives detailed | |
# operational information. Level 3 gives query level information, | |
# output per query. Level 4 gives algorithm level information. | |
# Level 5 logs client identification for cache misses. Default is | |
# level 1. | |
verbosity: 0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Pi-hole's Lists Updater by Jack'lul | |
; https://github.com/jacklul/pihole-updatelists | |
; For a full list of available variables please see the readme. | |
; Remote list URL containing list of adlists to import | |
; URLs to single adlists are not supported here! | |
ADLISTS_URL="https://v.firebog.net/hosts/lists.php?type=nocross https://hosts.anudeep.me/mirror/adservers.txt" | |
; Remote list URL containing exact domains to whitelist | |
WHITELIST_URL="https://raw.githubusercontent.com/anudeepND/whitelist/master/domains/whitelist.txt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Configurar IPv4 estático e IPv6 estático no pihole (YMMV) | |
192.168.1.2 e 2001:818:xxxx::192:168:1:2 no meu caso | |
2. Configurar DNS uplink do pihole igual ao IP do Router (192.168.1.1) | |
3. Configurar Router | |
Huawei HS8247W (Smart Router 2) | |
1. Configurações Avançadas -> LAN -> Configuração de DHCP | |
Servidor DNS Primário: 192.168.1.2 |