From 69ad0f23207b89c04872cac32aa77ea6a56d3286 Mon Sep 17 00:00:00 2001 From: robiscool Date: Wed, 28 Oct 2009 00:13:49 -0700 Subject: snort-dev, see if snort.xml creates directories --- config/snort-dev/snort_interfaces.php | 158 ++++++++++++++++++++-------------- 1 file changed, 92 insertions(+), 66 deletions(-) (limited to 'config/snort-dev/snort_interfaces.php') diff --git a/config/snort-dev/snort_interfaces.php b/config/snort-dev/snort_interfaces.php index 065ec0dc..773b6f9a 100644 --- a/config/snort-dev/snort_interfaces.php +++ b/config/snort-dev/snort_interfaces.php @@ -3,7 +3,6 @@ /* snort_interfaces.php Copyright (C) 2004 Scott Ullrich - Copyright (C) 2004 Robert Zelaya All rights reserved. originally part of m0n0wall (http://m0n0.ch/wall) @@ -33,11 +32,12 @@ */ require("guiconfig.inc"); +require("/usr/local/pkg/snort_misc.inc"); -if (!is_array($config['installedpackages']['snortglobal'])) - $config['installedpackages']['snortglobal'] = array(); +if (!is_array($config['installedpackages']['snortglobal']['rule'])) + $config['installedpackages']['snortglobal']['rule'] = array(); -$a_nat = &$config['installedpackages']['snortglobal']; +$a_nat = &$config['installedpackages']['snortglobal']['rule']; /* if a custom message has been passed along, lets process it */ if ($_GET['savemsg']) @@ -85,7 +85,7 @@ if (isset($_POST['del_x'])) { } write_config(); touch($d_natconfdirty_path); - header("Services: snort_interfaces.php"); + header("Location: snort_interfaces.php"); exit; } @@ -128,38 +128,54 @@ if (isset($_POST['del_x'])) { $a_nat = $a_nat_new; write_config(); touch($d_natconfdirty_path); - header("Services: snort_interfaces.php"); + header("Location: snort_interfaces.php"); exit; } } -$pgtitle = "Services: Snort 2.8.4.1_5 pkg v. 1.7"; +$pgtitle = "Services: Snort Interfaces"; include("head.inc"); ?>

+ + +

The NAT configuration has been changed.
You must apply the changes in order for them to take effect."); + print_info_box_np2("{$savemsg}
The Snort configuration has been changed.
You must apply the changes in order for them to take effect."); else - print_info_box_np("The NAT configuration has been changed.
You must apply the changes in order for them to take effect."); + print_info_box_np2("The Snort configuration has been changed.
You must apply the changes in order for them to take effect."); ?> @@ -265,25 +285,31 @@ include("head.inc"); +
@@ -170,19 +186,18 @@ include("head.inc"); - - - - - - - - - + + + + + + + @@ -206,43 +221,52 @@ include("head.inc"); ?> - - - - -
  IfInlineInline portInline port rangeBlock HostsBarnyard2Description +  IfSnortSnortBlock HostsBarnyard2Description - +
- - - + - - (ext.: " . $natent['external-address'] . ")"; - else - echo "
(ext.: " . find_interface_ip(convert_friendly_interface_to_real_interface_name($natent['interface'])) . ")"; - ?> + +
- + - + + @@ -253,10 +277,6 @@ include("head.inc");
- - + - - -
-
- -

Note:
Snort Inline mode is disabled and in private testing. Snort Inline release target is pfSense 2.0.

- - +
+ + +
Note: +
+ This is the Snort Interfaces Menu where you can see an over view of all your interface settings. +
+ Please edit the Global Settings tab befor adding an interface. +

+ Click on the Plus Icon to add a interface. +
+ Click on the Edit Icon to edit interface settings. +
+ "") { echo ""; -- cgit v1.2.3