See my other guides for SSL certificates on Pi-hole v6:
Pi-hole v6 introduces changes to its web server:
- Embedded Web Server – Pi-hole no longer relies on
lighttpd.
See my other guides for SSL certificates on Pi-hole v6:
Pi-hole v6 introduces changes to its web server:
lighttpd.| # Applied to namespace "unifi" with kustomize | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: secret-creator | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: RoleBinding | |
| metadata: | |
| name: secret-creator-role-binding |
| #!/bin/bash | |
| # Simple script to change admin login timeout in pihole version 5.17 and up. | |
| # Note that some versions of pihole used 'loginpage.php' instead of 'login.php' | |
| # make the script executeable by typing: | |
| # chmod +x pihole-timeout.sh | |
| # run it by typing: | |
| # sudo ./pihole-timeout.sh | |
| # Check if user is using sudo or is root: | |
| if [[ $(/usr/bin/id -u) -ne 0 ]]; then |
1/03/2023
| $ # Use Live CD to boot | |
| $ sudo su # Switch to root | |
| $ fdisk -l # Get names of root, boot & EFI partition names. you can also use blkid | |
| $ # http://dadadom.de/2020/04/11/fix-fedora-uefi-boot-with-encrypted-partitions/ | |
| $ udiskctl unlock -b /dev/nvme0n1p6 # unlock root luks partition | |
| $ mount /dev/mapper/fedora_fedora-root /mnt # mount root partition | |
| $ mount /dev/mapper/fedora_fedora-var /mnt/var | |
| $ mount /dev/nvme0n1p5 /mnt/boot # mount boot partition |
| # Gawk version | |
| # Remote | |
| grep -v "rem_address" /proc/net/tcp | awk '{x=strtonum("0x"substr($3,index($3,":")-2,2)); for (i=5; i>0; i-=2) x = x"."strtonum("0x"substr($3,i,2))}{print x":"strtonum("0x"substr($3,index($3,":")+1,4))}' | |
| # Local | |
| grep -v "rem_address" /proc/net/tcp | awk '{x=strtonum("0x"substr($2,index($2,":")-2,2)); for (i=5; i>0; i-=2) x = x"."strtonum("0x"substr($2,i,2))}{print x":"strtonum("0x"substr($2,index($2,":")+1,4))}' | |
| # No Gawk | |
| # Local | |
| grep -v "rem_address" /proc/net/tcp | awk 'function hextodec(str,ret,n,i,k,c){ |
| sqlite3 /etc/pihole/gravity.db -header -csv 'select * from adlist' > adlist.csv | |
| sqlite3 /etc/pihole/gravity.db -header -csv 'select * from vw_whitelist' > whitelist.csv | |
| sqlite3 /etc/pihole/gravity.db -header -csv 'select * from vw_blacklist' > blacklist.csv |