aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-02 22:24:33 +0000
committerErmal <eri@pfsense.org>2011-08-02 22:24:33 +0000
commit687d283282dc6f10939444c59a9ad31459799b48 (patch)
tree364f76bdf54fa79f10f3ecd185f40c8cb330ec20 /config/snort/snort_interfaces_edit.php
parent984b4fb7aa7cca3579c9fbb6b6beec3cf2d4d17f (diff)
downloadpfsense-packages-687d283282dc6f10939444c59a9ad31459799b48.tar.gz
pfsense-packages-687d283282dc6f10939444c59a9ad31459799b48.tar.bz2
pfsense-packages-687d283282dc6f10939444c59a9ad31459799b48.zip
Do not forget interface on reedit and properly stop snort on deletion
Diffstat (limited to 'config/snort/snort_interfaces_edit.php')
-rw-r--r--config/snort/snort_interfaces_edit.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/config/snort/snort_interfaces_edit.php b/config/snort/snort_interfaces_edit.php
index befdbe11..0876d06e 100644
--- a/config/snort/snort_interfaces_edit.php
+++ b/config/snort/snort_interfaces_edit.php
@@ -489,9 +489,9 @@ echo "
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq2">Interface</td>
- <td width="78%" class="vtable"><select name="interface"
- class="formfld">
- <?php
+ <td width="78%" class="vtable">
+ <select name="interface" class="formfld">
+ <?php
if (function_exists('get_configured_interface_with_descr'))
$interfaces = get_configured_interface_with_descr();
else {
@@ -501,10 +501,13 @@ echo "
}
}
foreach ($interfaces as $iface => $ifacename): ?>
- <option value="<?=$iface;?>"
+ <option value="<?=$iface;?>"
<?php if ($iface == $pconfig['interface']) echo "selected"; ?>><?=htmlspecialchars($ifacename);?>
</option>
- <?php endforeach; ?>
+ <?php endforeach;
+ if ($pconfig['enable'] == "on" && !empty($pconfig['interface']))
+ echo "<input type='hidden' name='interface' id='interface' value='{$pconfig['interface']}'/>\n";
+ ?>
</select><br>
<span class="vexpl">Choose which interface this rule applies to.<br>
Hint: in most cases, you'll want to use WAN here.</span></td>