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
b6dca713
Commit
b6dca713
authored
Mar 08, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Mar 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(traffic shaper) both = empty :)
(cherry picked from commit
3b0f081c
)
parent
2d388248
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ipfw.conf
src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf
+2
-2
No files found.
src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf
View file @
b6dca713
...
...
@@ -153,7 +153,7 @@ add 60000 return via any
%}
{%
if
rule
.
interface2
and
helpers
.
getNodeByTag
(
'interfaces.'
+
rule
.
interface2
) %}
{
# 2 interface defined, use both to match packets (2 rules) #}
{%
if
rule
.
direction
==
'in'
or
rule
.
direction
==
'both'
%}
{%
if
rule
.
direction
==
'in'
or
not
rule
.
direction
%}
add
{{
loop
.
index
+
60000
}} {{
helpers
.
getUUIDtag
(
rule
.
target
) }} {{
helpers
.
getUUID
(
rule
.
target
).
number
}} {{
rule
.
proto
.
split
(
'_'
)[
0
] }}
from
{{
rule
.
source
}}
to
{{
rule
.
destination
}}
src
-
port
{{
rule
.
src_port
}}
dst
-
port
{{
rule
.
dst_port
}}
recv
{{
...
...
@@ -162,7 +162,7 @@ add {{loop.index + 60000}} {{ helpers.getUUIDtag(rule.target) }} {{
%}
xmit
{{
helpers
.
getNodeByTag
(
'interfaces.'
+
rule
.
interface2
).
if
}}
{%
endif
%}
{%
if
rule
.
direction
==
'out'
or
rule
.
direction
==
'both'
%}
{%
if
rule
.
direction
==
'out'
or
not
rule
.
direction
%}
add
{{
loop
.
index
+
60000
}} {{
helpers
.
getUUIDtag
(
rule
.
target
) }} {{
helpers
.
getUUID
(
rule
.
target
).
number
}} {{
rule
.
proto
.
split
(
'_'
)[
0
] }}
from
{{
rule
.
source
}}
to
{{
rule
.
destination
}}
src
-
port
{{
rule
.
src_port
}}
dst
-
port
{{
rule
.
dst_port
}}
xmit
{{
...
...
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