Skip to content

Instantly share code, notes, and snippets.

View justinschw's full-sized avatar

Justin Schwartzbeck justinschw

View GitHub Profile
@andersondanilo
andersondanilo / configure_iptables_transocks_and_create_ap.sh
Last active December 27, 2023 15:54
Redirect trafic to transocks, can also redirect from the "create_ap" network (wifi hotspot)
#!/usr/bin/bash
# Transocks: https://github.com/cybozu-go/transocks
# 1. Install: go get -u github.com/cybozu-go/transocks/...
# Note: depending on your vension of go, you will need the env: GO111MODULE=on
# 2. Create a "transocks" user
# 3. Execute: sudo -u transocks $HOME/go/bin/transocks -f transocks.toml
set -e
stty -echoctl
@johannrichard
johannrichard / unbound-safe-search.conf
Last active July 9, 2024 08:43
Unbound DNS Safe Search config entries
# Safe Search Domains
# Paste / Add this to your Unbound config
local-data: "yandex.com A 213.180.193.56"
local-data: "yandex.ru A 213.180.193.56"
local-data: "yandex.ua A 213.180.193.56"
local-data: "yandex.by A 213.180.193.56"
local-data: "yandex.kz A 213.180.193.56"
local-data: "www.yandex.com A 213.180.193.56"
local-data: "www.yandex.ru A 213.180.193.56"
local-data: "www.yandex.ua A 213.180.193.56"