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
|
#!/bin/bash
|
||||||
PEER_KEY=$1
|
PEER_KEY=$1
|
||||||
PEER_ADDRESS=$2
|
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"
|
echo "BANNED KEY: $PEER_KEY $PEER_ADDRESS"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
|
@ -38,7 +38,7 @@ on down "
|
|||||||
";
|
";
|
||||||
|
|
||||||
{% if fastd_anonymous %}
|
{% 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 %}
|
{% endif %}
|
||||||
|
|
||||||
include peers from "peers";
|
include peers from "peers";
|
||||||
|
Loading…
Reference in New Issue
Block a user