Skip to content

Instantly share code, notes, and snippets.

@darknetehf
darknetehf / gist:8973cc6c87f215bea768bf7cee4cabdd
Created May 23, 2024 19:13
Mirroring traffic on network interfaces in Linux
# create dummy interface for testing
# using iproute2
ip link add dummy0 type dummy
ip link set dummy0 up
# using Network Manager
nmcli connection add type dummy ifname dummy0 ipv4.method disabled ipv6.method disabled
# tc rules below
source_if=eth0
@darknetehf
darknetehf / pbs_up-down.sh
Created August 16, 2026 01:12 — forked from ZsZs73/pbs_up-down.sh
Proxmox backup server on-demand wakeonlan wake-on-lan
#!/bin/bash
#
# Instructions
# ------------
# do the following on every node of your cluster
# - save this script to /etc/pbs_up-down.sh
# - chmod 755 /etc/pbs_up-down.sh
# - add the following line to /etc/vzdump.conf on (without the #)
# script: /etc/pbs_up-down.sh
# - set up ssh key authentication from the root@PVE and root@PBS