-
Notifications
You must be signed in to change notification settings - Fork 5
/
README.pscaiip
44 lines (23 loc) · 1.47 KB
/
README.pscaiip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Piracy Shield Client by AIIP Integration
** Prerequisites **
First you need a fully installed instance of the Piracy Shield Client. This software is reserved for members of AIIP (Associazione Italiana Internet Providers).
In this example we assume that the docker instance is running and the client can be invoked by CLI.
The Piracy Shield Client by AIIP is invoked by kit-censura, so there is no need to include it on crontab directly. Just use the censorship-cron-pscaiip script instead.
** Configuration File **
In config.sh you need to add "pscaiip" list in the LISTS variable and add the paths for the lists:
# Local file for Piracy Shield Client by AAIP
PATH_pscaiip='/opt/piracy-shield-agent-main/'
# List name
FILE_pscaiip='lista.pscaiip'
# File Paths
PATH_pscaiip_fqdn='/opt/piracy-shield-agent-main/src/storage/app/fqdn/last.txt'
PATH_pscaiip_ipv4='/opt/piracy-shield-agent-main/src/storage/app/ipv4/last.txt'
PATH_pscaiip_ipv6='/opt/piracy-shield-agent-main/src/storage/app/ipv6/last.txt'
** Additional requirements **
Please check and edit the "censorship-cron-pscaiip" file according your installation if needed
** Cron requirements **
Since the Piracy Shield Client need to be invoked more frequently than the kit-censura itself, two commands need to be invoked via cron.
# run every 6 hours
27 */6 * * * root /root/kit-censura/censorship-cron &> /dev/null
# run every 5 minutes
*/5 * * * * root /root/kit-censura/censorship-cron-pscaiip &> /dev/null