forked from FF-RGB/ansible
Added IP to logging for helping mitigate Shortcuts
This commit is contained in:
parent
009639b6a2
commit
10738aa721
@ -1,7 +1,8 @@
|
||||
#!/bin/bash
|
||||
PEER_KEY=$1
|
||||
PEER_ADDRESS=$2
|
||||
if /bin/grep -Fq $PEER_KEY /opt/ffrgb_cty/vpn-blacklist/blacklist.json; then
|
||||
BLACKLIST=$3
|
||||
if /bin/grep -Fq $PEER_KEY $BLACKLIST; then
|
||||
echo "BANNED KEY: $PEER_KEY $PEER_ADDRESS"
|
||||
exit 1
|
||||
else
|
||||
|
@ -38,7 +38,7 @@ on down "
|
||||
";
|
||||
|
||||
{% if fastd_anonymous %}
|
||||
on verify "/etc/fastd/{{ site_code }}/blacklist.sh $PEER_KEY $PEER_ADDRESS /opt/{{ site_code }}/vpn-blacklist/blacklist.json";
|
||||
on verify "/etc/fastd/{{ site_code }}/blacklist.sh $PEER_KEY $PEER_ADDRESS /etc/fastd/{{ site_code }}/vpn-blacklist/blacklist.json";
|
||||
{% endif %}
|
||||
|
||||
include peers from "peers";
|
||||
|
Loading…
Reference in New Issue
Block a user