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
c05a5578
Commit
c05a5578
authored
Feb 25, 2017
by
Ad Schellevis
Committed by
GitHub
Feb 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1418 from phpb-com/master
Add modulate state as an option for state tracking
parents
74108220
d0b0ca28
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 @
c05a5578
...
...
@@ -247,7 +247,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'
]);
}
...
...
@@ -1467,6 +1467,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