Skip to content

Instantly share code, notes, and snippets.

Your Smart TV is probably ignoring your PiHole (Vyos Edition)

All credit goes to Labzilla for the original article "Your Smart TV is probably ignoring your PiHole".

Force all DNS queries through PiHole

Create NAT Rules

NAT Rule 1: Redirect DNS queries to PiHole

@mbaezner
mbaezner / wireguard-natless.md
Created April 22, 2021 03:13
WireGuard Routing without NAT

WireGuard Routing without NAT

WireGuard Configuration

Remove the iptables masquerade rule from the post-up and post-down section of the WireGuard configuraiton file.

iptables -t nat -A POSTROUTING -o {{ lan_interface }} -j MASQUERADE
@mbaezner
mbaezner / wsl2-chronyd.md
Created April 22, 2021 00:28
Sync Time from Windows Subsystem for Linux 2

Sync Time from Windows Subsystem for Linux 2

Linux running under Windows Subsystem for Linux 2 (WSL2) gets paused when not actively being used. This can cause the time to become of out sync with the reality, leading to package manages failing to establish encrypted connections with servers and fail to install packages. A simple fix is to install Chrony and execute it from the .bashrc file (since Linux in WSL2 does not have a standard supervisor process or serivces; e.g. no crontab for scheduled tasks.)

Install

sudo apt install chrony