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
4f0d4f88
Commit
4f0d4f88
authored
Jun 17, 2021
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bridge
parent
80a51904
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
dpi
dpi
+1
-1
shaping
shaping
+6
-3
No files found.
dpi
View file @
4f0d4f88
...
...
@@ -21,7 +21,7 @@ deftimeout="3600"
setproctitle
(
"dpi"
)
online_streamer
=
NFStreamer
(
source
=
"
br0
"
,
promiscuous_mode
=
False
,
splt_analysis
=
20
,
statistical_analysis
=
False
)
online_streamer
=
NFStreamer
(
source
=
"
eth1
"
,
promiscuous_mode
=
False
,
splt_analysis
=
20
,
statistical_analysis
=
False
)
templconf
=
"""
{
...
...
shaping
View file @
4f0d4f88
...
...
@@ -7,7 +7,8 @@ UPDEV="eth0"
#DOWNDEV="ifb0"
#DOWNDEV="dummy1"
#DOWNDEV="eth1"
DOWNDEV
=
"br0"
DOWNDEV
=
"eth1"
DOWNISBRIDGE
=
false
IP
=
"/sbin/ip"
TC
=
"/sbin/tc"
IPSET
=
"/usr/sbin/ipset"
...
...
@@ -57,8 +58,10 @@ if [ "$DOWNDEV" == "ifb0" ] ; then
FORCEIFB
=
true
fi
if
[
x
"
$(
brctl show |
grep
$DOWNDEV
)
"
!=
""
]
;
then
DOWNDEV
=
$(
ls
/sys/class/net/br0/brif/
)
if
[
$DOWNISBRIDGE
]
;
then
if
[
x
"
$(
brctl show |
grep
$DOWNDEV
)
"
!=
""
]
;
then
DOWNDEV
=
$(
ls
/sys/class/net/br0/brif/
)
fi
fi
# NOTE: Express in mbit, a bit less than the actual connections helps
...
...
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