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
2a7427d6
Commit
2a7427d6
authored
Jun 01, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ipfw) make use of secondary interface in dummynet rules
parent
55d86df2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
ipfw.conf
src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf
+19
-4
No files found.
src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf
View file @
2a7427d6
...
...
@@ -145,11 +145,26 @@ add 60000 return via any
{%
if
helpers
.
getUUIDtag
(
rule
.
target
) ==
'pipe'
or
helpers
.
getUUID
(
helpers
.
getUUID
(
rule
.
target
).
pipe
).
enabled
|
default
(
'0'
) ==
'1'
%}
{%
if
rule
.
interface2
and
helpers
.
getNodeByTag
(
'interfaces.'
+
rule
.
interface2
) %}
{
# 2 interface defined, use both to match packets (2 rules) #}
add
{{
loop
.
index
+
60000
}} {{
helpers
.
getUUIDtag
(
rule
.
target
) }} {{
helpers
.
getUUID
(
rule
.
target
).
number
}} {{
rule
.
proto
}}
from
{{
rule
.
source
}}
to
{{
rule
.
destination
}}
src
-
port
{{
rule
.
src_port
}}
dst
-
port
{{
rule
.
dst_port
}} {{
rule
.
direction
}}
via
{{
helpers
.
getNodeByTag
(
'interfaces.'
+
rule
.
interface
).
if
}}
helpers
.
getUUID
(
rule
.
target
).
number
}} {{
rule
.
proto
}}
from
{{
rule
.
source
}}
to
{{
rule
.
destination
}}
src
-
port
{{
rule
.
src_port
}}
dst
-
port
{{
rule
.
dst_port
}} {{
rule
.
direction
}}
recv
{{
helpers
.
getNodeByTag
(
'interfaces.'
+
rule
.
interface
).
if
}}
xmit
{{
helpers
.
getNodeByTag
(
'interfaces.'
+
rule
.
interface2
).
if
}}
add
{{
loop
.
index
+
60000
}} {{
helpers
.
getUUIDtag
(
rule
.
target
) }} {{
helpers
.
getUUID
(
rule
.
target
).
number
}} {{
rule
.
proto
}}
from
{{
rule
.
source
}}
to
{{
rule
.
destination
}}
src
-
port
{{
rule
.
src_port
}}
dst
-
port
{{
rule
.
dst_port
}} {{
rule
.
direction
}}
xmit
{{
helpers
.
getNodeByTag
(
'interfaces.'
+
rule
.
interface
).
if
}}
recv
{{
helpers
.
getNodeByTag
(
'interfaces.'
+
rule
.
interface2
).
if
}}
{%
else
%}
{
# normal, single interface situation #}
add
{{
loop
.
index
+
60000
}} {{
helpers
.
getUUIDtag
(
rule
.
target
) }} {{
helpers
.
getUUID
(
rule
.
target
).
number
}} {{
rule
.
proto
}}
from
{{
rule
.
source
}}
to
{{
rule
.
destination
}}
src
-
port
{{
rule
.
src_port
}}
dst
-
port
{{
rule
.
dst_port
}} {{
rule
.
direction
}}
via
{{
helpers
.
getNodeByTag
(
'interfaces.'
+
rule
.
interface
).
if
}}
{%
endif
%}
{%
endif
%}
{%
endif
%}
{%
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