Commit 8681bde0 authored by root's avatar root

Move dpirules.conf to dpirules.json

parent 2b7baae4
......@@ -54,12 +54,12 @@ templconf = """
"""
try:
fconf = open("/etc/nexdpi/dpirules.conf", "r")
fconf = open("/etc/nexdpi/dpirules.json", "r")
R=json.loads(fconf.read())
fconf.close()
except:
print(" Cant start without a rules file.\n\n")
print(" Please use the following example to create a JSON config file as /etc/nexdpi/dpirules.conf\n\n")
print(" Please use the following example to create a JSON config file as /etc/nexdpi/dpirules.json\n\n")
print(templconf)
sys.exit(0)
......
{
"Cats":{
"SocialNetwork":{
"nostart": ["DNS", "ICMP", "IGMP", "DHCP", "DHCPv6", "IGMP", "LLMNR", "ICMP", "ICMPv6", "LLMNR", "MDNS", "NetBIOS", "WSD"],
"noapps": "TikTok",
"knownapps": ["Reddit", "Instagram", "Reddit", "Twitter"],
"ipset": "social_triplet",
"timeout":"3600"
},
"Network":{
"nostart": [],
"noapps": [],
"knownapps": ["DHCP", "DHCPV6", "DNScrypt", "DoH_DoT", "DNS", "Ookla", "ICMP", "ICMPV6", "IGMP", "LLMNR", "MDNS", "DoH_DoT", "Ookla", "WSD"],
"ipset": "system_triplet",
"timeout":"3600"
},
"Game":{
"nostart": [],
"noapps": [],
"knownapps": ["Steam", "Xbox", "Playstation"],
"ipset": "streaming_triplet",
"timeout":"3600"
},
"Template-GroupName":{
"nostart": ["DNS", "ICMP"],
"noapps": [],
"knownapps": [],
"ipset": "name_ipset",
"timeout":"3600"
}
},
"Apps":{
"TikTok":{
"ipset": "kids_triplet",
"nostart": [],
"timeout": "3600",
"knowstarts":"TLS"
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment