Skip to content

Instantly share code, notes, and snippets.

@wildy
wildy / hetzner-filter-macs.sh
Created November 29, 2022 05:26
Script to filter any unwanted MACs on the outgoing port of a Hetzner server
#!/bin/sh
PHYS_IF="enp0s31f6"
MAIL_SERVER_MAC="00:50:56:00:B2:C4"
OPNSENSE_MAC="90:1b:0e:c4:42:26"
set -e
echo "Initialize MAC filtering..."
echo "... physical interface is $PHYS_IF"