mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
ui,plugins: added configuration examples
This commit is contained in:
parent
81757c6840
commit
14747a04ad
4 changed files with 222 additions and 0 deletions
71
ui/opensnitch/plugins/downloader/example/downloaders.json
Normal file
71
ui/opensnitch/plugins/downloader/example/downloaders.json
Normal file
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
20
ui/opensnitch/plugins/virustotal/example/virustotal.json
Normal file
20
ui/opensnitch/plugins/virustotal/example/virustotal.json
Normal file
|
@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue