Skip to content

Instantly share code, notes, and snippets.

@smstec
smstec / iptables-pihold-bypass.sh
Created December 12, 2018 18:19
Bypass pihole for certain IP addresses.
#!/bin/bash
# -- Assumptions/Warnings:
# -- You're not using any kind of NAT or custom iptables rules already on the Pi (as these will be wiped)
# -- <PUT_IP_ADDRESS_HERE> is the device you wish to exclude
# -- 1.1.1.1 is the DNS server you wish excluded devices to use (this is the cloudflare server)
# -- stolen from https://www.reddit.com/r/pihole/comments/56y6lb/ignore_one_device_completely/d8niqzi
# Run as root/sudo it.
sysctl net.ipv4.ip_forward=1
@aaomidi
aaomidi / extensions.txt
Last active June 27, 2024 01:07
List of nearly all video file extensions
webm
mkv
flv
vob
ogv
ogg
rrc
gifv
mng
mov