Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
58edd852
Commit
58edd852
authored
May 18, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(traffic shaper) work in progress model and config template
parent
b668fdeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
TrafficShaper.xml
...e/mvc/app/models/OPNsense/TrafficShaper/TrafficShaper.xml
+2
-3
ipfw.conf
src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf
+6
-1
No files found.
src/opnsense/mvc/app/models/OPNsense/TrafficShaper/TrafficShaper.xml
View file @
58edd852
...
...
@@ -14,7 +14,8 @@
</number>
<bandwidth
type=
"IntegerField"
>
<Required>
Y
</Required>
<default>
899795
</default>
<MinimumValue>
1
</MinimumValue>
<MaximumValue>
899795
</MaximumValue>
</bandwidth>
<bandwidthMetric
type=
"OptionField"
>
<Required>
Y
</Required>
...
...
@@ -28,8 +29,6 @@
</bandwidthMetric>
<queue
type=
"IntegerField"
>
<Required>
N
</Required>
<MinimumValue>
1
</MinimumValue>
<MaximumValue>
100
</MaximumValue>
</queue>
<queueMetric
type=
"OptionField"
>
<Required>
N
</Required>
...
...
src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf
View file @
58edd852
...
...
@@ -27,8 +27,13 @@ flush
#======================================================================================
# define dummynet pipes
#======================================================================================
{%
if
helpers
.
exists
(
'OPNsense.TrafficShaper.pipe'
) %}
{%
if
helpers
.
exists
(
'OPNsense.TrafficShaper.pipes.pipe'
) %}
{%
for
pipe
in
OPNsense
.
TrafficShaper
.
pipes
.
pipe
%}
ipfw
pipe
{{
pipe
.
number
}}
config
bw
{{
pipe
.
bandwidth
}}{{
pipe
.
bandwidthMetric
}}/
s
{%
if
pipe
.
queue
%}
queue
{{
pipe
.
queue
}} {%
if
pipe
.
queueMetric
!=
'slots'
%} {{
pipe
.
queueMetric
}} {%
endif
%} {%
endif
%}
{%
endfor
%}
{%
endif
%}
#======================================================================================
...
...
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