Skip to content

Instantly share code, notes, and snippets.

@caraar12345
caraar12345 / sync_2_switches.yaml
Last active April 15, 2023 18:28 — forked from thatdoogieguy/sync_2_switches.yaml
Sync Two Switches in Home Assistant
blueprint:
name: Sync two switch entities
description: Mirror two switches by updating the status of the other linked switch to match the triggered switch state
# Credit to https://github.com/bmaehr for original script logic
domain: automation
input:
switch_object1:
name: Automation
selector:
entity:
@caraar12345
caraar12345 / proxmox-proxy.md
Last active April 19, 2024 13:01 — forked from basoro/proxmox-proxy
Running Proxmox behind a single IP address

I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables.

What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding.

Network configuration

Here’s how it’s done:

  • Create a virtual interface that serves as the gateway for your VMs: