Product SiteDocumentation Site

Fedora 16

Security Guide

A Guide to Securing Fedora Linux

Edition 16.1


Johnray Fuller

Red Hat

John Ha

Red Hat

David O'Brien

Red Hat

Scott Radvan

Red Hat

Eric Christensen

Fedora Project Documentation Team

Adam Ligas

Fedora Project

Legal Notice

Copyright © 2010 Fedora Project Contributors.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at The original authors of this document, and Red Hat, designate the Fedora Project as the "Attribution Party" for purposes of CC-BY-SA. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
For guidelines on the permitted uses of the Fedora trademarks, refer to
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
All other trademarks are the property of their respective owners.
The Fedora Security Guide is designed to assist users of Fedora in learning the processes and practices of securing workstations and servers against local and remote intrusion, exploitation, and malicious activity. Focused on Fedora Linux but detailing concepts and techniques valid for all Linux systems, the Fedora Security Guide details the planning and the tools involved in creating a secured computing environment for the data center, workplace, and home. With proper administrative knowledge, vigilance, and tools, systems running Linux can be both fully functional and secured from most common intrusion and exploit methods.

1. Document Conventions
1.1. Typographic Conventions
1.2. Pull-quote Conventions
1.3. Notes and Warnings
2. We Need Feedback!
1. Security Overview
1.1. Introduction to Security
1.1.1. What is Computer Security?
1.1.2. SELinux
1.1.3. Security Controls
1.1.4. Conclusion
1.2. Attackers and Vulnerabilities
1.2.1. A Quick History of Hackers
1.2.2. Threats to Network Security
1.2.3. Threats to Server Security
1.2.4. Threats to Workstation and Home PC Security
1.3. Vulnerability Assessment
1.3.1. Thinking Like the Enemy
1.3.2. Defining Assessment and Testing
1.3.3. Evaluating the Tools
1.4. Common Exploits and Attacks
1.5. Security Updates
1.5.1. Updating Packages
1.5.2. Verifying Signed Packages
1.5.3. Installing Signed Packages
1.5.4. Applying the Changes
2. Securing Your Network
2.1. Workstation Security
2.1.1. Evaluating Workstation Security
2.1.2. BIOS and Boot Loader Security
2.1.3. Password Security
2.1.4. Administrative Controls
2.1.5. Available Network Services
2.1.6. Personal Firewalls
2.1.7. Security Enhanced Communication Tools
2.2. Server Security
2.2.1. Securing Services With TCP Wrappers and xinetd
2.2.2. Securing Portmap
2.2.3. Securing NIS
2.2.4. Securing NFS
2.2.5. Securing the Apache HTTP Server
2.2.6. Securing FTP
2.2.7. Securing Sendmail
2.2.8. Verifying Which Ports Are Listening
2.3. Single Sign-on (SSO)
2.3.1. Introduction
2.3.2. Getting Started with your new Smart Card
2.3.3. How Smart Card Enrollment Works
2.3.4. How Smart Card Login Works
2.3.5. Configuring Firefox to use Kerberos for SSO
2.4. Pluggable Authentication Modules (PAM)
2.4.1. Advantages of PAM
2.4.2. PAM Configuration Files
2.4.3. PAM Configuration File Format
2.4.4. Sample PAM Configuration Files
2.4.5. Creating PAM Modules
2.4.6. PAM and Administrative Credential Caching
2.4.7. PAM and Device Ownership
2.4.8. Additional Resources
2.5. TCP Wrappers and xinetd
2.5.1. TCP Wrappers
2.5.2. TCP Wrappers Configuration Files
2.5.3. xinetd
2.5.4. xinetd Configuration Files
2.5.5. Additional Resources
2.6. Kerberos
2.6.1. What is Kerberos?
2.6.2. Kerberos Terminology
2.6.3. How Kerberos Works
2.6.4. Kerberos and PAM
2.6.5. Configuring a Kerberos 5 Server
2.6.6. Configuring a Kerberos 5 Client
2.6.7. Domain-to-Realm Mapping
2.6.8. Setting Up Secondary KDCs
2.6.9. Setting Up Cross Realm Authentication
2.6.10. Additional Resources
2.7. Firewalls
2.7.1. Netfilter and IPTables
2.7.2. Basic Firewall Configuration
2.7.3. Using IPTables
2.7.4. Common IPTables Filtering
2.7.5. FORWARD and NAT Rules
2.7.6. Malicious Software and Spoofed IP Addresses
2.7.7. IPTables and Connection Tracking
2.7.8. IPv6
2.7.9. Additional Resources
2.8. IPTables
2.8.1. Packet Filtering
2.8.2. Command Options for IPTables
2.8.3. Saving IPTables Rules
2.8.4. IPTables Control Scripts
2.8.5. IPTables and IPv6
2.8.6. Additional Resources
3. Encryption
3.1. Data at Rest
3.1.1. Full Disk Encryption
3.1.2. File Based Encryption
3.2. Data in Motion
3.2.1. Virtual Private Networks (VPNs)
3.2.2. Secure Shell
3.2.3. LUKS Disk Encryption
3.2.4. 7-Zip Encrypted Archives
3.2.5. Using GNU Privacy Guard (GnuPG)
4. General Principles of Information Security
4.1. Tips, Guides, and Tools
5. Secure Installation
5.1. Disk Partitions
5.2. Utilize LUKS Partition Encryption
6. Software Maintenance
6.1. Install Minimal Software
6.2. Plan and Configure Security Updates
6.3. Adjusting Automatic Updates
6.4. Install Signed Packages from Well Known Repositories
7. Common Vulnerabilities and Exposures
7.1. YUM Plugin
7.2. Using yum-plugin-security
8. References
A. Encryption Standards
A.1. Synchronous Encryption
A.1.1. Advanced Encryption Standard - AES
A.1.2. Data Encryption Standard - DES
A.2. Public-key Encryption
A.2.1. Diffie-Hellman
A.2.2. RSA
A.2.3. DSA
A.2.4. SSL/TLS
A.2.5. Cramer-Shoup Cryptosystem
A.2.6. ElGamal Encryption
B. Revision History