557 lines
7.8 KiB
HTML
557 lines
7.8 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Security, Optimization and Upgrade</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.60"><LINK
|
|
REL="HOME"
|
|
TITLE="Securing and Optimizing Linux"
|
|
HREF="index.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Update of the latest software"
|
|
HREF="chap4sec28.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="General System Security"
|
|
HREF="gen-syssecured.html"></HEAD
|
|
><BODY
|
|
CLASS="part"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Securing and Optimizing Linux: RedHat Edition -A Hands on Guide</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="chap4sec28.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
></TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="gen-syssecured.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="PART"
|
|
><A
|
|
NAME="AEN3171"
|
|
></A
|
|
><DIV
|
|
CLASS="TITLEPAGE"
|
|
><H1
|
|
CLASS="title"
|
|
>3. Security, Optimization and Upgrade</H1
|
|
><DIV
|
|
CLASS="PARTINTRO"
|
|
><A
|
|
NAME="AEN3173"
|
|
></A
|
|
><DIV
|
|
CLASS="mediaobject"
|
|
><P
|
|
><IMG
|
|
SRC="./Annimals/Chapter15.gif"
|
|
ALT="Bat"
|
|
></IMG
|
|
></P
|
|
></DIV
|
|
><BLOCKQUOTE
|
|
CLASS="ABSTRACT"
|
|
><DIV
|
|
CLASS="abstract"
|
|
><A
|
|
NAME="AEN3179"
|
|
></A
|
|
><P
|
|
></P
|
|
><P
|
|
>Now that we have installed a base system, the next three chapters will concentrate on
|
|
<P
|
|
></P
|
|
><UL
|
|
><LI
|
|
STYLE="list-style-type: opencircle"
|
|
><P
|
|
> How to tighten the security of our configured system.
|
|
</P
|
|
></LI
|
|
><LI
|
|
STYLE="list-style-type: opencircle"
|
|
><P
|
|
> Optimise our sytem to perform at its peak.
|
|
</P
|
|
></LI
|
|
><LI
|
|
STYLE="list-style-type: opencircle"
|
|
><P
|
|
> Upgrade our machine for the latest kernel.
|
|
</P
|
|
></LI
|
|
></UL
|
|
>
|
|
Please note when we talk of tightening the security we are referring to the features available within the base installed system and not to any new additional software. We will talk about that later
|
|
in this book.</P
|
|
><P
|
|
></P
|
|
></DIV
|
|
></BLOCKQUOTE
|
|
></DIV
|
|
><DIV
|
|
CLASS="TOC"
|
|
><DL
|
|
><DT
|
|
><B
|
|
>Table of Contents</B
|
|
></DT
|
|
><DT
|
|
>5. <A
|
|
HREF="gen-syssecured.html"
|
|
>General System Security</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
>5.1. <A
|
|
HREF="chap5sec29.html"
|
|
>BIOS</A
|
|
></DT
|
|
><DT
|
|
>5.2. <A
|
|
HREF="chap5sec30.html"
|
|
>Security as a Policy</A
|
|
></DT
|
|
><DT
|
|
>5.3. <A
|
|
HREF="chap5sec31.html"
|
|
>Choose a right Password</A
|
|
></DT
|
|
><DT
|
|
>5.4. <A
|
|
HREF="chap5sec32.html"
|
|
>The root account</A
|
|
></DT
|
|
><DT
|
|
>5.5. <A
|
|
HREF="chap5sec33.html"
|
|
>The <TT
|
|
CLASS="filename"
|
|
>/etc/exports</TT
|
|
> file</A
|
|
></DT
|
|
><DT
|
|
>5.6. <A
|
|
HREF="chap5sec34.html"
|
|
>Disable console program access</A
|
|
></DT
|
|
><DT
|
|
>5.7. <A
|
|
HREF="chap5sec35.html"
|
|
>Disable all console access</A
|
|
></DT
|
|
><DT
|
|
>5.8. <A
|
|
HREF="chap5sec36.html"
|
|
>The inetd - <TT
|
|
CLASS="filename"
|
|
>/etc/inetd.conf</TT
|
|
> file</A
|
|
></DT
|
|
><DT
|
|
>5.9. <A
|
|
HREF="chap5sec37.html"
|
|
>TCP_WRAPPERS</A
|
|
></DT
|
|
><DT
|
|
>5.10. <A
|
|
HREF="chap5sec39.html"
|
|
>The <TT
|
|
CLASS="filename"
|
|
>/etc/host.conf</TT
|
|
> file</A
|
|
></DT
|
|
><DT
|
|
>5.11. <A
|
|
HREF="chap5sec40.html"
|
|
>The /etc/services file</A
|
|
></DT
|
|
><DT
|
|
>5.12. <A
|
|
HREF="chap5sec41.html"
|
|
>The <TT
|
|
CLASS="filename"
|
|
>/etc/securetty</TT
|
|
> file</A
|
|
></DT
|
|
><DT
|
|
>5.13. <A
|
|
HREF="chap5sec42.html"
|
|
>Special accounts</A
|
|
></DT
|
|
><DT
|
|
>5.14. <A
|
|
HREF="chap5sec43.html"
|
|
>Blocking; <B
|
|
CLASS="command"
|
|
>su</B
|
|
> to root, by one and sundry</A
|
|
></DT
|
|
><DT
|
|
>5.15. <A
|
|
HREF="chap5sec44.html"
|
|
>Put limits on resource</A
|
|
></DT
|
|
><DT
|
|
>5.16. <A
|
|
HREF="chap5sec45.html"
|
|
>Control mounting a file system</A
|
|
></DT
|
|
><DT
|
|
>5.17. <A
|
|
HREF="chap5sec46.html"
|
|
>Conceal binary <SPAN
|
|
CLASS="acronym"
|
|
>RPM</SPAN
|
|
></A
|
|
></DT
|
|
><DT
|
|
>5.18. <A
|
|
HREF="chap5sec47.html"
|
|
>Shell logging</A
|
|
></DT
|
|
><DT
|
|
>5.19. <A
|
|
HREF="chap5sec48.html"
|
|
>The LILO and <TT
|
|
CLASS="filename"
|
|
>lilo.conf</TT
|
|
> file</A
|
|
></DT
|
|
><DT
|
|
>5.20. <A
|
|
HREF="chap5sec49.html"
|
|
>Disable <B
|
|
CLASS="keycap"
|
|
>Ctrl-Alt-Delete</B
|
|
> keyboard shutdown command</A
|
|
></DT
|
|
><DT
|
|
>5.21. <A
|
|
HREF="chap5sec50.html"
|
|
>Physical hard copies of all-important logs</A
|
|
></DT
|
|
><DT
|
|
>5.22. <A
|
|
HREF="chap5sec51.html"
|
|
>Tighten scripts under <TT
|
|
CLASS="filename"
|
|
>/etc/rc.d/</TT
|
|
></A
|
|
></DT
|
|
><DT
|
|
>5.23. <A
|
|
HREF="chap5sec52.html"
|
|
>Bits from root-owned programs</A
|
|
></DT
|
|
><DT
|
|
>5.24. <A
|
|
HREF="chap5sec53.html"
|
|
>The kernel tunable parameters</A
|
|
></DT
|
|
><DT
|
|
>5.25. <A
|
|
HREF="chap5sec54.html"
|
|
>Refuse responding to broadcasts request</A
|
|
></DT
|
|
><DT
|
|
>5.26. <A
|
|
HREF="chap5sec55.html"
|
|
>Routing Protocols</A
|
|
></DT
|
|
><DT
|
|
>5.27. <A
|
|
HREF="chap5sec56.html"
|
|
>Enable TCP SYN Cookie Protection</A
|
|
></DT
|
|
><DT
|
|
>5.28. <A
|
|
HREF="chap5sec57.html"
|
|
>Disable ICMP Redirect Acceptance</A
|
|
></DT
|
|
><DT
|
|
>5.29. <A
|
|
HREF="chap5sec58.html"
|
|
>Enable always-defragging Protection</A
|
|
></DT
|
|
><DT
|
|
>5.30. <A
|
|
HREF="chap5sec59.html"
|
|
>Enable bad error message Protection</A
|
|
></DT
|
|
><DT
|
|
>5.31. <A
|
|
HREF="chap5sec60.html"
|
|
>Enable <SPAN
|
|
CLASS="acronym"
|
|
>IP</SPAN
|
|
> spoofing protection</A
|
|
></DT
|
|
><DT
|
|
>5.32. <A
|
|
HREF="chap5sec61.html"
|
|
>Log Spoofed, Source Routed and Redirect Packets</A
|
|
></DT
|
|
><DT
|
|
>5.33. <A
|
|
HREF="chap5sec62.html"
|
|
>Unusual or hidden files</A
|
|
></DT
|
|
><DT
|
|
>5.34. <A
|
|
HREF="chap5sec63.html"
|
|
>System is compromised !</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>6. <A
|
|
HREF="gen-optim.html"
|
|
>Linux General Optimization</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
>6.1. <A
|
|
HREF="chap6sec64.html"
|
|
>The /etc/profile file</A
|
|
></DT
|
|
><DT
|
|
>6.2. <A
|
|
HREF="chap6sec65.html"
|
|
>Benchmark Results</A
|
|
></DT
|
|
><DT
|
|
>6.3. <A
|
|
HREF="chap6sec66.html"
|
|
>Benchmark results-i586</A
|
|
></DT
|
|
><DT
|
|
>6.4. <A
|
|
HREF="chap6sec67.html"
|
|
>Benchmark results -i486</A
|
|
></DT
|
|
><DT
|
|
>6.5. <A
|
|
HREF="chap6sec68.html"
|
|
>The bdflush parameters</A
|
|
></DT
|
|
><DT
|
|
>6.6. <A
|
|
HREF="chap6sec69.html"
|
|
>The buffermem parameters</A
|
|
></DT
|
|
><DT
|
|
>6.7. <A
|
|
HREF="chap6sec70.html"
|
|
>The ip_local_port_range parameters</A
|
|
></DT
|
|
><DT
|
|
>6.8. <A
|
|
HREF="chap6sec71.html"
|
|
>The <TT
|
|
CLASS="filename"
|
|
>/etc/nsswitch.conf</TT
|
|
> file</A
|
|
></DT
|
|
><DT
|
|
>6.9. <A
|
|
HREF="chap6sec72.html"
|
|
>The file-max parameter</A
|
|
></DT
|
|
><DT
|
|
>6.10. <A
|
|
HREF="x4733.html"
|
|
>The ulimit parameter</A
|
|
></DT
|
|
><DT
|
|
>6.11. <A
|
|
HREF="chap6sec73.html"
|
|
>The atime and noatime attribute</A
|
|
></DT
|
|
><DT
|
|
>6.12. <A
|
|
HREF="chap6sec74.html"
|
|
>Tuning <SPAN
|
|
CLASS="acronym"
|
|
>IDE</SPAN
|
|
> Hard Disk Performance</A
|
|
></DT
|
|
><DT
|
|
>6.13. <A
|
|
HREF="chap6sec75.html"
|
|
>Better manage your <SPAN
|
|
CLASS="acronym"
|
|
>TCP/IP</SPAN
|
|
> resources</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>7. <A
|
|
HREF="secopt-kernel.html"
|
|
>Configuring and Building a Secure, Optimized Kernel</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
>7.1. <A
|
|
HREF="chap7sec76.html"
|
|
>Pre-Install</A
|
|
></DT
|
|
><DT
|
|
>7.2. <A
|
|
HREF="chap7sec77.html"
|
|
>Uninstallation and Optimization</A
|
|
></DT
|
|
><DT
|
|
>7.3. <A
|
|
HREF="chap7sec78.html"
|
|
>Securing the kernel</A
|
|
></DT
|
|
><DT
|
|
>7.4. <A
|
|
HREF="chap7sec79.html"
|
|
>Compilation</A
|
|
></DT
|
|
><DT
|
|
>7.5. <A
|
|
HREF="chap7sec80.html"
|
|
>Kernel configuration -Part "A"</A
|
|
></DT
|
|
><DT
|
|
>7.6. <A
|
|
HREF="chap7sec81.html"
|
|
>Kernel configuration -Part "B"</A
|
|
></DT
|
|
><DT
|
|
>7.7. <A
|
|
HREF="chap7sec82.html"
|
|
>Kernel configuration -Part "C"</A
|
|
></DT
|
|
><DT
|
|
>7.8. <A
|
|
HREF="chap7sec83.html"
|
|
>Kernel configuration -Part "D"</A
|
|
></DT
|
|
><DT
|
|
>7.9. <A
|
|
HREF="chap7sec84.html"
|
|
>Kernel configuration -Part "E"</A
|
|
></DT
|
|
><DT
|
|
>7.10. <A
|
|
HREF="chap7sec85.html"
|
|
>Installing the new kernel</A
|
|
></DT
|
|
><DT
|
|
>7.11. <A
|
|
HREF="chap7sec86.html"
|
|
>Delete programs, Edit files pertaining to modules</A
|
|
></DT
|
|
><DT
|
|
>7.12. <A
|
|
HREF="chap7sec87.html"
|
|
>Create a emergency Rescue and Boot floppy disk</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
></DL
|
|
></DIV
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="chap4sec28.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="gen-syssecured.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Update of the latest software</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>General System Security</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |