Home > Store

Advanced Linux Networking

Register your product to gain access to bonus material or receive a coupon.

Advanced Linux Networking

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2002
  • Edition: 1st
  • Book
  • ISBN-10: 0-201-77423-2
  • ISBN-13: 978-0-201-77423-8

Increasingly, Linux is used to drive networks in mission-critical environments -- and system/network administrators working in those environments must have far deeper expertise than ever before. Advanced Linux Networking picks up where conventional Linux books leave off, helping experienced Linux system and network administrators accomplish more -- and solve more problems -- than they can with any other book. Its breadth and depth make it an exceptional single-volume reference for every Linux professional. The book is structured into four sections, each essential to the working Linux administrator: Low-Level Configuration, Local Network Servers, Internet Servers, and Network Security and Router Functions. In-depth coverage includes: kernel and TCP/IP configuration, alternative network stacks, server startup scripting, DHCP configuration, Kerberos authentication, printer sharing, mail protocols, remote login servers, GUI access, remote system administration, network backups, iptables firewalls, and VPNs. The book's extensive section on Internet services shows how to handle virtual domains and secure sites; analyze Apache log files; and run FTP servers; and contains detailed coverage of SMTP-based email systems. Among the topics covered in exceptional depth: configuring Kerberos; running time servers, font servers, and chroot jails; and using Samba's scripting capabilities to burn CDs and create PDFs. For every experienced Linux system or network administrator, and for Linux power users with network-related responsibilities.

Sample Content

Online Sample Chapter

Maintaining Consistent Time: Time Servers

Downloadable Sample Chapter

Click below for Sample Chapter(s) related to this title:
Sample Chapter 10

Table of Contents

(NOTE: Each chapter concludes with a Summary.)

Preface.

I. LOW-LEVEL CONFIGURATION.

1. Kernel Network Configuration.

Starting Kernel Configuration.

Network Protocol Support.

Network Hardware Options.

Compiling and Installing a Kernel.

2. TCP/IP Network Configuration.

Loading Network Drivers.

Using a DHCP Client.

Configuring a Static IP Address.

Using a PPP Link.

3. Alternative Network Stacks.

Understanding Network Stacks.

AppleTalk.

IPX/SPX.

NetBEUI.

4. Starting Servers.

Using SysV Startup Scripts.

Using inetd.

Using xinetd.

Using Local Startup Scripts.

Using GUI Tools.

When to Use Each Startup Method.

II. LOCAL NETWORK SERVERS.

5. Configuring Other Computers via DHCP.

When to Run a DHCP Server.

Kernel and Network Interface Issues.

DHCP Configuration Files.

Assigning Dynamic Addresses.

Assigning Fixed Addresses.

Integrating with Other Protocols.

6. Authenticating Users via Kerberos.

When to Run a Kerberos Server.

Understanding Kerberos Operation.

Setting Up a Kerberos Server.

Configuring a Kerberos Application Server.

Configuring a Kerberos Client.

7. File and Printer Sharing via Samba.

When to Run a Samba Server.

General Samba Configuration.

Serving Files with Samba.

Serving Printers with Samba.

Samba Scripting Features.

8. File Sharing via NFS.

When to Run an NFS Server.

NFS Servers Available for Linux.

Understanding the Portmapper.

Serving Files with NFS.

Username Mapping Options.

9. Printer Sharing via LPD.

When to Run an LPD Server.

LPD Server Options for Linux.

Configuring a BSD LPD Server.

Configuring an LPRng Server.

Configuring a CUPS Server.

10. Maintaining Consistent Time: Time Servers.

When to Run a Time Server.

Setting Up an NTP Server.

Using Samba to Serve Time.

11. Pull Mail Protocols: POP and IMAP.

When to Run a Pull Mail Server.

Understanding POP and IMAP.

Configuring a POP Server.

Configuring an IMAP Server.

Using Fetchmail.

12. Running a News Server.

When to Run a News Server.

Understanding NNTP.

Running INN.

Using Leafnode.

13. Maintaining Remote Login Servers.

When to Run a Remote Login Server.

Configuring rlogind.

Configuring Telnet.

Configuring SSH.

14. Handling GUI Access with X and VNC Servers.

When to Run a GUI Access Server.

Configuring Basic X Access.

Using an XDMCP Server.

Running a VNC Server.

A Comparison of Access Techniques.

15. Providing Consistent Fonts with Font Servers.

When to Run a Font Server.

Understanding Font File Formats.

Running a Traditional Font Server.

Running an Expanded Font Server.

16. Maintaining a System Remotely.

When to Run Remote System Maintenance Tools.

The Challenge of a Cross-Distribution Configuration Tool.

Running Linuxconf Remotely.

Running Webmin.

Running SWAT.

Remote Administration Security Concerns.

17. Performing Network Backups.

When to Run Network Backup Servers.

Types of Network Backup Solutions.

Using tar.

Using SMB/CIFS.

Using AMANDA.

Restoring Data.

III. INTERNET SERVERS.

18. Administering a Domain via DNS.

When to Run a DNS Server.

Obtaining a Domain Name.

DNS Server Options for Linux.

Core DNS Configuration.

Domain Administration Options.

Running a Caching-Only Name Server.

Communicating with a DHCP Server.

Starting and Testing the Server.

19. Push Mail Protocol: SMTP.

When to Run an SMTP Server.

SMTP Server Options for Linux.

Mail Domain Administration.

Understanding SMTP Transport.

SMTP Server Configuration Options.

Basic Sendmail Configuration.

Basic Exim Configuration.

Basic Postfix Configuration.

Using a Procmail Filter.

20. Running Web Servers.

When to Run a Web Server.

Web Server Options for Linux.

Basic Apache Configuration.

Configuring kHTTPd.

Handling Forms and Scripts.

Handling Secure Sites.

Handling Virtual Domains.

Producing Something Worth Serving.

Analyzing Server Log Files.

21. Running FTP Servers.

When to Run an FTP Server.

FTP Server Options for Linux.

Basic FTP Server Configuration.

Setting Up an Anonymous FTP Server.

IV. NETWORK SECURITY AND ROUTER FUNCTIONS.

22. General System Security.

Shutting Down Unnecessary Servers.

Controlling Accounts and Passwords.

Keeping the System Up to Date.

Monitoring for Intrusion Attempts.

Keeping Abreast of Security Developments.

23. Configuring a chroot Jail.

What Is a chroot Jail?

Necessary chroot Environment Files.

Configuring a Server to Operate in a chroot Jail.

Maintaining the chroot Environment.

24. Advanced Router Options.

When to Use Advanced Router Configurations.

Advanced Kernel Options.

Using iproute2.

Using Routing Protocols.

25. Configuring iptables.

What Is iptables?

Kernel Configuration for iptables.

Checking Your iptables Configuration.

Configuring a Firewall with iptables.

Configuring NAT with iptables.

Forwarding Ports with iptables.

Logging iptables Activity.

26. Using a VPN.

When to Use a VPN.

VPN Options for Linux.

Configuring PPTP in Linux.

Configuring a Linux FreeS/WAN Server.

Potential Security Risks with a VPN.

Index. 0201774232T05222002

Preface

Computer networks have changed our lives. They grew slowly, and mostly unnoticed, in the 1970s and 1980s. In the 1990s, though, something happened. Perhaps it was the availability of the World Wide Web (WWW, or Web) and graphical Web browsers, which made computer networks accessible to Grandma Dorothy and Uncle Stan. Maybe it was that the availability of network connections had reached a critical threshold. Perhaps the quality and quantity of network-enabled software passed a critical threshold. Possibly it was two or all three of these things, or something else entirely. In any event, networks became noticeable. Most importantly, the Internet became noticeable.

The Internet comprises millions of computers, many of which run servers—software packages designed to listen for and respond to data transfer requests from other computers. Because the protocols upon which the Internet was built were designed to work in a cross-platform manner, both Internet clients and the servers they use run on many different platforms. One of the most popular of these is Linux. Coupled with inexpensive x86 hardware, Linux makes a very cost-effective server platform for small and mid-sized sites. Indeed, with increasing computer performance and Linux versions working their way up the computer performance hierarchy, Linux is beginning to make inroads into the large server market. Thus, with Linux on everything from tiny network appliances to large servers, knowing how to set up and maintain a Linux server system is an important skill for networking professionals today.

Which servers, though? There are hundreds, if not thousands, of individual server programs. Most general-purpose Linux networking books focus upon a handful of popular servers—Web (HTTP) servers like Apache, login servers like Telnet and SSH, file servers like NFS and Samba, and a few others. These books present enough information to get a user up and running, but little more. They also give short shrift to servers that are less visible but that are often extremely important, like DHCP servers, time servers, and Kerberos. This book takes a different approach to Linux networking: I assume that you know at least a minimal amount about Linux and networking in general, and you want to take you skills to a higher level. Although this book does cover the “usual suspects,” it spends less time introducing the basics and more time describing advanced or unusual configurations. This book also covers some of the servers and topics that are neglected in most entry-level Linux networking books. The result is the closest thing possible to a book that’s both a general Linux networking book and an advanced Linux networking book.

To be sure, you won’t learn everything there is to know about complex packages like Apache or Samba in this book. The relevant chapters provide quick introductions to these tools, a summary of some popular techniques you won’t find covered in other introductory Linux networking books, and pointers to additional resources. This book’s approach is to be a general-purpose Linux networking book for people who are not novices.

Who Should Buy This Book

This book is designed to be an advanced tutorial and reference for those with some Linux networking experience, or at least some Linux and some networking experience. The first few chapters cover low-level configuration, including such factors as getting the network up and running to begin with; but I assume you’re already familiar with Linux, or at least UNIX, and with basic networking terminology. If you’re not familiar with these things, an introductory Linux system administration book, such as Marcel Gagnè’s Linux System Administration: A User’s Guide (Addison-Wesley, 2002) or Vicki Stanfield’s and my Linux System Administration (Sybex, 2001) should help fill in the gaps.

If you want to learn a bit more about big servers like Apache or Samba but don’t want to buy dedicated books for them, or if you want to learn about the small but potentially important servers like xntpd or xfs, then this is the book for you. This book also covers miscellaneous networking topics, like how to start and stop servers, backing up a network, running a server in a chroot jail, and using iptables. Knowing these topics will help fill out your networking knowledge base and make you better able to adapt to new requirements and generally improve the networks you administer.

In writing this book, I imagined the audience to be administrators of small- or mid-sized networks. Your network might be dominated by Linux, UNIX, Windows, MacOS, or something even more exotic, but of course you’ve got at least one Linux system. Most chapters describe the basic principles upon which a tool is built and then describe how to use the tool. You should therefore be able to learn a lot about the tools by reading this book, but you can also use this book as a quick reference. I aim for this to be the book you would choose if you could have just one Linux networking book.

Linux Distributions

One of the challenges of administering Linux is that Linux isn’t a single OS. Instead, it’s a collection of OSs, all built around the same kernel. Each of these variant OSs is known as a distribution. A distribution consists of a Linux kernel; a distribution-specific installation program; a wide assortment of support tools, user programs, and so on; and a set of default startup and configuration scripts. Different distributions frequently use different versions of the Linux kernel and of support programs. Indeed, they sometimes ship with different programs entirely to fill particular roles, such as sendmail, Exim, or Postfix for a mail server. For these reasons, Linux distributions can vary substantially in overall feel, and in many administrative details.

Many books on Linux fail to address the variability among Linux distributions. They intentionally focus on just one distribution, or provide coverage of others in a cursory manner. One of the goals of this book, though, is to explicitly cover several of the most popular Linux distributions. Specifically, I cover Caldera OpenLinux 3.1, Debian GNU/Linux 2.2, Mandrake 8.1, Red Hat 7.2, Slackware 7.0, SuSE 7.3, and TurboLinux 7.0. To be sure, I can’t cover every detail for each of these OSs, but I point out where they differ in important ways, such as where each places network startup scripts and what FTP servers each includes. Some chapters—notably those on server startup tools, LPD print servers, SMTP mail servers, and FTP servers—cover multiple servers in order to be applicable to the default configurations for each of these seven major Linux distributions.

How This Book is Organized

This book is broken down into four parts of from four to thirteen chapters. The structure represents the assumption that your network includes some servers that are used primarily by local users and others that are exposed to the Internet at large, but of course some servers can do double duty, so the placement of some servers may not reflect the configuration on your network. The book’s four parts are as follows:

  • Part I: Low-Level Configuration—This part is the shortest, at only four chapters. It covers kernel network configuration options, basic TCP/IP network configuration, network stacks, and starting servers.
  • Part II: Local Network Servers—This part covers servers and procedures that are most likely to be used by other computers on your local network. This includes DHCP servers, Kerberos, Samba, NFS servers, printing with LPD, time servers, POP and IMAP mail servers, news servers, remote login servers, X and VNC servers, font servers, remote administration servers, and network backups.
  • Part III: Internet Servers—These chapters cover servers that are often accessible to the world at large. Topics include DNS servers, SMTP mail servers, Web servers, and FTP servers.
  • Part IV: Network Security and Router Functions—This part diverges from the emphasis on servers as distinct topics for chapters and focuses upon network security. Topics include a general look at network security, using a chroot jail, configuring advanced router functions, using iptables for firewall and NAT purposes, and setting up a VPN.
  • Contacting Me

    If you have questions or comments about this book, I can be reached at rodsmith@rodsbooks.com. I also maintain a Web page about the book at http://www.rodsbooks.com/adv-net/.

    Acknowledgements

    I’d like to thank my editor, Karen Gettman, for her careful work shepherding this book through the production process. She was helped in this task by Emily Frey, the project coordinator, who received my chapters and generally saw that things went smoothly. No technical book can reach print without the assistance of technical experts, who help ensure that what the author writes resembles reality as closely as possible. This book’s reviewers were Karel Baloun, Amy Fong, Howard Lee Harkness, Harold Hauck, Eric H. Herrin II, David King, Rob Kolstad, Matthew Miller, Ian Redfern, and Alexy Zinin. If any errors remain after the text ran their gauntlet, those errors are, of course, my own. Even aside from his help in technical reviewing, I’d like to thank David King for many helpful discussions about Linux networking. Finally, I’d like to thank my agent, Neil Salkind at Studio B, who helped get this book off the ground, with help from Michael Slaughter at Addison-Wesley.



    0201774232P05092002

    Index

    Click below to download the Index file related to this title:
    Index

    Updates

    Submit Errata

    More Information

    InformIT Promotional Mailings & Special Offers

    I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

    Overview


    Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

    This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

    Collection and Use of Information


    To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

    Questions and Inquiries

    For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

    Online Store

    For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

    Surveys

    Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

    Contests and Drawings

    Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

    Newsletters

    If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

    Service Announcements

    On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

    Customer Service

    We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

    Other Collection and Use of Information


    Application and System Logs

    Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

    Web Analytics

    Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

    Cookies and Related Technologies

    This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

    Do Not Track

    This site currently does not respond to Do Not Track signals.

    Security


    Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

    Children


    This site is not directed to children under the age of 13.

    Marketing


    Pearson may send or direct marketing communications to users, provided that

    • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
    • Such marketing is consistent with applicable law and Pearson's legal obligations.
    • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
    • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

    Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

    Correcting/Updating Personal Information


    If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

    Choice/Opt-out


    Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

    Sale of Personal Information


    Pearson does not rent or sell personal information in exchange for any payment of money.

    While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

    Supplemental Privacy Statement for California Residents


    California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

    Sharing and Disclosure


    Pearson may disclose personal information, as follows:

    • As required by law.
    • With the consent of the individual (or their parent, if the individual is a minor)
    • In response to a subpoena, court order or legal process, to the extent permitted or required by law
    • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
    • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
    • To investigate or address actual or suspected fraud or other illegal activities
    • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
    • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
    • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

    Links


    This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

    Requests and Contact


    Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

    Changes to this Privacy Notice


    We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

    Last Update: November 17, 2020