firewall_nat.php 18.6 KB
Newer Older
Ad Schellevis's avatar
Ad Schellevis committed
1 2
<?php
/*
3
	Copyright (C) 2014 Deciso B.V.
Ad Schellevis's avatar
Ad Schellevis committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
	Copyright (C) 2004 Scott Ullrich
	All rights reserved.

	originally part of m0n0wall (http://m0n0.ch/wall)
	Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
	All rights reserved.

	Redistribution and use in source and binary forms, with or without
	modification, are permitted provided that the following conditions are met:

	1. Redistributions of source code must retain the above copyright notice,
	   this list of conditions and the following disclaimer.

	2. Redistributions in binary form must reproduce the above copyright
	   notice, this list of conditions and the following disclaimer in the
	   documentation and/or other materials provided with the distribution.

	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
	POSSIBILITY OF SUCH DAMAGE.
*/

require("guiconfig.inc");
34
require_once("functions.inc");
Ad Schellevis's avatar
Ad Schellevis committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
require_once("filter.inc");
require_once("shaper.inc");
require_once("itemid.inc");

if (!is_array($config['nat']['rule']))
	$config['nat']['rule'] = array();

$a_nat = &$config['nat']['rule'];

/* if a custom message has been passed along, lets process it */
if ($_GET['savemsg'])
	$savemsg = $_GET['savemsg'];

if ($_POST) {

	$pconfig = $_POST;

	if ($_POST['apply']) {

		write_config();

		$retval = 0;

		unlink_if_exists("/tmp/config.cache");
		$retval |= filter_configure();
		$savemsg = get_std_save_message($retval);

		pfSense_handle_custom_code("/usr/local/pkg/firewall_nat/apply");

		if ($retval == 0) {
			clear_subsystem_dirty('natconf');
			clear_subsystem_dirty('filter');
		}

	}
}

if ($_GET['act'] == "del") {
	if ($a_nat[$_GET['id']]) {

		if (isset($a_nat[$_GET['id']]['associated-rule-id'])) {
			delete_id($a_nat[$_GET['id']]['associated-rule-id'], $config['filter']['rule']);
			$want_dirty_filter = true;
		}
		unset($a_nat[$_GET['id']]);

		if (write_config()) {
			mark_subsystem_dirty('natconf');
			if ($want_dirty_filter)
				mark_subsystem_dirty('filter');
		}
		header("Location: firewall_nat.php");
		exit;
	}
}

if (isset($_POST['del_x'])) {
    /* delete selected rules */
    if (is_array($_POST['rule']) && count($_POST['rule'])) {
	    foreach ($_POST['rule'] as $rulei) {
		$target = $rule['target'];
			// Check for filter rule associations
			if (isset($a_nat[$rulei]['associated-rule-id'])){
				delete_id($a_nat[$rulei]['associated-rule-id'], $config['filter']['rule']);
99

Ad Schellevis's avatar
Ad Schellevis committed
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
				mark_subsystem_dirty('filter');
			}
	        unset($a_nat[$rulei]);
	    }
		if (write_config())
			mark_subsystem_dirty('natconf');
		header("Location: firewall_nat.php");
		exit;
	}

} else {
        /* yuck - IE won't send value attributes for image buttons, while Mozilla does - so we use .x/.y to find move button clicks instead... */
        unset($movebtn);
        foreach ($_POST as $pn => $pd) {
                if (preg_match("/move_(\d+)_x/", $pn, $matches)) {
                        $movebtn = $matches[1];
                        break;
                }
        }
        /* move selected rules before this rule */
        if (isset($movebtn) && is_array($_POST['rule']) && count($_POST['rule'])) {
                $a_nat_new = array();

                /* copy all rules < $movebtn and not selected */
                for ($i = 0; $i < $movebtn; $i++) {
                        if (!in_array($i, $_POST['rule']))
                                $a_nat_new[] = $a_nat[$i];
                }

                /* copy all selected rules */
                for ($i = 0; $i < count($a_nat); $i++) {
                        if ($i == $movebtn)
                                continue;
                        if (in_array($i, $_POST['rule']))
                                $a_nat_new[] = $a_nat[$i];
                }

                /* copy $movebtn rule */
                if ($movebtn < count($a_nat))
                        $a_nat_new[] = $a_nat[$movebtn];

                /* copy all rules > $movebtn and not selected */
                for ($i = $movebtn+1; $i < count($a_nat); $i++) {
                        if (!in_array($i, $_POST['rule']))
                                $a_nat_new[] = $a_nat[$i];
                }
                $a_nat = $a_nat_new;
		if (write_config())
			mark_subsystem_dirty('natconf');
                header("Location: firewall_nat.php");
                exit;
        }
}

$closehead = false;
$pgtitle = array(gettext("Firewall"),gettext("NAT"),gettext("Port Forward"));
include("head.inc");


Ad Schellevis's avatar
Ad Schellevis committed
159 160 161
$main_buttons = array(
	array('label'=>'Add', 'href'=>'firewall_nat_edit.php?after=-1'),
);
Ad Schellevis's avatar
Ad Schellevis committed
162 163


Ad Schellevis's avatar
Ad Schellevis committed
164
?>
Ad Schellevis's avatar
Ad Schellevis committed
165

Jos Schellevis's avatar
Jos Schellevis committed
166
<body>
167

Jos Schellevis's avatar
Jos Schellevis committed
168 169 170 171 172
<script type="text/javascript" src="/themes/<?=$g['theme'];?>/assets/javascripts/jquery-sortable.js"></script>
<style type="text/css">
	body.dragging, body.dragging * {
	  cursor: move !important;
	}
173

Jos Schellevis's avatar
Jos Schellevis committed
174 175 176 177 178
	.dragged {
	  position: absolute;
	  opacity: 0.5;
	  z-index: 2000;
	}
179

Jos Schellevis's avatar
Jos Schellevis committed
180 181 182 183 184 185 186 187 188
	ol.example li.placeholder {
	  position: relative;
	  /** More li styles **/
	}
	ol.example li.placeholder:before {
	  position: absolute;
	  /** Define arrowhead **/
	}
</style>
Ad Schellevis's avatar
Ad Schellevis committed
189

190

Ad Schellevis's avatar
Ad Schellevis committed
191
<?php include("fbegin.inc"); ?>
Ad Schellevis's avatar
Ad Schellevis committed
192

Ad Schellevis's avatar
Ad Schellevis committed
193
	<section class="page-content-main">
194
		<div class="container-fluid">
Ad Schellevis's avatar
Ad Schellevis committed
195
			<div class="row">
196 197


Ad Schellevis's avatar
Ad Schellevis committed
198 199 200 201
				<?php if ($savemsg) print_info_box($savemsg); ?>
				<?php if (is_subsystem_dirty('natconf')): ?>
				<?php print_info_box_np(gettext("The NAT configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br />
				<?php endif; ?>
202

Ad Schellevis's avatar
Ad Schellevis committed
203
			    <section class="col-xs-12">
204 205 206


					 <?php
Ad Schellevis's avatar
Ad Schellevis committed
207 208 209 210 211 212 213
							$tab_array = array();
							$tab_array[] = array(gettext("Port Forward"), true, "firewall_nat.php");
							$tab_array[] = array(gettext("1:1"), false, "firewall_nat_1to1.php");
							$tab_array[] = array(gettext("Outbound"), false, "firewall_nat_out.php");
							$tab_array[] = array(gettext("NPt"), false, "firewall_nat_npt.php");
							display_top_tabs($tab_array);
						?>
214 215 216

						<div class="tab-content content-box col-xs-12">

Ad Schellevis's avatar
Ad Schellevis committed
217
		                        <form action="firewall_nat.php" method="post" name="iform" id="iform">
218 219
						<input type="hidden" id="id" name="id" value="<?php echo htmlspecialchars($id); ?>" />

Ad Schellevis's avatar
Ad Schellevis committed
220
			                        <table class="table table-striped table-sort">
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
			                        <thead>
										<tr id="frheader">
										  <th width="2%" class="list">&nbsp;</th>
						                  <th width="2%" class="list">&nbsp;</th>
										  <th class="listhdrr"><?=gettext("If");?></th>
										  <th class="listhdrr"><?=gettext("Proto");?></th>
										  <th class="listhdrr nowrap"><?=gettext("Src. addr");?></th>
										  <th class="listhdrr nowrap"><?=gettext("Src. ports");?></th>
										  <th class="listhdrr nowrap"><?=gettext("Dest. addr");?></th>
										  <th class="listhdrr nowrap"><?=gettext("Dest. ports");?></th>
										  <th class="listhdrr nowrap"><?=gettext("NAT IP");?></th>
										  <th class="listhdrr nowrap"><?=gettext("NAT Ports");?></th>
										  <th class="listhdr"><?=gettext("Description");?></th>
										  <th class="list"></th>
										</tr>
			                        </thead>
			                        <tbody>
Ad Schellevis's avatar
Ad Schellevis committed
238

Ad Schellevis's avatar
Ad Schellevis committed
239
										<?php $nnats = $i = 0; foreach ($a_nat as $natent): ?>
240 241
										<?php

Ad Schellevis's avatar
Ad Schellevis committed
242 243
											//build Alias popup box
											$span_end = "</U></span>";
244

Ad Schellevis's avatar
Ad Schellevis committed
245
											$alias_popup = rule_popup($natent['source']['address'], pprint_port($natent['source']['port']), $natent['destination']['address'], pprint_port($natent['destination']['port']));
246
                                                                                        $alias_popup = rule_popup($natent['source']['address'], pprint_port($natent['source']['port']), $natent['destination']['address'], pprint_port($natent['destination']['port']));
247

248

Ad Schellevis's avatar
Ad Schellevis committed
249 250 251 252
											$alias_src_span_begin      = $alias_popup["src"];
											$alias_src_port_span_begin = $alias_popup["srcport"];
											$alias_dst_span_begin      = $alias_popup["dst"];
											$alias_dst_port_span_begin = $alias_popup["dstport"];
253

Ad Schellevis's avatar
Ad Schellevis committed
254 255 256 257
											$alias_src_span_end        = $alias_popup["src_end"];
											$alias_src_port_span_end   = $alias_popup["srcport_end"];
											$alias_dst_span_end        = $alias_popup["dst_end"];
											$alias_dst_port_span_end   = $alias_popup["dstport_end"];
258

Ad Schellevis's avatar
Ad Schellevis committed
259
											$alias_popup = rule_popup("","",$natent['target'], pprint_port($natent['local-port']));
260

Ad Schellevis's avatar
Ad Schellevis committed
261 262
											$alias_target_span_begin     = $alias_popup["dst"];
											$alias_local_port_span_begin = $alias_popup["dstport"];
263

Ad Schellevis's avatar
Ad Schellevis committed
264 265
											$alias_target_span_end       = $alias_popup["dst_end"];
											$alias_local_port_span_end   = $alias_popup["dstport_end"];
266

Ad Schellevis's avatar
Ad Schellevis committed
267 268 269 270
											if (isset($natent['disabled']))
												$textss = "<span class=\"gray\">";
											else
												$textss = "<span>";
271

Ad Schellevis's avatar
Ad Schellevis committed
272
											$textse = "</span>";
273

Ad Schellevis's avatar
Ad Schellevis committed
274
											/* if user does not have access to edit an interface skip on to the next record */
275
											if(!have_natpfruleint_access($natent['interface']))
Ad Schellevis's avatar
Ad Schellevis committed
276 277 278
												continue;
										?>
									                <tr valign="top" id="fr<?=$nnats;?>">
279
									                  <td class="listt"><input type="checkbox" id="frc<?=$nnats;?>" name="rule[]" value="<?=$i;?>" style="margin: 0; padding: 0; width: 15px; height: 15px;" /></td>
Ad Schellevis's avatar
Ad Schellevis committed
280 281 282
									                  <td class="listt" align="center">
														<?php if($natent['associated-rule-id'] == "pass"): ?>
														<span class="glyphicon glyphicon-play text-success"></span>
283

Ad Schellevis's avatar
Ad Schellevis committed
284 285
														<?php elseif (!empty($natent['associated-rule-id'])): ?>
														<span class="glyphicon glyphicon-resize-horizontal text-success"></span>
286

Ad Schellevis's avatar
Ad Schellevis committed
287 288
														<?php endif; ?>
													  </td>
Ad Schellevis's avatar
Ad Schellevis committed
289
									                  <td class="listlr"  id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';">
Ad Schellevis's avatar
Ad Schellevis committed
290 291 292 293 294 295 296 297 298
									                    <?=$textss;?>
											    <?php
												if (!$natent['interface'])
													echo htmlspecialchars(convert_friendly_interface_to_friendly_descr("wan"));
												else
													echo htmlspecialchars(convert_friendly_interface_to_friendly_descr($natent['interface']));
											    ?>
									                    <?=$textse;?>
									                  </td>
299

Ad Schellevis's avatar
Ad Schellevis committed
300
									                  <td class="listr"  id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';">
Ad Schellevis's avatar
Ad Schellevis committed
301 302
														<?=$textss;?><?=strtoupper($natent['protocol']);?><?=$textse;?>
									                  </td>
303

Ad Schellevis's avatar
Ad Schellevis committed
304
									                  <td class="listr"  id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';">
305
													    <?=$textss;?>
306
													    <?php
307
													    //if ($alias_src_span_begin) echo htmlspecialchars(pprint_address($alias_src_span_begin));
308
													    //else
309 310
													    echo htmlspecialchars(pprint_address($natent['source']));
													    //if ($alias_src_span_end) echo htmlspecialchars(pprint_address($alias_src_span_end));
311 312
													    ?>
													    <?=$textse;?>
Ad Schellevis's avatar
Ad Schellevis committed
313
									                  </td>
Ad Schellevis's avatar
Ad Schellevis committed
314
									                  <td class="listr"  id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';">
315
													    <?=$textss;?>
316
													    <?php
317
													    //if ($alias_src_port_span_begin) echo htmlspecialchars(pprint_port($alias_src_port_span_begin));
318
													    //else
319 320
													    echo htmlspecialchars(pprint_port($natent['source']['port']));
													    //if($alias_src_port_span_end) echo htmlspecialchars(pprint_port($alias_src_port_span_end));
321
													    ?><?=$textse;?>
Ad Schellevis's avatar
Ad Schellevis committed
322
									                  </td>
323

Ad Schellevis's avatar
Ad Schellevis committed
324
									                  <td class="listr"  id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';">
325
													    <?=$textss;?>
326
													    <?php
327
													    //if ($alias_dst_span_begin) echo htmlspecialchars(pprint_address($alias_dst_span_begin));
328
													    //else
329 330
													    echo htmlspecialchars(pprint_address($natent['destination']));
													    //if ($alias_dst_span_end)  echo htmlspecialchars(pprint_address($alias_dst_span_end));
331
													    ?><?=$textse;?>
Ad Schellevis's avatar
Ad Schellevis committed
332
									                  </td>
Ad Schellevis's avatar
Ad Schellevis committed
333
									                  <td class="listr"  id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';">
334 335
													    <?=$textss;?>
													    <?php
336
													    //if ($alias_dst_port_span_begin) echo htmlspecialchars(pprint_port($alias_dst_port_span_begin['address']));
337
													    //else
338 339
													    echo htmlspecialchars(pprint_port($natent['destination']['port']));
													    //if ($alias_dst_port_span_end ) echo htmlspecialchars(pprint_port($alias_dst_port_span_end['address']));
340
													    ?><?=$textse;?>
Ad Schellevis's avatar
Ad Schellevis committed
341
									                  </td>
342

Ad Schellevis's avatar
Ad Schellevis committed
343
									                  <td class="listr" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';">
344
													    <?=$textss;?>
345
													    <?php
346
													    //if ($alias_target_span_begin) echo htmlspecialchars(pprint_address($alias_target_span_begin));
347
													    //else
348 349
													    echo htmlspecialchars($natent['target']);
													    //if ($alias_target_span_end) echo htmlspecialchars(pprint_address($alias_target_span_end));
350
													    ?><?=$textse;?>
Ad Schellevis's avatar
Ad Schellevis committed
351
									                  </td>
Ad Schellevis's avatar
Ad Schellevis committed
352
									                  <td class="listr"  id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';">
Ad Schellevis's avatar
Ad Schellevis committed
353 354
														<?php
															$localport = $natent['local-port'];
355

Ad Schellevis's avatar
Ad Schellevis committed
356
															list($dstbeginport, $dstendport) = explode("-", $natent['destination']['port']);
357

Ad Schellevis's avatar
Ad Schellevis committed
358 359 360 361 362
															if ($dstendport) {
																$localendport = $natent['local-port'] + $dstendport - $dstbeginport;
																$localport   .= '-' . $localendport;
															}
														?>
363
													    <?=$textss;?><?php
364
													    //if ($alias_local_port_span_begin) echo htmlspecialchars(pprint_port($alias_local_port_span_begin['address']));
365
													    //else
366 367
													    echo htmlspecialchars(pprint_port($localport));
													    //if ($alias_local_port_span_end) echo htmlspecialchars(pprint_port($alias_local_port_span_end['address']));
368
													    ?><?=$textse;?>
Ad Schellevis's avatar
Ad Schellevis committed
369
									                  </td>
370

Ad Schellevis's avatar
Ad Schellevis committed
371
									                  <td class="listbg"  ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';">
Ad Schellevis's avatar
Ad Schellevis committed
372 373 374
													  <?=$textss;?><?=htmlspecialchars($natent['descr']);?>&nbsp;<?=$textse;?>
									                  </td>
									                  <td valign="middle" class="list nowrap">
375 376


377 378 379
																<button type="submit"  name="move_<?=$i;?>_x" data-toggle="tooltip" data-placement="left" title="<?=gettext("move selected rules before this rule");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-arrow-left"></span></button>
																<a href="firewall_nat_edit.php?id=<?=$i;?>" data-toggle="tooltip" data-placement="left" title="<?=gettext("edit this rule");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></a>
																<a href="firewall_nat.php?act=del&amp;id=<?=$i;?>"  data-toggle="tooltip" data-placement="left" title="<?=gettext("delete this rule");?>" onclick="return confirm('<?=gettext("Do you really want to delete this rule?");?>')" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-remove"></span></a>
380

381
																<a href="firewall_nat_edit.php?dup=<?=$i;?>" class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="left" title="<?=gettext("add new rule based on this one");?>"><span class="glyphicon glyphicon-plus"></span></a></td>
Ad Schellevis's avatar
Ad Schellevis committed
382
									                      </tr>
Jos Schellevis's avatar
Jos Schellevis committed
383 384
												<?php $i++; $nnats++; endforeach; ?>
								                <tr>
Ad Schellevis's avatar
Ad Schellevis committed
385 386 387 388 389
									                  <td class="list" colspan="8"></td>
									                  <td>&nbsp;</td>
									                  <td>&nbsp;</td>
									                  <td>&nbsp;</td>
									                  <td class="list nowrap" valign="middle">
390

391
														<?php if ($nnats == 0): ?><span class="btn btn-default btn-xs text-muted"><span class="glyphicon glyphicon-arrow-left"></span></span><?php else: ?><button name="move_<?=$i;?>_x" value="<?=$i;?>" type="submit" data-toggle="tooltip" data-placement="left" title="<?=gettext("move selected rules to end");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-arrow-left"></span></button><?php endif; ?>
392

Jos Schellevis's avatar
Jos Schellevis committed
393
														<?php if (count($a_nat) == 0): ?>
394

395
															<span class="btn btn-default btn-xs text-muted"  data-toggle="tooltip" data-placement="left" title="<?=gettext("delete selected rules");?>"><span class="glyphicon glyphicon-remove" ></span></span>
Jos Schellevis's avatar
Jos Schellevis committed
396
														<?php else: ?>
397
															<button name="del_<?=$i;?>_x" type="submit" data-toggle="tooltip" data-placement="left" title="<?=gettext("delete selected rules"); ?>" onclick="return confirm('<?=gettext("Do you really want to delete the selected rules?");?>')" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-remove"></span></button>
Jos Schellevis's avatar
Jos Schellevis committed
398
														<?php endif; ?>
399
														 <a href="firewall_nat_edit.php" class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="left" title="<?=gettext("add new rule");?>"><span class="glyphicon glyphicon-plus"></span></a>
Jos Schellevis's avatar
Jos Schellevis committed
400 401
													</td>
												</tr>
Ad Schellevis's avatar
Ad Schellevis committed
402 403
											</tbody>
											<tfoot>
Ad Schellevis's avatar
Ad Schellevis committed
404 405 406 407 408 409 410 411 412
											<tr><td colspan="12">&nbsp;</td></tr>
									          <tr>
									            <td width="16"><span class="glyphicon glyphicon-play text-success"></span></td>
									            <td colspan="11"><?=gettext("pass"); ?></td>
												</tr>
											   <tr>
									            <td width="14"><span class="glyphicon glyphicon-resize-horizontal text-success"></span></td>
										    <td colspan="11"><?=gettext("linked rule");?></td>
									          </tr>
Ad Schellevis's avatar
Ad Schellevis committed
413 414 415

											</tfoot>

Ad Schellevis's avatar
Ad Schellevis committed
416
									    </table>
417

Ad Schellevis's avatar
Ad Schellevis committed
418
										<div class="container-fluid">
419
<input name="del_x" type="submit" data-toggle="tooltip" data-placement="left" title="<?=gettext("delete selected rules"); ?>" onclick="return confirm('<?=gettext("Do you really want to delete the selected rules?");?>')" class="btn btn-primary" value="Delete selected rules"/>
Ad Schellevis's avatar
Ad Schellevis committed
420
										</div>
Ad Schellevis's avatar
Ad Schellevis committed
421
									</form>
Ad Schellevis's avatar
Ad Schellevis committed
422 423 424 425 426 427 428

								</div>
							</section>
				        </div>
				    </div>
				</section>

Ad Schellevis's avatar
Ad Schellevis committed
429 430


431
<?php include("foot.inc"); ?>