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
8b994d62
Commit
8b994d62
authored
May 18, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(traffic shaper) work in progress integrating dummynet pipes
parent
8cefe409
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
40 deletions
+49
-40
TrafficShaper.xml
...e/mvc/app/models/OPNsense/TrafficShaper/TrafficShaper.xml
+42
-40
ipfw.conf
src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf
+7
-0
No files found.
src/opnsense/mvc/app/models/OPNsense/TrafficShaper/TrafficShaper.xml
View file @
8b994d62
...
...
@@ -4,45 +4,47 @@
OPNsense traffic shaper
</description>
<items>
<pipe
type=
"ArrayField"
>
<number
type=
"IntegerField"
>
<MinimumValue>
1
</MinimumValue>
<MaximumValue>
65535
</MaximumValue>
<ValidationMessage></ValidationMessage>
<Required>
Y
</Required>
</number>
<bandwidth
type=
"IntegerField"
>
<Required>
Y
</Required>
<default>
899795
</default>
</bandwidth>
<bandwidthMetric
type=
"OptionField"
>
<Required>
Y
</Required>
<default>
Kbit
</default>
<OptionValues>
<bit>
bit/s
</bit>
<Kbit>
Kbit/s
</Kbit>
<Mbit>
Mbit/s
</Mbit>
</OptionValues>
<ValidationMessage>
Bandwidth metric should be one of bit,Kbit,Mbit
</ValidationMessage>
</bandwidthMetric>
<queue
type=
"IntegerField"
>
<Required>
N
</Required>
<MinimumValue>
1
</MinimumValue>
<MaximumValue>
100
</MaximumValue>
</queue>
<queueMetric
type=
"OptionField"
>
<Required>
N
</Required>
<default>
slots
</default>
<OptionValues>
<slots>
Slots
</slots>
<bit>
bit/s
</bit>
<Kbit>
Kbit/s
</Kbit>
<Mbit>
Mbit/s
</Mbit>
</OptionValues>
</queueMetric>
<description
type=
"TextField"
>
<Required>
N
</Required>
</description>
</pipe>
<pipes>
<pipe
type=
"ArrayField"
>
<number
type=
"IntegerField"
>
<MinimumValue>
1
</MinimumValue>
<MaximumValue>
65535
</MaximumValue>
<ValidationMessage></ValidationMessage>
<Required>
Y
</Required>
</number>
<bandwidth
type=
"IntegerField"
>
<Required>
Y
</Required>
<default>
899795
</default>
</bandwidth>
<bandwidthMetric
type=
"OptionField"
>
<Required>
Y
</Required>
<default>
Kbit
</default>
<OptionValues>
<bit>
bit/s
</bit>
<Kbit>
Kbit/s
</Kbit>
<Mbit>
Mbit/s
</Mbit>
</OptionValues>
<ValidationMessage>
Bandwidth metric should be one of bit,Kbit,Mbit
</ValidationMessage>
</bandwidthMetric>
<queue
type=
"IntegerField"
>
<Required>
N
</Required>
<MinimumValue>
1
</MinimumValue>
<MaximumValue>
100
</MaximumValue>
</queue>
<queueMetric
type=
"OptionField"
>
<Required>
N
</Required>
<default>
slots
</default>
<OptionValues>
<slots>
Slots
</slots>
<bit>
bit/s
</bit>
<Kbit>
Kbit/s
</Kbit>
<Mbit>
Mbit/s
</Mbit>
</OptionValues>
</queueMetric>
<description
type=
"TextField"
>
<Required>
N
</Required>
</description>
</pipe>
</pipes>
</items>
</model>
src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf
View file @
8b994d62
...
...
@@ -24,6 +24,13 @@
#======================================================================================
flush
#======================================================================================
# define dummynet pipes
#======================================================================================
{%
if
helpers
.
exists
(
'OPNsense.TrafficShaper.pipe'
) %}
{%
endif
%}
#======================================================================================
# general purpose rules 1...1000
#======================================================================================
...
...
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