Skip to content

Instantly share code, notes, and snippets.

View mueslimak3r's full-sized avatar

Cameron mueslimak3r

  • United States
View GitHub Profile
@mueslimak3r
mueslimak3r / caddy-security-caddyfile
Created May 1, 2022 07:47
caddy security caddyfile for google oath2
{
admin off
http_port 80
https_port 443
order authenticate before respond
order authorize before basicauth
security {
color change sapphire
color change garnet
uvarovite garnet
tsavorite garnet
tiger eye
star sapphire
spessartite garnet
smoky quartz
saltwater pearl
rose quartz
@mueslimak3r
mueslimak3r / jellyfin-docker-compose.yaml
Last active December 5, 2021 03:24
jellyfin docker compose
---
version: "2.1"
services:
jellyfin:
image: linuxserver/jellyfin
container_name: jellyfin
#runtime: nvidia
environment:
- PUID=1000 # user id
- PGID=1000 # group id
@mueslimak3r
mueslimak3r / jellyfin-caddy-fail2ban-auth
Last active March 6, 2024 19:25
caddy jellyfin fail2ban authentication ban
**caddy config for jellyfin:**
jellyfin.mydomain.com {
reverse_proxy http://192.168.0.1212:2121
log {
output file /var/log/caddy/JellyfinProxy.log {
roll_size 2MiB # Set max size 5 MB
roll_local_time true # Use localhost time
roll_keep 4 # Keep at most 2 log files
@mueslimak3r
mueslimak3r / ttl-mods.txt
Last active September 4, 2023 15:04
ttl mods for mangling TTL behind an LTE modem
# iptables rules for mangling ipv4 and ipv6 traffic
# prerouting rules appear to prevent leaks to the ISP
iptables -t mangle -I PREROUTING 1 -j TTL --ttl-set 65
ip6tables -t mangle -I PREROUTING 1 -j HL --hl-set 65
# postrouting rules do the heavy lifting
iptables -t mangle -I POSTROUTING 1 -j TTL --ttl-set 65
ip6tables -t mangle -A POSTROUTING 1 -j HL --hl-set 65