Linux PortSentry | All about OS

Linux PortSentry

Категория: Securing and Optimizing

[root@deep tmp]# tar xzpf portsentry-version.tar.gz
Compile and Optimize
You must modify the “Makefile” file for Portsentry to specify installation paths, compilation flags, and optimizations for your system. We must also modify this file to be compliant with Red Hat file’s system structure.
Stepi
Move into the new Portsentry directory and type the following commands on your terminal:
Edit the Makefile file (vi Makefile) and change the following lines:
CC = cc To read: CC = egcs
CFLAGS = -O -Wall
To read:
CFLAGS = -09 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro -march=pentiumpro -
fomit-frame-pointer -fno-exceptions -Wall
INSTALLDIR = /usr/local/psionic
To read:
INSTALLDIR = /usr/psionic
The above changes will configure the software to use “egcs” compiler, optimization flags specific to our system, and locate all files related to Portsentry software to the destination target directories we have chosen.
Step 2
Since we are using an alternate path for the files (i.e NOT /usr/local/psionic), we need to change
the path to the PortSentry configuration file in the main “portsentry_config.h” header file.
Move into the new PortSentry directory and edit the portsentry_config.h file (vi portsentry_config.h) and change the following line:
#define CONFIG_FILE “/usr/local/psionic/portsentry/portsentry.conf
To read:
#define CONFIG_FILE “/usr/psionic/portsentry/portsentry.conf’
Step 3
Install Portsentry on your system.
[root@deep portsentry-1.0]# make linux [root@deep portsentry-1.0]# make install
The above commands will configure the software to the Linux operating system, compile, build, and then finally install files into the appropriate locations.
Cleanup after work
[root@deep /]# cd /var/tmp
[root@deep tmp]# rm -rf portsentry-version/ portsentry-version_tar.gz

Страниц: 1 2 3 4 5 6 7

« Linux Logcheck
Securities Software (Network Services).Linux OpenSSH Client/Server »