forked from FF-RGB/ansible
Blacklist refined, More shortcutters added
This commit is contained in:
parent
79e2558732
commit
009639b6a2
@ -1,3 +1,5 @@
|
||||
{
|
||||
"ffnwshortcutter": "739ef68045fbc0614e526ecdabdf82e8142762e909e4a101d21d0dbd88d282da"
|
||||
"ffnwshortcutter": "739ef68045fbc0614e526ecdabdf82e8142762e909e4a101d21d0dbd88d282da",
|
||||
"penner1": "3d0bfe6ff87becf0245385dca02206497a8845199742a7d766cc71913ea5e0e6",
|
||||
"penner2": "f2fca7649bc086366930441d6737ffed7fd1fc809ff775917303493ff27e06fc"
|
||||
}
|
||||
|
@ -5,6 +5,6 @@ if /bin/grep -Fq $PEER_KEY /opt/ffrgb_cty/vpn-blacklist/blacklist.json; then
|
||||
echo "BANNED KEY: $PEER_KEY $PEER_ADDRESS"
|
||||
exit 1
|
||||
else
|
||||
echo "CLEAN KEY: $PEER_KEY "
|
||||
echo "CLEAN KEY: $PEER_KEY $PEER_ADDRESS"
|
||||
exit 0
|
||||
fi
|
||||
|
@ -45,7 +45,7 @@
|
||||
with_sequence: start=0 count={{ fastd_instances }}
|
||||
|
||||
- name: Create Blacklist Script
|
||||
copy: src=blacklist.sh dest=/etc/fastd/{{ site_code }}/blacklist.sh mode=0755 force=no
|
||||
copy: src=blacklist.sh dest=/etc/fastd/{{ site_code }}/blacklist.sh mode=0755 force=yes
|
||||
|
||||
- name: Create symlinks (blacklist)
|
||||
file: src=/etc/fastd/{{ site_code }}/blacklist.sh dest=/etc/fastd/{{ site_code }}{{ item }}/blacklist.sh state=link
|
||||
|
@ -38,7 +38,7 @@ on down "
|
||||
";
|
||||
|
||||
{% if fastd_anonymous %}
|
||||
on verify "/etc/fastd/{{ site_code }}/blacklist.sh /opt/{{ site_code }}/vpn-blacklist/blacklist.json";
|
||||
on verify "/etc/fastd/{{ site_code }}/blacklist.sh $PEER_KEY $PEER_ADDRESS /opt/{{ site_code }}/vpn-blacklist/blacklist.json";
|
||||
{% endif %}
|
||||
|
||||
include peers from "peers";
|
||||
|
Loading…
Reference in New Issue
Block a user