Last active
June 27, 2024 16:26
-
-
Save neocturne/9b426106d35e72298983fb1a7301645d to your computer and use it in GitHub Desktop.
File-based fastd on-verify denylist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maybe use a Git repo to manage deny.d? | |
mkdir /etc/fastd/deny.d | |
# The file can be empty, or be used to store comments about the denylist entry, like a reason | |
echo "I don't like this peer." > /etc/fastd/deny.d/005c33d33cad50e7e187ed5298abeaa1d010f4aae4feddd89812173537f3b395 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on verify " | |
if [ -e \"/etc/fastd/deny.d/$PEER_KEY\" ]; then | |
echo >&2 \"Denied peer key $PEER_KEY\" | |
exit 1 | |
fi | |
echo >&2 \"Accepted peer key $PEER_KEY\" | |
"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment