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
95238142
Commit
95238142
authored
Feb 21, 2017
by
Ian Matyssik
Committed by
Franco Fichtner
Mar 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add modulate state as an option for state tracking
(cherry picked from commit
d0b0ca28
)
parent
a3b53d65
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
firewall_rules_edit.php
src/www/firewall_rules_edit.php
+4
-1
No files found.
src/www/firewall_rules_edit.php
View file @
95238142
...
...
@@ -209,7 +209,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if
(
$pconfig
[
'protocol'
]
==
"icmp"
&&
!
empty
(
$pconfig
[
'icmptype'
])
&&
$pconfig
[
'ipprotocol'
]
==
"inet46"
)
{
$input_errors
[]
=
gettext
(
"You can not assign a ICMP type to a rule that applies to IPv4 and IPv6"
);
}
if
(
$pconfig
[
'statetype'
]
==
"synproxy state"
)
{
if
(
$pconfig
[
'statetype'
]
==
"synproxy state"
||
$pconfig
[
'statetype'
]
==
"modulate state"
)
{
if
(
$pconfig
[
'protocol'
]
!=
"tcp"
)
{
$input_errors
[]
=
sprintf
(
gettext
(
"%s is only valid with protocol tcp."
),
$pconfig
[
'statetype'
]);
}
...
...
@@ -1352,6 +1352,9 @@ include("head.inc");
<option
value=
"sloppy state"
<?=
$pconfig
[
'statetype'
]
==
"sloppy state"
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<?=
gettext
(
"sloppy state"
);
?>
</option>
<option
value=
"modulate state"
<?=
$pconfig
[
'statetype'
]
==
"modulate state"
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<?=
gettext
(
"modulate state"
);
?>
</option>
<option
value=
"synproxy state"
<?=
$pconfig
[
'statetype'
]
==
"synproxy state"
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<?=
gettext
(
"synproxy state"
);
?>
</option>
...
...
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