Part III. Network-Related Configuration

Part III. Network-Related Configuration

After explaining how to configure the network, this part discusses topics related to networking such as how to allow remote logins, share files and directories over the network, and set up a Web server.

Table of Contents

14. Network Interfaces
14.1. Network Configuration Files
14.2. Interface Configuration Files
14.2.1. Ethernet Interfaces
14.2.2. IPsec Interfaces
14.2.3. Channel Bonding Interfaces
14.2.4. Alias and Clone Files
14.2.5. Dialup Interfaces
14.2.6. Other Interfaces
14.3. Interface Control Scripts
14.4. Configuring Static Routes
14.5. Network Function Files
14.6. Additional Resources
14.6.1. Installed Documentation
15. Network Configuration
15.1. Overview
15.2. Establishing an Ethernet Connection
15.3. Establishing an ISDN Connection
15.4. Establishing a Modem Connection
15.5. Establishing an xDSL Connection
15.6. Establishing a Token Ring Connection
15.7. Establishing a Wireless Connection
15.8. Managing DNS Settings
15.9. Managing Hosts
15.10. Working with Profiles
15.11. Device Aliases
15.12. Saving and Restoring the Network Configuration
16. Controlling Access to Services
16.1. Runlevels
16.2. TCP Wrappers
16.2.1. xinetd
16.3. Services Configuration Tool
16.4. ntsysv
16.5. chkconfig
16.6. Additional Resources
16.6.1. Installed Documentation
16.6.2. Useful Websites
17. Berkeley Internet Name Domain (BIND)
17.1. Introduction to DNS
17.1.1. Nameserver Zones
17.1.2. Nameserver Types
17.1.3. BIND as a Nameserver
17.2. /etc/named.conf
17.2.1. Common Statement Types
17.2.2. Other Statement Types
17.2.3. Comment Tags
17.3. Zone Files
17.3.1. Zone File Directives
17.3.2. Zone File Resource Records
17.3.3. Example Zone File
17.3.4. Reverse Name Resolution Zone Files
17.4. Using rndc
17.4.1. Configuring /etc/named.conf
17.4.2. Configuring /etc/rndc.conf
17.4.3. Command Line Options
17.5. Advanced Features of BIND
17.5.1. DNS Protocol Enhancements
17.5.2. Multiple Views
17.5.3. Security
17.5.4. IP version 6
17.6. Common Mistakes to Avoid
17.7. Additional Resources
17.7.1. Installed Documentation
17.7.2. Useful Websites
17.7.3. Related Books
18. OpenSSH
18.1. Features of SSH
18.1.1. Why Use SSH?
18.2. SSH Protocol Versions
18.3. Event Sequence of an SSH Connection
18.3.1. Transport Layer
18.3.2. Authentication
18.3.3. Channels
18.4. Configuring an OpenSSH Server
18.4.1. Requiring SSH for Remote Connections
18.5. OpenSSH Configuration Files
18.6. Configuring an OpenSSH Client
18.6.1. Using the ssh Command
18.6.2. Using the scp Command
18.6.3. Using the sftp Command
18.7. More Than a Secure Shell
18.7.1. X11 Forwarding
18.7.2. Port Forwarding
18.7.3. Generating Key Pairs
18.8. Additional Resources
18.8.1. Installed Documentation
18.8.2. Useful Websites
19. Network File System (NFS)
19.1. How It Works
19.1.1. Required Services
19.2. NFS Client Configuration
19.2.1. Mounting NFS File Systems using /etc/fstab
19.3. autofs
19.3.1. What's new in autofs version 5?
19.3.2. autofs Configuration
19.3.3. autofs Common Tasks
19.4. Common NFS Mount Options
19.5. Starting and Stopping NFS
19.6. NFS Server Configuration
19.6.1. Exporting or Sharing NFS File Systems
19.6.2. Command Line Configuration
19.6.3. Hostname Formats
19.7. The /etc/exports Configuration File
19.7.1. The exportfs Command
19.8. Securing NFS
19.8.1. Host Access
19.8.2. File Permissions
19.9. NFS and portmap
19.9.1. Troubleshooting NFS and portmap
19.10. Using NFS over TCP
19.11. Additional Resources
19.11.1. Installed Documentation
19.11.2. Useful Websites
19.11.3. Related Books
20. Samba
20.1. Introduction to Samba
20.1.1. Samba Features
20.2. Samba Daemons and Related Services
20.2.1. Samba Daemons
20.3. Connecting to a Samba Share
20.3.1. Command Line
20.3.2. Mounting the Share
20.4. Configuring a Samba Server
20.4.1. Graphical Configuration
20.4.2. Command Line Configuration
20.4.3. Encrypted Passwords
20.5. Starting and Stopping Samba
20.6. Samba Server Types and the smb.conf File
20.6.1. Stand-alone Server
20.6.2. Domain Member Server
20.6.3. Domain Controller
20.7. Samba Security Modes
20.7.1. User-Level Security
20.7.2. Share-Level Security
20.8. Samba Account Information Databases
20.9. Samba Network Browsing
20.9.1. Domain Browsing
20.9.2. WINS (Windows Internetworking Name Server)
20.10. Samba with CUPS Printing Support
20.10.1. Simple smb.conf Settings
20.11. Samba Distribution Programs
20.12. Additional Resources
20.12.1. Installed Documentation
20.12.2. Related Books
20.12.3. Useful Websites
21. Dynamic Host Configuration Protocol (DHCP)
21.1. Why Use DHCP?
21.2. Configuring a DHCP Server
21.2.1. Configuration File
21.2.2. Lease Database
21.2.3. Starting and Stopping the Server
21.2.4. DHCP Relay Agent
21.3. Configuring a DHCP Client
21.4. Additional Resources
21.4.1. Installed Documentation
22. Apache HTTP Server
22.1. Apache HTTP Server 2.2
22.1.1. Features of Apache HTTP Server 2.2
22.2. Migrating Apache HTTP Server Configuration Files
22.2.1. Migrating Apache HTTP Server 2.0 Configuration Files
22.2.2. Migrating Apache HTTP Server 1.3 Configuration Files to 2.0
22.3. Starting and Stopping httpd
22.4. Apache HTTP Server Configuration
22.4.1. Basic Settings
22.4.2. Default Settings
22.5. Configuration Directives in httpd.conf
22.5.1. General Configuration Tips
22.5.2. Configuration Directives for SSL
22.5.3. MPM Specific Server-Pool Directives
22.6. Adding Modules
22.7. Virtual Hosts
22.7.1. Setting Up Virtual Hosts
22.8. Apache HTTP Secure Server Configuration
22.8.1. An Overview of Security-Related Packages
22.8.2. An Overview of Certificates and Security
22.8.3. Using Pre-Existing Keys and Certificates
22.8.4. Types of Certificates
22.8.5. Generating a Key
22.8.6. How to configure the server to use the new key
22.9. Additional Resources
22.9.1. Useful Websites
23. FTP
23.1. The File Transport Protocol
23.1.1. Multiple Ports, Multiple Modes
23.2. FTP Servers
23.2.1. vsftpd
23.3. Files Installed with vsftpd
23.4. Starting and Stopping vsftpd
23.4.1. Starting Multiple Copies of vsftpd
23.5. vsftpd Configuration Options
23.5.1. Daemon Options
23.5.2. Log In Options and Access Controls
23.5.3. Anonymous User Options
23.5.4. Local User Options
23.5.5. Directory Options
23.5.6. File Transfer Options
23.5.7. Logging Options
23.5.8. Network Options
23.6. Additional Resources
23.6.1. Installed Documentation
23.6.2. Useful Websites
24. Email
24.1. Email Protocols
24.1.1. Mail Transport Protocols
24.1.2. Mail Access Protocols
24.2. Email Program Classifications
24.2.1. Mail Transport Agent
24.2.2. Mail Delivery Agent
24.2.3. Mail User Agent
24.3. Mail Transport Agents
24.3.1. Sendmail
24.3.2. Postfix
24.3.3. Fetchmail
24.4. Mail Transport Agent (MTA) Configuration
24.5. Mail Delivery Agents
24.5.1. Procmail Configuration
24.5.2. Procmail Recipes
24.6. Mail User Agents
24.6.1. Securing Communication
24.7. Additional Resources
24.7.1. Installed Documentation
24.7.2. Useful Websites
24.7.3. Related Books
25. Lightweight Directory Access Protocol (LDAP)
25.1. Why Use LDAP?
25.1.1. OpenLDAP Features
25.2. LDAP Terminology
25.3. OpenLDAP Daemons and Utilities
25.3.1. NSS, PAM, and LDAP
25.3.2. PHP4, LDAP, and the Apache HTTP Server
25.3.3. LDAP Client Applications
25.4. OpenLDAP Configuration Files
25.5. The /etc/openldap/schema/ Directory
25.6. OpenLDAP Setup Overview
25.6.1. Editing /etc/openldap/slapd.conf
25.7. Configuring a System to Authenticate Using OpenLDAP
25.7.1. PAM and LDAP
25.7.2. Migrating Old Authentication Information to LDAP Format
25.8. Migrating Directories from Earlier Releases
25.9. Additional Resources
25.9.1. Installed Documentation
25.9.2. Useful Websites
25.9.3. Related Books
26. Authentication Configuration
26.1. User Information
26.2. Authentication
26.3. Options
26.4. Command Line Version

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.