Skip to content

Instantly share code, notes, and snippets.

@rotanid
Last active June 14, 2017 09:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rotanid/489075e72472fafa9a209e0313aee9d7 to your computer and use it in GitHub Desktop.
Save rotanid/489075e72472fafa9a209e0313aee9d7 to your computer and use it in GitHub Desktop.
fastd verify script
#!/bin/bash
# Implementierung einer Fastd Blacklist
# Das Script wird aus Fastd beim Aufbau einer Verbindung aufgerufen
# Die geblockten Keys werden in der Datei blacklist aufgeführt
PEER_KEY=$1
if /bin/grep -q "^$PEER_KEY" /etc/fastd/blacklist; then
exit 1
else
exit 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment