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
d0a8dfea
Commit
d0a8dfea
authored
Aug 19, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) add aliasses, legend in firewall_nat_1to1.php
parent
354d35b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
firewall_nat_1to1.php
src/www/firewall_nat_1to1.php
+28
-2
No files found.
src/www/firewall_nat_1to1.php
View file @
d0a8dfea
...
...
@@ -246,7 +246,7 @@ $main_buttons = array(
$i
=
0
;
foreach
(
$a_1to1
as
$natent
)
:
?>
<tr
valign=
"top"
ondblclick=
"document.location='firewall_nat_1to1_edit.php?id=
<?=
$i
;
?>
';"
>
<tr
<?=
isset
(
$natent
[
'disabled'
])
?
"class=
\"
text-muted
\"
"
:
""
;
?>
valign=
"top"
ondblclick=
"document.location='firewall_nat_1to1_edit.php?id=
<?=
$i
;
?>
';"
>
<td>
<input
type=
"checkbox"
name=
"rule[]"
value=
"
<?=
$i
;
?>
"
/>
</td>
...
...
@@ -259,12 +259,21 @@ $main_buttons = array(
</td>
<td>
<?=
isset
(
$natent
[
'external'
])
?
$natent
[
'external'
]
:
""
;
?><?=
isset
(
$natent
[
'source'
])
?
strstr
(
pprint_address
(
$natent
[
'source'
]),
'/'
)
:
""
;
?>
<?php
if
(
is_alias
(
pprint_address
(
$natent
[
'external'
])))
:
?>
<a
href=
"/firewall_aliases_edit.php?name=
<?=
htmlspecialchars
(
pprint_address
(
$natent
[
'external'
]));
?>
"
><i
class=
"fa fa-list"
></i>
</a>
<?php
endif
;
?>
</td>
<td>
<?=
pprint_address
(
$natent
[
'source'
]);
?>
<?php
if
(
is_alias
(
pprint_address
(
$natent
[
'source'
])))
:
?>
<a
href=
"/firewall_aliases_edit.php?name=
<?=
htmlspecialchars
(
pprint_address
(
$natent
[
'source'
]));
?>
"
><i
class=
"fa fa-list"
></i>
</a>
<?php
endif
;
?>
</td>
<td>
<?=
pprint_address
(
$natent
[
'destination'
]);
?>
<?php
if
(
is_alias
(
pprint_address
(
$natent
[
'destination'
])))
:
?>
<a
href=
"/firewall_aliases_edit.php?name=
<?=
htmlspecialchars
(
pprint_address
(
$natent
[
'destination'
]));
?>
"
><i
class=
"fa fa-list"
></i>
</a>
<?php
endif
;
?>
</td>
<td>
<?=
$natent
[
'descr'
];
?>
...
...
@@ -319,6 +328,23 @@ $main_buttons = array(
<a
href=
"firewall_nat_1to1_edit.php"
data-toggle=
"tooltip"
data-placement=
"left"
title=
"
<?=
gettext
(
"add new mapping"
);
?>
"
class=
"btn btn-default btn-xs"
><span
class=
"glyphicon glyphicon-plus"
></span></a>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td
colspan=
"9"
>
</td>
</tr>
<tr>
<td
width=
"16"
><span
class=
"glyphicon glyphicon-play text-success"
></span></td>
<td
colspan=
"8"
>
<?=
gettext
(
"Enabled rule"
);
?>
</td>
</tr>
<tr>
<td><span
class=
"glyphicon glyphicon-play text-muted"
></span></td>
<td
colspan=
"8"
>
<?=
gettext
(
"Disabled rule"
);
?>
</td>
</tr>
<tr>
<td><a><i
class=
"fa fa-list"
></i></a></td>
<td
colspan=
"8"
>
<?=
gettext
(
"Alias (click to view/edit)"
);
?>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<p>
...
...
@@ -335,7 +361,7 @@ $main_buttons = array(
</p>
</td>
</tr>
</t
body
>
</t
foot
>
</table>
</form>
</div>
...
...
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