Project

General

Profile

Download (12.2 KB) Statistics
| Branch: | Tag: | Revision:
1 340e6dca Scott Ullrich
<?php
2 5b237745 Scott Ullrich
/*
3
	firewall_nat.php
4
*/
5 fd9ebcd5 Stephen Beaver
/* ====================================================================
6 7c540a5c Stephen Beaver
 *	Copyright (c)  2004-2015  Electric Sheep Fencing, LLC. All rights reserved.
7 9da2cf1c Stephen Beaver
 *
8 cb41dd63 Renato Botelho
 *	Some or all of this file is based on the m0n0wall project which is
9
 *	Copyright (c)  2004 Manuel Kasper (BSD 2 clause)
10 fd9ebcd5 Stephen Beaver
 *
11 7c540a5c Stephen Beaver
 *	Redistribution and use in source and binary forms, with or without modification,
12
 *	are permitted provided that the following conditions are met:
13 fd9ebcd5 Stephen Beaver
 *
14 7c540a5c Stephen Beaver
 *	1. Redistributions of source code must retain the above copyright notice,
15
 *		this list of conditions and the following disclaimer.
16 fd9ebcd5 Stephen Beaver
 *
17 7c540a5c Stephen Beaver
 *	2. Redistributions in binary form must reproduce the above copyright
18
 *		notice, this list of conditions and the following disclaimer in
19
 *		the documentation and/or other materials provided with the
20
 *		distribution.
21 fd9ebcd5 Stephen Beaver
 *
22 7c540a5c Stephen Beaver
 *	3. All advertising materials mentioning features or use of this software
23
 *		must display the following acknowledgment:
24
 *		"This product includes software developed by the pfSense Project
25
 *		 for use in the pfSense software distribution. (http://www.pfsense.org/).
26 fd9ebcd5 Stephen Beaver
 *
27 7c540a5c Stephen Beaver
 *	4. The names "pfSense" and "pfSense Project" must not be used to
28
 *		 endorse or promote products derived from this software without
29
 *		 prior written permission. For written permission, please contact
30
 *		 coreteam@pfsense.org.
31 fd9ebcd5 Stephen Beaver
 *
32 7c540a5c Stephen Beaver
 *	5. Products derived from this software may not be called "pfSense"
33
 *		nor may "pfSense" appear in their names without prior written
34
 *		permission of the Electric Sheep Fencing, LLC.
35 fd9ebcd5 Stephen Beaver
 *
36 7c540a5c Stephen Beaver
 *	6. Redistributions of any form whatsoever must retain the following
37
 *		acknowledgment:
38 fd9ebcd5 Stephen Beaver
 *
39 7c540a5c Stephen Beaver
 *	"This product includes software developed by the pfSense Project
40
 *	for use in the pfSense software distribution (http://www.pfsense.org/).
41 919d91f9 Phil Davis
 *
42 7c540a5c Stephen Beaver
 *	THIS SOFTWARE IS PROVIDED BY THE pfSense PROJECT ``AS IS'' AND ANY
43
 *	EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
44
 *	IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
45
 *	PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE pfSense PROJECT OR
46
 *	ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
47
 *	SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
48
 *	NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
49
 *	LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
50
 *	HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
51
 *	STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
52
 *	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
53
 *	OF THE POSSIBILITY OF SUCH DAMAGE.
54 fd9ebcd5 Stephen Beaver
 *
55 7c540a5c Stephen Beaver
 *	====================================================================
56 fd9ebcd5 Stephen Beaver
 *
57
 */
58 7ac5a4cb Scott Ullrich
/*
59 0e6ac11d Stephen Beaver
	pfSense_MODULE: nat
60 7ac5a4cb Scott Ullrich
*/
61 5b237745 Scott Ullrich
62 6b07c15a Matthew Grooms
##|+PRIV
63
##|*IDENT=page-firewall-nat-portforward
64 5230f468 jim-p
##|*NAME=Firewall: NAT: Port Forward
65 6b07c15a Matthew Grooms
##|*DESCR=Allow access to the 'Firewall: NAT: Port Forward' page.
66
##|*MATCH=firewall_nat.php*
67
##|-PRIV
68
69 5b237745 Scott Ullrich
require("guiconfig.inc");
70 7a927e67 Scott Ullrich
require_once("functions.inc");
71
require_once("filter.inc");
72
require_once("shaper.inc");
73 483e6de8 Scott Ullrich
require_once("itemid.inc");
74 5b237745 Scott Ullrich
75 37ba954d Phil Davis
if (!is_array($config['nat']['rule'])) {
76 5b237745 Scott Ullrich
	$config['nat']['rule'] = array();
77 37ba954d Phil Davis
}
78 fbe94068 Scott Ullrich
79 5b237745 Scott Ullrich
$a_nat = &$config['nat']['rule'];
80
81 8bbab8a3 Stephen Beaver
/* update rule order, POST[rule] is an array of ordered IDs */
82 67c2baf1 Phil Davis
if (array_key_exists('order-store', $_POST)) {
83 6cb366de Stephen Beaver
	if (is_array($_POST['rule']) && !empty($_POST['rule'])) {
84
		$a_nat_new = array();
85 8bbab8a3 Stephen Beaver
86 6cb366de Stephen Beaver
		// if a rule is not in POST[rule], it has been deleted by the user
87 67c2baf1 Phil Davis
		foreach ($_POST['rule'] as $id) {
88 6cb366de Stephen Beaver
			$a_nat_new[] = $a_nat[$id];
89 67c2baf1 Phil Davis
		}
90 8bbab8a3 Stephen Beaver
91 6cb366de Stephen Beaver
		$a_nat = $a_nat_new;
92 dbbd22f9 Stephen Beaver
93 67c2baf1 Phil Davis
		if (write_config()) {
94 6cb366de Stephen Beaver
			mark_subsystem_dirty('filter');
95 67c2baf1 Phil Davis
		}
96 dbbd22f9 Stephen Beaver
97 6cb366de Stephen Beaver
		header("Location: firewall_nat.php");
98
		exit;
99
	}
100 8bbab8a3 Stephen Beaver
}
101
102 514dbaf8 Scott Ullrich
/* if a custom message has been passed along, lets process it */
103 37ba954d Phil Davis
if ($_GET['savemsg']) {
104 514dbaf8 Scott Ullrich
	$savemsg = $_GET['savemsg'];
105 37ba954d Phil Davis
}
106 514dbaf8 Scott Ullrich
107 5b237745 Scott Ullrich
if ($_POST) {
108
	$pconfig = $_POST;
109
110
	if ($_POST['apply']) {
111 e8c2c890 Bill Marquette
112 5b237745 Scott Ullrich
		$retval = 0;
113 7a6c350f Scott Ullrich
114 e2c9ef13 Scott Ullrich
		$retval |= filter_configure();
115 05da8941 Erik Fonnesbeck
		$savemsg = get_std_save_message($retval);
116 7d04082e Scott Ullrich
117 1a700ea6 Scott Ullrich
		pfSense_handle_custom_code("/usr/local/pkg/firewall_nat/apply");
118
119 5b237745 Scott Ullrich
		if ($retval == 0) {
120 a368a026 Ermal Lu?i
			clear_subsystem_dirty('natconf');
121
			clear_subsystem_dirty('filter');
122 5b237745 Scott Ullrich
		}
123 7d04082e Scott Ullrich
124 5b237745 Scott Ullrich
	}
125
}
126
127 759d0de1 Renato Botelho
if ($_GET['act'] == "del") {
128
	if ($a_nat[$_GET['id']]) {
129 3a343d73 jim-p
130 759d0de1 Renato Botelho
		if (isset($a_nat[$_GET['id']]['associated-rule-id'])) {
131
			delete_id($a_nat[$_GET['id']]['associated-rule-id'], $config['filter']['rule']);
132 3a343d73 jim-p
			$want_dirty_filter = true;
133 759d0de1 Renato Botelho
		}
134
		unset($a_nat[$_GET['id']]);
135 3a343d73 jim-p
136
		if (write_config()) {
137
			mark_subsystem_dirty('natconf');
138 37ba954d Phil Davis
			if ($want_dirty_filter) {
139 3a343d73 jim-p
				mark_subsystem_dirty('filter');
140 37ba954d Phil Davis
			}
141 3a343d73 jim-p
		}
142 0e6ac11d Stephen Beaver
143 759d0de1 Renato Botelho
		header("Location: firewall_nat.php");
144
		exit;
145
	}
146
}
147
148 00bcbdd0 Bill Marquette
if (isset($_POST['del_x'])) {
149 0e6ac11d Stephen Beaver
	/* delete selected rules */
150
	if (is_array($_POST['rule']) && count($_POST['rule'])) {
151
		foreach ($_POST['rule'] as $rulei) {
152 049a688e Ermal Lu?i
		$target = $rule['target'];
153 b9e28d57 unknown
			// Check for filter rule associations
154 6c07db48 Phil Davis
			if (isset($a_nat[$rulei]['associated-rule-id'])) {
155 9b16b834 Ermal Lu?i
				delete_id($a_nat[$rulei]['associated-rule-id'], $config['filter']['rule']);
156 7d5b007c Sjon Hortensius
157 b9e28d57 unknown
				mark_subsystem_dirty('filter');
158
			}
159 6cb366de Stephen Beaver
160 0e6ac11d Stephen Beaver
			unset($a_nat[$rulei]);
161
		}
162 6cb366de Stephen Beaver
163 37ba954d Phil Davis
		if (write_config()) {
164 3a343d73 jim-p
			mark_subsystem_dirty('natconf');
165 37ba954d Phil Davis
		}
166 6cb366de Stephen Beaver
167 3a343d73 jim-p
		header("Location: firewall_nat.php");
168
		exit;
169 4b9a670c Scott Ullrich
	}
170 0e6ac11d Stephen Beaver
}
171
172 d16a49ae Colin Fleming
$closehead = false;
173 6c07db48 Phil Davis
$pgtitle = array(gettext("Firewall"), gettext("NAT"), gettext("Port Forward"));
174 6eb17647 Scott Ullrich
include("head.inc");
175
176 67c2baf1 Phil Davis
if ($savemsg) {
177 0e6ac11d Stephen Beaver
	print_info_box($savemsg, 'success');
178 67c2baf1 Phil Davis
}
179 0e6ac11d Stephen Beaver
180 67c2baf1 Phil Davis
if (is_subsystem_dirty('natconf')) {
181 0e6ac11d Stephen Beaver
	print_info_box_np(gettext('The NAT configuration has been changed.') . '<br />' .
182
					  gettext('You must apply the changes in order for them to take effect.') . '<br />');
183 67c2baf1 Phil Davis
}
184 2a9db752 Scott Dale
185 0e6ac11d Stephen Beaver
$tab_array = array();
186
$tab_array[] = array(gettext("Port Forward"), true, "firewall_nat.php");
187
$tab_array[] = array(gettext("1:1"), false, "firewall_nat_1to1.php");
188
$tab_array[] = array(gettext("Outbound"), false, "firewall_nat_out.php");
189
$tab_array[] = array(gettext("NPt"), false, "firewall_nat_npt.php");
190
display_top_tabs($tab_array);
191 24f600b0 Scott Ullrich
?>
192 d16a49ae Colin Fleming
193 00bcbdd0 Bill Marquette
<form action="firewall_nat.php" method="post" name="iform">
194 8bbab8a3 Stephen Beaver
	<div class="panel panel-default">
195
		<div class="panel-heading"><?=gettext('Rules')?></div>
196
		<div class="panel-body table-responsive">
197
			<table class="table table-striped table-hover table-condensed">
198
				<thead>
199
					<tr>
200 7c540a5c Stephen Beaver
						<th><!-- Checkbox --></th>
201 8bbab8a3 Stephen Beaver
						<th><!-- Rule type --></th>
202
						<th><?=gettext("If")?></th>
203
						<th><?=gettext("Proto")?></th>
204
						<th><?=gettext("Src. addr")?></th>
205
						<th><?=gettext("Src. ports")?></th>
206
						<th><?=gettext("Dest. addr")?></th>
207
						<th><?=gettext("Dest. ports")?></th>
208
						<th><?=gettext("NAT IP")?></th>
209
						<th><?=gettext("NAT Ports")?></th>
210
						<th><?=gettext("Description")?></th>
211
						<th><?=gettext("Actions")?></th>
212
					</tr>
213
				</thead>
214
				<tbody class='user-entries'>
215 0e6ac11d Stephen Beaver
<?php
216 dbbd22f9 Stephen Beaver
217 0e6ac11d Stephen Beaver
$nnats = $i = 0;
218
219
foreach ($a_nat as $natent):
220
221 dbbd22f9 Stephen Beaver
	$alias = rule_columns_with_alias(
222
		$natent['source']['address'],
223
		pprint_port($natent['source']['port']),
224
		$natent['destination']['address'],
225
		pprint_port($natent['destination']['port'])
226
	);
227 0e6ac11d Stephen Beaver
228 dbbd22f9 Stephen Beaver
	/* if user does not have access to edit an interface skip on to the next record */
229 67c2baf1 Phil Davis
	if (!have_natpfruleint_access($natent['interface'])) {
230 dbbd22f9 Stephen Beaver
		continue;
231 67c2baf1 Phil Davis
	}
232 0e6ac11d Stephen Beaver
?>
233 7c540a5c Stephen Beaver
234
					<tr id="fr<?=$nnats;?>" onClick="fr_toggle(<?=$nnats;?>)" ondblclick="document.location='firewall_nat_edit.php?id=<?=$i;?>';">
235
						<td >
236
							<input type="checkbox" id="frc<?=$nnats;?>" onClick="fr_toggle(<?=$nnats;?>)" name="rule[]" value="<?=$i;?>"/>
237
						</td>
238 8bbab8a3 Stephen Beaver
						<td>
239 0e6ac11d Stephen Beaver
<?php
240 e6f34d22 Phil Davis
	if ($natent['associated-rule-id'] == "pass"):
241 0e6ac11d Stephen Beaver
?>
242 1b7379f9 Jared Dillard
							<i class="fa fa-play" title="<?=gettext("All traffic matching this NAT entry is passed")?>"></i>
243 a8726a3d Scott Ullrich
<?php
244 dbbd22f9 Stephen Beaver
	elseif (!empty($natent['associated-rule-id'])):
245 a8726a3d Scott Ullrich
?>
246 1b7379f9 Jared Dillard
							<i class="fa fa-random" title="<?=gettext("Firewall rule ID ")?><?=htmlspecialchars($natent['associated-rule-id'])?> . <?=gettext('is managed by this rule')?>"></i>
247 0e6ac11d Stephen Beaver
<?php
248 dbbd22f9 Stephen Beaver
	endif;
249 0e6ac11d Stephen Beaver
?>
250 8bbab8a3 Stephen Beaver
						</td>
251 91d452c7 Stephen Beaver
						<td>
252 8bbab8a3 Stephen Beaver
							<?=$textss?>
253 0e6ac11d Stephen Beaver
<?php
254 67c2baf1 Phil Davis
	if (!$natent['interface']) {
255 dbbd22f9 Stephen Beaver
		echo htmlspecialchars(convert_friendly_interface_to_friendly_descr("wan"));
256 67c2baf1 Phil Davis
	} else {
257 dbbd22f9 Stephen Beaver
		echo htmlspecialchars(convert_friendly_interface_to_friendly_descr($natent['interface']));
258 67c2baf1 Phil Davis
	}
259 0e6ac11d Stephen Beaver
?>
260 8bbab8a3 Stephen Beaver
							<?=$textse?>
261
						</td>
262 dbbd22f9 Stephen Beaver
263 91d452c7 Stephen Beaver
						<td>
264 8bbab8a3 Stephen Beaver
							<?=$textss?><?=strtoupper($natent['protocol'])?><?=$textse?>
265
						</td>
266 dbbd22f9 Stephen Beaver
267 91d452c7 Stephen Beaver
						<td>
268 dbbd22f9 Stephen Beaver
269
270
<?php
271
	if (isset($alias['src'])):
272
?>
273
							<a href="/firewall_aliases_edit.php?id=<?=$alias['src']?>" data-toggle="popover" data-trigger="hover focus" title="Alias details" data-content="<?=alias_info_popup($alias['src'])?>" data-html="true">
274
<?php
275
	endif;
276
?>
277
							<?=htmlspecialchars(pprint_address($natent['source']))?>
278
<?php
279
	if (isset($alias['src'])):
280
?>
281 1b7379f9 Jared Dillard
							<i class='fa fa-pencil'></i></a>
282 dbbd22f9 Stephen Beaver
<?php
283
	endif;
284
?>
285 8bbab8a3 Stephen Beaver
						</td>
286 91d452c7 Stephen Beaver
						<td>
287 dbbd22f9 Stephen Beaver
<?php
288
	if (isset($alias['srcport'])):
289
?>
290
							<a href="/firewall_aliases_edit.php?id=<?=$alias['srcport']?>" data-toggle="popover" data-trigger="hover focus" title="Alias details" data-content="<?=alias_info_popup($alias['srcport'])?>" data-html="true">
291
<?php
292
	endif;
293
?>
294
							<?=htmlspecialchars(pprint_port($natent['source']['port']))?>
295
<?php
296
	if (isset($alias['srcport'])):
297
?>
298 1b7379f9 Jared Dillard
							<i class='fa fa-pencil'></i></a>
299 dbbd22f9 Stephen Beaver
<?php
300
	endif;
301
?>
302 8bbab8a3 Stephen Beaver
						</td>
303 dbbd22f9 Stephen Beaver
304 91d452c7 Stephen Beaver
						<td>
305 dbbd22f9 Stephen Beaver
<?php
306
	if (isset($alias['dst'])):
307
?>
308
							<a href="/firewall_aliases_edit.php?id=<?=$alias['dst']?>" data-toggle="popover" data-trigger="hover focus" title="Alias details" data-content="<?=alias_info_popup($alias['dst'])?>" data-html="true">
309
<?php
310
	endif;
311
?>
312
							<?=htmlspecialchars(pprint_address($natent['destination']))?>
313
<?php
314
	if (isset($alias['dst'])):
315
?>
316 1b7379f9 Jared Dillard
							<i class='fa fa-pencil'></i></a>
317 dbbd22f9 Stephen Beaver
<?php
318
	endif;
319
?>
320 8bbab8a3 Stephen Beaver
						</td>
321 91d452c7 Stephen Beaver
						<td>
322 dbbd22f9 Stephen Beaver
<?php
323
	if (isset($alias['dstport'])):
324
?>
325
							<a href="/firewall_aliases_edit.php?id=<?=$alias['dstport']?>" data-toggle="popover" data-trigger="hover focus" title="Alias details" data-content="<?=alias_info_popup($alias['dstport'])?>" data-html="true">
326
<?php
327
	endif;
328
?>
329
							<?=htmlspecialchars(pprint_port($natent['destination']['port']))?>
330
<?php
331
	if (isset($alias['dstport'])):
332
?>
333 1b7379f9 Jared Dillard
							<i class='fa fa-pencil'></i></a>
334 dbbd22f9 Stephen Beaver
<?php
335
	endif;
336
?>
337 8bbab8a3 Stephen Beaver
						</td>
338 dbbd22f9 Stephen Beaver
339 91d452c7 Stephen Beaver
						<td >
340 dbbd22f9 Stephen Beaver
							<?=htmlspecialchars($natent['target'])?>
341 8bbab8a3 Stephen Beaver
						</td>
342 91d452c7 Stephen Beaver
						<td>
343 0e6ac11d Stephen Beaver
<?php
344 dbbd22f9 Stephen Beaver
	$localport = $natent['local-port'];
345 0e6ac11d Stephen Beaver
346 dbbd22f9 Stephen Beaver
	list($dstbeginport, $dstendport) = explode("-", $natent['destination']['port']);
347 0e6ac11d Stephen Beaver
348 dbbd22f9 Stephen Beaver
	if ($dstendport) {
349
		$localendport = $natent['local-port'] + $dstendport - $dstbeginport;
350
		$localport	 .= '-' . $localendport;
351
	}
352 0e6ac11d Stephen Beaver
?>
353 dbbd22f9 Stephen Beaver
							<?=htmlspecialchars(pprint_port($localport))?>
354 8bbab8a3 Stephen Beaver
						</td>
355 dbbd22f9 Stephen Beaver
356 91d452c7 Stephen Beaver
						<td>
357 dbbd22f9 Stephen Beaver
							<?=htmlspecialchars($natent['descr'])?>
358 8bbab8a3 Stephen Beaver
						</td>
359 91d452c7 Stephen Beaver
						<td>
360 65a0e193 Stephen Beaver
							<a class="fa fa-pencil" title="<?=gettext("Edit rule"); ?>" href="firewall_nat_edit.php?id=<?=$i?>"></a>
361
							<a class="fa fa-clone"	  title="<?=gettext("Add a new NAT based on this one")?>" href="firewall_nat_edit.php?dup=<?=$i?>"></a>
362 314e439e Stephen Beaver
							<a class="fa fa-trash"	title="<?=gettext("Delete rule")?>" href="firewall_nat.php?act=del&amp;id=<?=$i?>"></a>
363 8bbab8a3 Stephen Beaver
						</td>
364
					</tr>
365 0e6ac11d Stephen Beaver
<?php
366
	$i++;
367
	$nnats++;
368
endforeach;
369
?>
370 8bbab8a3 Stephen Beaver
				</tbody>
371
			</table>
372
		</div>
373 4cf530c4 Stephen Beaver
	</div>
374 dbbd22f9 Stephen Beaver
375 c10cb196 Stephen Beaver
	<nav class="action-buttons">
376 b807e59c Stephen Beaver
		<a href="firewall_nat_edit.php?after=-1" class="btn btn-sm btn-success" title="<?=gettext('Add rule to the top of the list')?>">
377
			<i class="fa fa-level-up icon-embed-btn"></i>
378 0149ef4d Stephen Beaver
			<?=gettext('Add')?>
379
		</a>
380 b807e59c Stephen Beaver
		<a href="firewall_nat_edit.php" class="btn btn-sm btn-success" title="<?=gettext('Add rule to the end of the list')?>">
381
			<i class="fa fa-level-down icon-embed-btn"></i>
382
			<?=gettext('Add')?>
383
		</a>
384
		<button name="del_x" type="submit" class="btn btn-danger btn-sm" title="<?=gettext('Delete selected rules')?>">
385 9d5a20cf heper
			<i class="fa fa-trash icon-embed-btn"></i>
386 0149ef4d Stephen Beaver
			<?=gettext("Delete"); ?>
387
		</button>
388 c4b60a9a Colin Fleming
		<button type="submit" id="order-store" name="order-store" class="btn btn-primary btn-sm" disabled title="<?=gettext('Save rule order')?>">
389 9d5a20cf heper
			<i class="fa fa-save icon-embed-btn"></i>
390 0149ef4d Stephen Beaver
			<?=gettext("Save")?>
391
		</button>
392 09415b9e Stephen Beaver
	</nav>
393 0e6ac11d Stephen Beaver
</form>
394 3d335c4d Scott Ullrich
395 8fd9052f Colin Fleming
<script type="text/javascript">
396
//<![CDATA[
397 65a0e193 Stephen Beaver
events.push(function() {
398 7c540a5c Stephen Beaver
399 65a0e193 Stephen Beaver
	// Make rules sortable
400 4cf530c4 Stephen Beaver
	$('table tbody.user-entries').sortable({
401
		cursor: 'grabbing',
402
		update: function(event, ui) {
403
			$('#order-store').removeAttr('disabled');
404
		}
405
	});
406 6cb366de Stephen Beaver
407
	// Check all of the rule checkboxes so that their values are posted
408
	$('#order-store').click(function () {
409
	   $('[id^=frc]').prop('checked', true);
410
	});
411 4cf530c4 Stephen Beaver
});
412 8fd9052f Colin Fleming
//]]>
413 4cf530c4 Stephen Beaver
</script>
414 3d335c4d Scott Ullrich
<?php
415 0e6ac11d Stephen Beaver
416 e6f34d22 Phil Davis
if (count($a_nat) > 0) {
417 3d335c4d Scott Ullrich
?>
418 0e6ac11d Stephen Beaver
<!-- Legend -->
419
<div>
420
	<dl class="dl-horizontal responsive">
421
		<dt><?=gettext('Legend')?></dt>					<dd></dd>
422 1b7379f9 Jared Dillard
		<dt><i class="fa fa-play"></i></dt>			<dd><?=gettext('Pass')?></dd>
423
		<dt><i class="fa fa-random"></i></dt>		<dd><?=gettext('Linked rule')?></dd>
424 0e6ac11d Stephen Beaver
	</dl>
425
</div>
426 3d335c4d Scott Ullrich
427 0e6ac11d Stephen Beaver
<?php
428
}
429
430 c10cb196 Stephen Beaver
include("foot.inc");