-
-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui,plugins: added configuration examples
- Loading branch information
1 parent
81757c6
commit 14747a0
Showing
4 changed files
with
222 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"name": "downloadersActions", | ||
"created": "", | ||
"updated": "", | ||
"description": "download ads/malware lists, save them to a local directory, and create a rule to filter by lists in that directory", | ||
"type": ["global"], | ||
"actions": { | ||
"downloader": { | ||
"enabled": true, | ||
"config": [ | ||
{ | ||
"name": "update ads lists", | ||
"interval": "6", | ||
"units": "hours", | ||
"urls": [ | ||
{ | ||
"name": "adaway", | ||
"enabled": true, | ||
"remote": "https://adaway.org/hosts.txt", | ||
"localfile": "/tmp/blocklist/ads-adaway-hosts.txt" | ||
}, | ||
{ | ||
"name": "developerdan", | ||
"enabled": true, | ||
"remote": "https://www.github.developerdan.com/hosts/lists/tracking-aggressive-extended.txt", | ||
"localfile": "/tmp/blocklist/ads-tracking-aggressive-extended.txt" | ||
}, | ||
{ | ||
"name": "1hosts", | ||
"enabled": true, | ||
"remote": "https://raw.githubusercontent.com/badmojr/1Hosts/master/Pro/hosts.txt", | ||
"localfile": "/tmp/blocklist/ads-1hosts.txt" | ||
}, | ||
{ | ||
"name": "frogeye multipary", | ||
"enabled": true, | ||
"remote": "https://hostfiles.frogeye.fr/multiparty-trackers-hosts.txt", | ||
"localfile": "/tmp/blocklist/frog-multiparty.txt" | ||
}, | ||
{ | ||
"name": "frogeye firstpary", | ||
"enabled": true, | ||
"remote": "https://hostfiles.frogeye.fr/firstparty-trackers-hosts.txt", | ||
"localfile": "/tmp/blocklist/frog-firstparty.txt" | ||
}, | ||
{ | ||
"name": "urlhaus", | ||
"enabled": true, | ||
"remote": "https://urlhaus.abuse.ch/downloads/hostfile/", | ||
"localfile": "/tmp/blocklist/urlhaus-hosts.txt" | ||
}, | ||
{ | ||
"name": "pgl.yoyo.org", | ||
"enabled": true, | ||
"remote": "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext", | ||
"localfile": "/tmp/blocklist/pgl.yoyo.txt" | ||
} | ||
], | ||
"notify": { | ||
"success": { | ||
"desktop": "Blocklists updated" | ||
}, | ||
"error": { | ||
"desktop": "Error updating blocklists" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
ui/opensnitch/plugins/highlight/example/commonActionsDelegate.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"name": "commonDelegateConfig", | ||
"created": "", | ||
"updated": "", | ||
"description": "customize Events tab view colors. Name of this action MUST be commonDelegateConfig for now", | ||
"actions": { | ||
"Highlight": { | ||
"enabled": true, | ||
"cells": [ | ||
{ | ||
"text": [ | ||
"allow", | ||
"✓ online" | ||
], | ||
"cols": [1, 2, 3], | ||
"color": "green", | ||
"bgcolor": "", | ||
"alignment": [ | ||
"center" | ||
] | ||
}, | ||
{ | ||
"text": [ | ||
"deny", | ||
"☓ offline" | ||
], | ||
"cols": [1, 2, 3], | ||
"color": "red", | ||
"bgcolor": "", | ||
"alignment": [ | ||
"center" | ||
] | ||
}, | ||
{ | ||
"text": [ | ||
"reject" | ||
], | ||
"cols": [1, 2, 3], | ||
"color": "purple", | ||
"bgcolor": "", | ||
"alignment": [ | ||
"center" | ||
] | ||
} | ||
], | ||
"rows": [ | ||
{ | ||
"text": [ | ||
"-> 53" | ||
], | ||
"cols": [3], | ||
"color": "black", | ||
"bgcolor": "yellow", | ||
"alignment": [] | ||
}, | ||
{ | ||
"text": [ | ||
"-> 443" | ||
], | ||
"cols": [3], | ||
"color": "white", | ||
"bgcolor": "darkRed", | ||
"alignment": [] | ||
}, | ||
{ | ||
"text": [ | ||
"block-domains" | ||
], | ||
"cols": [8], | ||
"color": "white", | ||
"bgcolor": "darkMagenta", | ||
"alignment": [] | ||
} | ||
] | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
ui/opensnitch/plugins/highlight/example/rulesActionsDelegate.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name": "defaultRulesDelegateConfig", | ||
"created": "", | ||
"updated": "", | ||
"description": "customize rules list. The name of this action MUST be defaultRulesDelegateConfig for now.", | ||
"actions": { | ||
"Highlight": { | ||
"enabled": true, | ||
"cells": [ | ||
{ | ||
"text": ["allow", "True"], | ||
"cols": [3, 4], | ||
"color": "green", | ||
"bgcolor": "", | ||
"alignment": ["center"] | ||
}, | ||
{ | ||
"text": ["deny", "False"], | ||
"cols": [3, 4], | ||
"color": "red", | ||
"bgcolor": "", | ||
"alignment": ["center"] | ||
}, | ||
{ | ||
"text": ["reject"], | ||
"cols": [3, 4], | ||
"color": "purple", | ||
"bgcolor": "", | ||
"alignment": ["center"] | ||
} | ||
], | ||
"rows": [ | ||
{ | ||
"text": ["allow"], | ||
"cols": [4], | ||
"color": "white", | ||
"bgcolor": "green" | ||
}, | ||
{ | ||
"text": ["deny"], | ||
"cols": [4], | ||
"color": "white", | ||
"bgcolor": "crimson" | ||
}, | ||
{ | ||
"text": ["False"], | ||
"cols": [3], | ||
"color": "black", | ||
"bgcolor": "darkGray" | ||
} | ||
] | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "virustotal", | ||
"created": "", | ||
"updated": "", | ||
"description": "analyze connections with Virustotal", | ||
"type": ["popups", "proc-dialog"], | ||
"actions": { | ||
"virustotal": { | ||
"enabled": true, | ||
"config": { | ||
"api_timeout": 2, | ||
"api_key": "https://virustotal.readme.io/docs/please-give-me-an-api-key", | ||
"api_domains_url": "https://www.virustotal.com/api/v3/domains/", | ||
"api_ips_url": "https://www.virustotal.com/api/v3/ip_addresses/", | ||
"api_files_url": "https://www.virustotal.com/api/v3/files/" | ||
}, | ||
"check": ["domains", "ips", "hashes"] | ||
} | ||
} | ||
} |