02.03.2014 Views

Snort, Apache, SSL, PHP, MySQL, and BASE Install on Fedora Core 3

Snort, Apache, SSL, PHP, MySQL, and BASE Install on Fedora Core 3

Snort, Apache, SSL, PHP, MySQL, and BASE Install on Fedora Core 3

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

!!!DO THE FOLLOWING AS ROOT!!!<br />

If you’re SSH’d into the box, you can use wget (wget will place the file you’re<br />

downloading into the directory where you’re currently located) to download these files.<br />

To use wget, type “wget ”, <str<strong>on</strong>g>and</str<strong>on</strong>g> it will begin the download to the directory<br />

that you are currently in. If you want to use a Windows box <str<strong>on</strong>g>and</str<strong>on</strong>g> need an SSH client, then<br />

you can go to the PuTTY http://www.chiark.greenend.org.uk/~sgtatham/putty/ home<br />

page <str<strong>on</strong>g>and</str<strong>on</strong>g> download a free <strong>on</strong>e.<br />

Download <str<strong>on</strong>g>Snort</str<strong>on</strong>g> <str<strong>on</strong>g>and</str<strong>on</strong>g> PCRE<br />

You can do this from a browser window or use wget from the terminal. From inside of<br />

the /root/snortinstall directory, type:<br />

wget http://www.snort.org/dl/snort-2.3.0.tar.gz<br />

When that is downloaded, type:<br />

wget http://umn.dl.sourceforge.net/sourceforge/pcre/pcre-5.0.tar.gz<br />

<str<strong>on</strong>g>Install</str<strong>on</strong>g> PCRE<br />

tar –xvzf pcre-5.0.tar.gz<br />

cd pcre-5.0<br />

./c<strong>on</strong>figure<br />

make<br />

make install<br />

<str<strong>on</strong>g>Install</str<strong>on</strong>g>ing <str<strong>on</strong>g>and</str<strong>on</strong>g> setting up <str<strong>on</strong>g>Snort</str<strong>on</strong>g> <str<strong>on</strong>g>and</str<strong>on</strong>g> the <str<strong>on</strong>g>Snort</str<strong>on</strong>g> rules:<br />

tar -xvzf snort-2.3.0.tar.gz<br />

cd snort-2.3.0<br />

./c<strong>on</strong>figure --with-mysql<br />

make<br />

make install<br />

groupadd snort<br />

useradd -g snort snort<br />

mkdir /etc/snort<br />

mkdir /etc/snort/rules<br />

mkdir /var/log/snort<br />

<str<strong>on</strong>g>Install</str<strong>on</strong>g>ing the rules <str<strong>on</strong>g>and</str<strong>on</strong>g> c<strong>on</strong>f file:<br />

(From the <str<strong>on</strong>g>Snort</str<strong>on</strong>g> installati<strong>on</strong> directory)<br />

Versi<strong>on</strong> 10 Page 11 of 19 Updated 2/11/2005 3:27 PM

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!