Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
nexdpi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
sysadmin
nexdpi
Commits
8681bde0
Commit
8681bde0
authored
Apr 24, 2021
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move dpirules.conf to dpirules.json
parent
2b7baae4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
2 deletions
+47
-2
dpi
dpi
+2
-2
dpirules.json
dpirules.json
+45
-0
No files found.
dpi
View file @
8681bde0
...
...
@@ -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
)
...
...
dpirules.json
0 → 100644
View file @
8681bde0
{
"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"
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment