Part V. Servers

This part discusses various topics related to servers such as how to set up a web server or share files and directories over a network.

Table of Contents

13. Web Servers
13.1. The Apache HTTP Server
13.1.1. Notable Changes
13.1.2. Updating the Configuration
13.1.3. Running the httpd Service
13.1.4. Editing the Configuration Files
13.1.5. Working with Modules
13.1.6. Setting Up Virtual Hosts
13.1.7. Setting Up an SSL Server
13.1.8. Enabling the mod_ssl Module
13.1.9. Enabling the mod_nss Module
13.1.10. Using an Existing Key and Certificate
13.1.11. Generating a New Key and Certificate
13.1.12. Configure the Firewall for HTTP and HTTPS Using the Command Line
13.1.13. Additional Resources
14. Mail Servers
14.1. Email Protocols
14.1.1. Mail Transport Protocols
14.1.2. Mail Access Protocols
14.2. Email Program Classifications
14.2.1. Mail Transport Agent
14.2.2. Mail Delivery Agent
14.2.3. Mail User Agent
14.3. Mail Transport Agents
14.3.1. Postfix
14.3.2. Sendmail
14.3.3. Fetchmail
14.3.4. Mail Transport Agent (MTA) Configuration
14.4. Mail Delivery Agents
14.4.1. Procmail Configuration
14.4.2. Procmail Recipes
14.5. Mail User Agents
14.5.1. Securing Communication
14.6. Additional Resources
14.6.1. Installed Documentation
14.6.2. Online Documentation
14.6.3. Related Books
15. File and Print Servers
15.1. Samba
15.1.1. Introduction to Samba
15.1.2. Samba Daemons and Related Services
15.1.3. Connecting to an SMB Share
15.1.4. Mounting the Share
15.1.5. Configuring a Samba Server
15.1.6. Starting and Stopping Samba
15.1.7. Samba Security Modes
15.1.8. Samba Network Browsing
15.1.9. Samba Distribution Programs
15.1.10. Additional Resources
15.2. FTP
15.2.1. The File Transfer Protocol
15.2.2. The vsftpd Server
15.2.3. Additional Resources
15.3. Print Settings
15.3.1. Starting the Print Settings Configuration Tool
15.3.2. Starting Printer Setup
15.3.3. Adding a Local Printer
15.3.4. Adding an AppSocket/HP JetDirect printer
15.3.5. Adding an IPP Printer
15.3.6. Adding an LPD/LPR Host or Printer
15.3.7. Adding a Samba (SMB) printer
15.3.8. Selecting the Printer Model and Finishing
15.3.9. Printing a Test Page
15.3.10. Modifying Existing Printers
15.3.11. Additional Resources
16. Configuring NTP Using the chrony Suite
16.1. Introduction to the chrony Suite
16.1.1. Differences Between ntpd and chronyd
16.1.2. Choosing Between NTP Daemons
16.2. Understanding chrony and Its Configuration
16.2.1. Understanding chronyd
16.2.2. Understanding chronyc
16.2.3. Understanding the chrony Configuration Commands
16.2.4. Security with chronyc
16.3. Using chrony
16.3.1. Installing chrony
16.3.2. Checking the Status of chronyd
16.3.3. Starting chronyd
16.3.4. Stopping chronyd
16.3.5. Checking if chrony is Synchronized
16.3.6. Manually Adjusting the System Clock
16.4. Setting Up chrony for Different Environments
16.4.1. Setting Up chrony for a System in an Isolated Network
16.5. Using chronyc
16.5.1. Using chronyc to Control chronyd
16.6. Chrony with HW timestamping
16.6.1. Understanding Hardware Timestamping
16.6.2. Verifying Support for Hardware Timestamping
16.6.3. Enabling Hardware Timestamping
16.6.4. Configuring Client Polling Interval
16.6.5. Enabling Interleaved Mode
16.6.6. Configuring Server for Large Number of Clients
16.6.7. Verifying Hardware Timestamping
16.6.8. Configuring PTP-NTP bridge
16.7. Additional Resources
16.7.1. Installed Documentation
16.7.2. Online Documentation
17. Configuring NTP Using ntpd
17.1. Introduction to NTP
17.2. NTP Strata
17.3. Understanding NTP
17.4. Understanding the Drift File
17.5. UTC, Timezones, and DST
17.6. Authentication Options for NTP
17.7. Managing the Time on Virtual Machines
17.8. Understanding Leap Seconds
17.9. Understanding the ntpd Configuration File
17.10. Understanding the ntpd Sysconfig File
17.11. Disabling chrony
17.12. Checking if the NTP Daemon is Installed
17.13. Installing the NTP Daemon (ntpd)
17.14. Checking the Status of NTP
17.15. Configure the Firewall to Allow Incoming NTP Packets
17.15.1. Change the Firewall Settings
17.15.2. Open Ports in the Firewall for NTP Packets
17.16. Configure ntpdate Servers
17.17. Configure NTP
17.17.1. Configure Access Control to an NTP Service
17.17.2. Configure Rate Limiting Access to an NTP Service
17.17.3. Adding a Peer Address
17.17.4. Adding a Server Address
17.17.5. Adding a Broadcast or Multicast Server Address
17.17.6. Adding a Manycast Client Address
17.17.7. Adding a Broadcast Client Address
17.17.8. Adding a Manycast Server Address
17.17.9. Adding a Multicast Client Address
17.17.10. Configuring the Burst Option
17.17.11. Configuring the iburst Option
17.17.12. Configuring Symmetric Authentication Using a Key
17.17.13. Configuring the Poll Interval
17.17.14. Configuring Server Preference
17.17.15. Configuring the Time-to-Live for NTP Packets
17.17.16. Configuring the NTP Version to Use
17.18. Configuring the Hardware Clock Update
17.19. Configuring Clock Sources
17.20. Additional Resources
17.20.1. Installed Documentation
17.20.2. Useful Websites
18. Configuring PTP Using ptp4l
18.1. Introduction to PTP
18.1.1. Understanding PTP
18.1.2. Advantages of PTP
18.2. Using PTP
18.2.1. Checking for Driver and Hardware Support
18.2.2. Installing PTP
18.2.3. Starting ptp4l
18.3. Using PTP with Multiple Interfaces
18.4. Specifying a Configuration File
18.5. Using the PTP Management Client
18.6. Synchronizing the Clocks
18.7. Verifying Time Synchronization
18.8. Serving PTP Time with NTP
18.9. Serving NTP Time with PTP
18.10. Synchronize to PTP or NTP Time Using timemaster
18.10.1. Starting timemaster as a Service
18.10.2. Understanding the timemaster Configuration File
18.10.3. Configuring timemaster Options
18.11. Improving Accuracy
18.12. Additional Resources
18.12.1. Installed Documentation
18.12.2. Useful Websites