Skip to content

Instantly share code, notes, and snippets.

@xpl01ter
xpl01ter / gist:0bba7a5fe5c05b1c530c654e6af036ea
Created November 15, 2021 03:35 — forked from nosuchuser/gist:3a67d06bb054273ef390d4a2ed4a5d89
Configuração Vodafone FTTH / pihole
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
@xpl01ter
xpl01ter / pihole-updatelists.conf
Last active December 20, 2021 04:44
Blocklists pi-hole
; 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"
@xpl01ter
xpl01ter / pi-hole.conf
Created November 15, 2021 02:59
anudeepND Unbound config for speed and security
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
@xpl01ter
xpl01ter / motd.sh
Created November 15, 2021 02:37
RaspberryPi MOTD
#!/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"`