Переглянути джерело

Changed module name from SNF4CGP to CGPSNF. Builds on Ubuntu 9.04.


git-svn-id: https://svn.microneil.com/svn/PKG-SNF4CGP-NIX/trunk@22 7ef522f6-be79-40a8-b7df-0a85b3383509
master
adeniz 15 роки тому
джерело
коміт
1ef9b69309

+ 5
- 6
SNF4CGP_Developer_Package/DEVELOPER_NOTES Переглянути файл

@@ -127,8 +127,6 @@ On some OSes, running this results in warning messages:

3) `CXXFLAGS' is a user variable, you should not override it.

4) shell uname -s: non-POSIX variable name

These can be safely ignored.

Issue the following commands for creating a CommuniGate Pro module
@@ -157,8 +155,9 @@ module):
See the documentation make and libtool for other options.

3) 'make module' (as root). This creates a tarball named
SNF4CGP-$(VERSION)-MODULE.tar.gz that contains the binary
CommuniGate Pro module.
CGPSNF-$(VERSION)-MODULE.tar.gz that contains the binary CommuniGate
Pro module. The executable SNF4CGP/SNF4CGP is renamed to CGPSNF in
this tarball.

Please note that the "make install" is not needed. If you accidently
run "make install", you can run "make uninstall" to remove the files
@@ -213,11 +212,11 @@ The CGP module tarball is created by commands in Makefile.am. Look
for a line beginning with "module:". The following line defines the
name of the module tarball:

MOD_TARBALL=SNF4CGP-$(VERSION)-$(shell uname -s).tar.gz
MOD_TARBALL=CGPSNF-$(VERSION)-MODULE.tar.gz

The following line defines the name of the module directory:

MOD_DIR=SNF4CGP
MOD_DIR=CGPSNF

The commands after the line beginning with "module:" create the module
tarball. Modify those commands to alter the content of the module

+ 91
- 42
SNF4CGP_Developer_Package/Doc/default.html Переглянути файл

@@ -19,11 +19,12 @@


<LI><A href="#Download">Download the Sniffer Plugin</A>
<LI><A href="#Install">Installation</A>
<LI><A href="#Install" name=Install>Installation</A>
<UL>
<LI><A href="#WIN32">Installing on a MS Windows 200x/NT/XP/9x System</A>
<LI><A href="#Linux">Installing on a Linux System</A>
<LI><A href="#FreeBSD">Installing on a FreeBSD or OpenBSD System</A>
<LI><A href="#Source">Installing from source</A>
</UL>
<LI><A href="#Upgrading">Upgrading to a newer version</A>
<LI><A href="#Config">Configuring the Sniffer Plugin</A>
@@ -69,38 +70,62 @@ CommuniGatePro version 5.2.3 or later.
<TR>
<TD ALIGN=CENTER>Microsoft Windows NT/2000/XP<BR>Microsoft Windows 95/98</TD>
<TD ALIGN=CENTER>x86</TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/SNF4CGP-Win32-Intel.zip">
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/CGPSNF-Win32-Intel.zip">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/SNF4CGP-Win32-Intel.zip">
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/CGPSNF-Win32-Intel.zip">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
</TR>

<TR>
<TD ALIGN=CENTER>Linux<BR>Kernel 2.6 (stdc++ library version = 6.0)</TD>
<TD ALIGN=CENTER rowspan=2>Linux (RedHat/Fedora/CentOS, Ubuntu, SuSE)</TD>
<TD ALIGN=CENTER>x86</TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/SNF4CGP-Linux-Intel.tar.gz">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/SNF4CGP-Linux-Intel.tar.gz">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/CGPSNF-Linux-Intel.tar.gz"><IMG SRC="DownLoad.gif"
BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/CGPSNF-Linux-Intel.tar.gz"><IMG SRC="DownLoad.gif"
BORDER=0 WIDTH=16 HEIGHT=16></A></TD>

<TR>
<TD ALIGN=CENTER>x86_64</TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/CGPSNF-Linux-x86_64.tar.gz"><IMG SRC="DownLoad.gif"
BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://www.armresearch.com/pub/plugins/CGPSNF-Linux-x86_64.tar.gz"><IMG SRC="DownLoad.gif"
BORDER=0 WIDTH=16 HEIGHT=16></A></TD>

</TR>

<TR>
<TD ALIGN=CENTER>FreeBSD 7.x</TD>
<TD ALIGN=CENTER rowspan=2>FreeBSD 7.x</TD>
<TD ALIGN=CENTER>x86</TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/SNF4CGP-FreeBSD7-Intel.tar.gz">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/SNF4CGP-FreeBSD7-Intel.tar.gz">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/CGPSNF-FreeBSD7.x-Intel.tar.gz"><IMG SRC="DownLoad.gif"
BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/CGPSNF-FreeBSD7.x-Intel.tar.gz"><IMG SRC="DownLoad.gif"
BORDER=0 WIDTH=16 HEIGHT=16></A></TD>

<TR>
<TD ALIGN=CENTER>x86_64</TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/CGPSNF-FreeBSD7.x-x86_64.tar.gz"><IMG SRC="DownLoad.gif"
BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://www.armresearch.com/pub/plugins/CGPSNF-FreeBSD7.x-x86_64.tar.gz"><IMG SRC="DownLoad.gif"
BORDER=0 WIDTH=16 HEIGHT=16></A></TD>

</TR>

<TR>
<TD ALIGN=CENTER>OpenBSD 4.3</TD>
<TD ALIGN=CENTER rowspan=2>OpenBSD 4.4 or later</TD>
<TD ALIGN=CENTER>x86</TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/SNF4CGP-OpenBSD4.3-Intel.tar.gz">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/SNF4CGP-OpenBSD4.3-Intel.tar.gz">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
</TR>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/CGPSNF-OpenBSD4.4-Intel.tar.gz"><IMG SRC="DownLoad.gif"
BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/CGPSNF-OpenBSD4.4-Intel.tar.gz"><IMG SRC="DownLoad.gif"
BORDER=0 WIDTH=16 HEIGHT=16></A></TD>

<TR>
<TD ALIGN=CENTER>x86_64</TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/CGPSNF-OpenBSD4.4-x86_64.tar.gz"><IMG SRC="DownLoad.gif"
BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://www.armresearch.com/pub/plugins/CGPSNF-OpenBSD4.4-x86_64.tar.gz"><IMG SRC="DownLoad.gif"
BORDER=0 WIDTH=16 HEIGHT=16></A></TD>

</TR>

</TABLE>

@@ -111,7 +136,7 @@ CommuniGatePro version 5.2.3 or later.


<H3><HR><A name=Upgrading></A>Upgrading to a newer version.</H3>
<P>When upgrading the Plugin to a newer version, do the following steps:
<P>When upgrading the Plugin to a newer version, do the following:
<UL>
<LI>Stop the current copy of the plugin application via CommuniGate Pro WebAdmin interface.
<LI>Install and configure the new version of the Plugin as described above in this document.
@@ -122,7 +147,7 @@ CommuniGatePro version 5.2.3 or later.
<LI>Open the command-line interface window and
change the current directory to the CommuniGate Pro <I>base directory</I>.
<LI>Use any &quot;unzip&quot;-type tool to unpack the
<TT>SNF4CGP-Win32-Intel.zip</TT> file. The <TT>SNF4CGP</TT> directory will be created inside the <I>base directory</I>.
<TT>CGPSNF-Win32-Intel.zip</TT> file. The <TT>CGPSNF</TT> directory will be created inside the <I>base directory</I>.
<LI>Proceed with <A HREF="#Config">Configuring the Sniffer Plugin</A>.
</UL>

@@ -132,9 +157,9 @@ CommuniGatePro version 5.2.3 or later.
<LI>Change the current directory to the CommuniGate Pro <I>base directory</I>.
<LI>Unpack the Plugin archive with the <TT>gtar</TT> command (or
with the <TT>gunzip</TT> and <TT>tar</TT> commands):<TT><BR>
&nbsp;&nbsp;gunzip SNF4CGP-Linux-Intel.tar.gz<BR>
&nbsp;&nbsp;tar -xf SNF4CGP-Linux-Intel.tar</TT><BR>
The <TT>SNF4CGP</TT> directory will be created inside the <I>base directory</I>.
&nbsp;&nbsp;gunzip CGPSNF-Linux-Intel.tar.gz<BR>
&nbsp;&nbsp;tar -xf CGPSNF-Linux-Intel.tar</TT><BR>
The <TT>CGPSNF</TT> directory will be created inside the <I>base directory</I>.
<LI>Proceed with <A HREF="#Config">Configuring the Sniffer Plugin</A>.
</UL>

@@ -144,15 +169,37 @@ CommuniGatePro version 5.2.3 or later.
<LI>Change the current directory to the CommuniGate Pro <I>base directory</I>.
<LI>Unpack the Plugin archive with the <TT>gtar</TT> command (or
with the <TT>gunzip</TT> and <TT>tar</TT> commands):<TT><BR>
&nbsp;&nbsp;gunzip SNF4CGP-FreeBSD-Intel.tar.gz<BR>
&nbsp;&nbsp;tar -xf SNF4CGP-FreeBSD-Intel.tar</TT><BR>
The <TT>SNF4CGP</TT> directory will be created inside the <I>base directory</I>.
&nbsp;&nbsp;gunzip CGPSNF-FreeBSD-Intel.tar.gz<BR>
&nbsp;&nbsp;tar -xf CGPSNF-FreeBSD-Intel.tar</TT><BR>
The <TT>CGPSNF</TT> directory will be created inside the <I>base directory</I>.
<LI>Proceed with <A HREF="#Config">Configuring the Sniffer Plugin</A>.
</UL>

<H3><HR><A name=Source></A>Installing from source.</H3>
You can build the Sniffer Plugin from source:
<UL>
<LI>Download the <TT>snf4cgp-X.Y.Z.tar.gz</TT>, where X.Y.Z is the
version.
<LI>Extract the sources with the command:<TT><BR>
&nbsp;&nbsp;tar -xzf snf4cgp-X.Y.Z.tar.gz</TT><BR>
This creates a directory <TT>snf4cgp-X.Y.Z</TT>.
<LI>Change directory to <TT>snf4cgp-X.Y.Z</TT>:<TT><BR>
&nbsp;&nbsp;cd snf4cgp-X.Y.Z</TT><BR>
<LI>Configure and build the system:<TT><BR>
&nbsp;&nbsp;./configure<BR>
&nbsp;&nbsp;./make</TT><BR>
<LI>Become super-user (root).
<LI>Create the Sniffer Plugin:<TT><BR> &nbsp;&nbsp;make
module</TT><BR> This creates a Plugin archive
named <TT>CGPSNF-X.Y.Z-MODULE.tar.gz</TT>.
<LI>Proceed with <A HREF="#Install">Installing the Sniffer
Plugin</A> for your system, using the Plugin archive that was
created.
</UL>

<H3><HR><A name=Config></A>Configuring the Sniffer Plugin.</H3>

<P>In the module directory (<TT>/var/CommuniGate/SNF4CGP</TT> on a
<P>In the module directory (<TT>/var/CommuniGate/CGPSNF</TT> on a
Linux or Linux-like system):
<UL>
<LI>Copy the configuration file <TT><BR>
@@ -170,7 +217,7 @@ CommuniGatePro version 5.2.3 or later.

<LI>Copy <TT><BR>
&nbsp;&nbsp;getRulebase.sample</TT><BR> to <TT><BR>
&nbsp;&nbsp;getRulebase.xml</TT><BR> and edit to include the
&nbsp;&nbsp;getRulebase</TT><BR> and edit to include the
license ID and authentication:

<UL>
@@ -188,7 +235,9 @@ CommuniGatePro version 5.2.3 or later.
ARM Research Labs.</LI>

</UL>
<BR>

<LI>Make <TT>getRulebase</TT> executable:<TT><BR>
&nbsp;&nbsp;chmod 755 getRulebase</TT><BR>

<LI>Copy <TT><BR>
&nbsp;&nbsp;GBUdbIgnoreList.txt.sample</TT><BR> to <TT><BR>
@@ -209,7 +258,7 @@ CommuniGatePro version 5.2.3 or later.
This downloads the Sniffer database to the plugin directory.
</UL>

The <B><TT>SNF4CGP</TT></B> program automatically updates the
The <B><TT>CGPSNF</TT></B> program automatically updates the
Sniffer database as needed.

<LI>Proceed with <A HREF="#Test">Testing the Sniffer Plugin</A>.
@@ -221,31 +270,31 @@ CommuniGatePro version 5.2.3 or later.
<P>On Windows System:
<!--
<UL>
<LI>Launch the <TT>SNF4CGP.exe</TT> application by typing:<TT><BR>
&nbsp;&nbsp;SNF4CGP\SNF4CGP.exe SNF4CGP\snf_engine.xml</TT><BR>
<LI>Launch the <TT>CGPSNF.exe</TT> application by typing:<TT><BR>
&nbsp;&nbsp;CGPSNF\CGPSNF.exe CGPSNF\snf_engine.xml</TT><BR>
It will report the Plugin version number and build date.<BR>

<LI>Type:<TT><BR>
&nbsp;&nbsp;1 FILE SNF4CGP\junkmsg.msg</TT><BR>
&nbsp;&nbsp;1 FILE CGPSNF\junkmsg.msg</TT><BR>
The plugin should report that the file is spam.
<LI>Quit <TT>SNF4CGP.exe</TT> by typing Ctrl-Z.
<LI>Quit <TT>CGPSNF.exe</TT> by typing Ctrl-Z.
</UL>
-->

<P>On a Unix System:
<UL>
<LI> Change to the module directory:<TT><BR>
&nbsp;&nbsp;cd /var/CommuniGate/SNF4CGP</TT><BR>
&nbsp;&nbsp;cd /var/CommuniGate/CGPSNF</TT><BR>

<LI>Launch the <TT>SNF4CGP</TT> application by typing:<TT><BR>
&nbsp;&nbsp;./SNF4CGP snf_engine.xml</TT><BR>
<LI>Launch the <TT>CGPSNF</TT> application by typing:<TT><BR>
&nbsp;&nbsp;./CGPSNF snf_engine.xml</TT><BR>
It will report the Plugin version number and build date.<BR>

<LI>Type:<TT><BR>
&nbsp;&nbsp;1 FILE junkmsg.txt</TT><BR>
the plugin should report that the file is spam.

<LI>Quit <TT>SNF4CGP</TT> by typing Ctrl-D.
<LI>Quit <TT>CGPSNF</TT> by typing Ctrl-D.
</UL>

<H3><HR><A NAME="Options"></A>Command Line Options</H3>
@@ -282,7 +331,7 @@ Create the Helper as follows:
</TR><TR>
<td align="right" width="25%">Log Level:</td><td><select name="L3"><option value="0">Crashes Only</option><option value="1">Failures</option><option value="2">Major &amp; Failures</option><option value="3">Problems</option><option value="4" selected="selected">Low Level</option><option value="5">All Info</option></select></td>
<td align="right" width="25%">Program Path:</td><td><input name="P3"
value="SNF4CGP/SNF4CGP /var/CommuniGate/SNF4CGP/snf_engine.xml" size="30" maxlength="255" type="text" /></td>
value="CGPSNF/CGPSNF /var/CommuniGate/CGPSNF/snf_engine.xml" size="30" maxlength="255" type="text" /></td>

</TR><TR>
<TD ALIGN=RIGHT>Time-out:</TD><TD><SELECT NAME="T0"><OPTION VALUE=0>disabled<OPTION VALUE="15">15 seconds<OPTION VALUE="30">30 seconds<OPTION VALUE="60">minute<OPTION VALUE="120">2 minutes<OPTION VALUE="180">3 minutes<OPTION VALUE="300" SELECTED>5 minutes<OPTION VALUE="600">10 minutes<OPTION VALUE="900">15 minutes<OPTION VALUE="1800">30 minutes<OPTION VALUE="3600">hour</SELECT></TD>
@@ -294,10 +343,10 @@ Create the Helper as follows:


<B>Note:</B> For Windows system the Program Path shold be
<TT>SNF4CGP\SNF4CGP.exe SNF4CGP\snf_engine.xml</TT><BR>
<TT>CGPSNF\CGPSNF.exe CGPSNF\snf_engine.xml</TT><BR>
<B>Note:</B> On some versions of FreeBSD system you may need to
specify the full path to the program,
i.e. <tt>/var/CommuniGate/SNF4CGP/SNF4CGP /var/CommuniGate/SNF4CGP/snf_engine.xml</tt>
i.e. <tt>/var/CommuniGate/CGPSNF/CGPSNF /var/CommuniGate/CGPSNF/snf_engine.xml</tt>

<P>The recommended Scanning Rule is as follows:</P>


+ 1
- 1
SNF4CGP_Developer_Package/INSTALL Переглянути файл

@@ -5,4 +5,4 @@
See www.armresearch.com for the copyright terms.
Please see the Doc/default.html file for installation and
configuration instructions.
configuration instructions.

+ 4
- 4
SNF4CGP_Developer_Package/Makefile.am Переглянути файл

@@ -37,17 +37,17 @@ EXTRA_DIST = \
Doc/DownLoad.gif \
Doc/default.html

TEMP_DIR=SNF4CGP-TEMP
MOD_DIR=SNF4CGP
TEMP_DIR=CGPSNF-TEMP
MOD_DIR=CGPSNF
MOD_PATH=$(TEMP_DIR)/$(MOD_DIR)
MOD_TARBALL=SNF4CGP-$(VERSION)-MODULE.tar.gz
MOD_TARBALL=CGPSNF-$(VERSION)-MODULE.tar.gz
module:
rm -rf $(TEMP_DIR)
mkdir $(TEMP_DIR)
mkdir $(MOD_PATH)
chmod 2770 $(MOD_PATH)
mkdir $(MOD_PATH)/hold $(MOD_PATH)/Doc
cp SNF4CGP/SNF4CGP $(MOD_PATH)
cp SNF4CGP/SNF4CGP $(MOD_PATH)/CGPSNF
cp SNFClient/SNFClient $(MOD_PATH)
cp SNF2Check/SNF2Check $(MOD_PATH)
cp Scripts/getRulebase.sample $(MOD_PATH)

+ 1
- 1
SNF4CGP_Developer_Package/cleanForDist Переглянути файл

@@ -12,4 +12,4 @@
make distclean
find . -name '*~' -exec rm {} \;
find . -name Makefile.in -exec rm {} \;
rm -rf config autom4te.cache configure config.h* aclocal.m4 snf4cgp-* SNF4CGP-*
rm -rf config autom4te.cache configure config.h* aclocal.m4 snf4cgp-* CGPSNF-*

Завантаження…
Відмінити
Зберегти