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
31e16746
Commit
31e16746
authored
Dec 20, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall: how many times is this hardcoded? :)
parent
78af5556
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
firewall_nat.php
src/www/firewall_nat.php
+2
-2
firewall_rules.php
src/www/firewall_rules.php
+1
-2
No files found.
src/www/firewall_nat.php
View file @
31e16746
...
@@ -263,8 +263,8 @@ $( document ).ready(function() {
...
@@ -263,8 +263,8 @@ $( document ).ready(function() {
<tbody>
<tbody>
<?php
if
(
isset
(
$config
[
'interfaces'
][
'lan'
]))
{
<?php
if
(
isset
(
$config
[
'interfaces'
][
'lan'
]))
{
$lockout_intf_name
=
empty
(
$config
[
'interfaces'
][
'lan'
][
'descr'
])
?
"LAN"
:
$config
[
'interfaces'
][
'lan'
][
'descr'
];
$lockout_intf_name
=
empty
(
$config
[
'interfaces'
][
'lan'
][
'descr'
])
?
"LAN"
:
$config
[
'interfaces'
][
'lan'
][
'descr'
];
}
elseif
(
isset
(
$config
[
'interfaces'
][
'wan'
]))
{
}
elseif
(
count
(
$config
[
'interfaces'
])
==
1
&&
isset
(
$config
[
'interfaces'
][
'wan'
]))
{
$lockout_intf_name
=
empty
(
$config
[
'interfaces'
][
'
lan'
][
'descr'
])
?
"WAN"
:
$config
[
'interfaces'
][
'l
an'
][
'descr'
];
$lockout_intf_name
=
empty
(
$config
[
'interfaces'
][
'
wan'
][
'descr'
])
?
"WAN"
:
$config
[
'interfaces'
][
'w
an'
][
'descr'
];
}
else
{
}
else
{
$lockout_intf_name
=
null
;
$lockout_intf_name
=
null
;
}
}
...
...
src/www/firewall_rules.php
View file @
31e16746
...
@@ -317,8 +317,7 @@ $( document ).ready(function() {
...
@@ -317,8 +317,7 @@ $( document ).ready(function() {
endif
;
?>
endif
;
?>
<?php
<?php
// Show the anti-lockout rule if it's enabled, and we are on LAN with an if count > 1, or WAN with an if count of 1.
// Show the anti-lockout rule if it's enabled, and we are on LAN with an if count > 1, or WAN with an if count of 1.
if
(
!
isset
(
$config
[
'system'
][
'webgui'
][
'noantilockout'
])
&&
if
(
!
isset
(
$config
[
'system'
][
'webgui'
][
'noantilockout'
])
&&
(
$selected_if
==
'lan'
(((
count
(
$config
[
'interfaces'
])
>
1
)
&&
(
$selected_if
==
'lan'
))
||
((
count
(
$config
[
'interfaces'
])
==
1
)
&&
(
$selected_if
==
'wan'
))))
:
||
((
count
(
$config
[
'interfaces'
])
==
1
)
&&
(
$selected_if
==
'wan'
))))
:
$alports
=
implode
(
'<br />'
,
filter_core_antilockout_ports
());
$alports
=
implode
(
'<br />'
,
filter_core_antilockout_ports
());
?>
?>
...
...
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