Network Administration with FreeBSD 7

Network Administration with FreeBSD 7
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 40%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Set up and manage networking on FreeBSD
  • Virtualization with FreeBSD Jails, IPFW and PF
  • Configure interfaces, protocols, and routing


Book Details

Language : English
Paperback : 280 pages [ 235mm x 191mm ]
Release Date : April 2008
ISBN : 1847192645
ISBN 13 : 9781847192646
Author(s) : Babak Farrokhi
Topics and Technologies : All Books, Networking and Servers, Open Source

Table of Contents

Chapter 1: System Configuration—Disks
Chapter 2: System Configuration—Keeping it Updated
Chapter 3: System Configuration—Software Package Management
Chapter 4: System Configuration—System Management
Chapter 5: System Configuration—Jails
Chapter 6: System Configuration—Tuning Performance
Chapter 7: Network Configuration—Basics
Chapter 8: Network Configuration—Tunneling
Chapter 9: Network Configuration—PPP
Chapter 10: Network Configuration—Routing and Bridging
Chapter 11: Network Configuration—IPv6
Chapter 12: Network Configuration—Firewalls
Chapter 13: Network Services—Internet Servers
Chapter 14: Network Services—Local Network Services
  • Chapter 1: System Configuration—Disks
    • Partition Layout and Sizes
    • Swap
      • Adding More Swap Space
      • Swap Encryption
    • Softupdates
    • Snapshots
    • Quotas
      • Assigning Quotas
    • File System Backup
      • Dump and Restore
      • The tar, cpio, and pax Utilities
      • Snapshots
    • RAID-GEOM Framework
      • RAID0—Striping
      • RAID1—Mirroring
      • Disk Concatenation
    • Summary
  • Chapter 2: System Configuration—Keeping it Updated
    • CVSup—Synchronizing the Source Code
      • Tracking –STABLE
      • Tracking –CURRENT
    • Ports Collection
      • Tracking Ports
      • Portsnap
    • Security Advisories
      • VuXML—Vulnerability Database
      • CVS Branch Tag
    • Customizing and Rebuilding Kernel
    • Rebuilding World
    • Binary Update
    • Recovering from a Dead Kernel
    • Summary
  • Chapter 4: System Configuration—System Management
    • Process Management and Control
      • Processes and Daemons
        • Getting Information about Running Processes—ps, top, and pgrep
        • Sending Signals to Running Processes—kill, killall, and pkill
        • Prioritizing Running Processes—nice and renice
      • Resource Management and Control
        • System Resource Monitoring Tools—vmstat, iostat, pstat, and systat
      • Process Accounting
    • Summary
  • Chapter 5: System Configuration—Jails
    • Concept
    • Introduction
    • Setting Up a Jail
    • Configuring the Host System
    • Starting the Jail
    • Automatic Startup
    • Shutting Down Jails
    • Managing Jails
    • Jail Security
    • Jail Limitations
    • Summary
  • Chapter 6: System Configuration—Tuning Performance
    • Tweaking Kernel Variables using SYSCTL
    • Kernel
      • SMP
    • Disk
      • File limits
      • I/O Performance
      • RAID
    • Network
      • TCP Delayed ACK
      • RFC 1323 Extensions
      • TCP Listen Queue Size
      • TCP Buffer Space
      • Network Interface Polling
    • The /etc/make.conf file
      • CPUTYPE
    • The /boot/loader.conf file
    • Summary
  • Chapter 7: Network Configuration—Basics
    • Ifconfig Utility
      • Configuring IP Address
      • Configuring Layer2 Address
      • Configuring IPX
      • Configuring AppleTalk
      • Configuring Secondary (alias) IP Addresses
      • Configuring Media Options
      • Configuring VLANs
      • Advanced ifconfig Options
        • Hardware Offloading
        • Promiscuous Mode
        • MTU
        • ARP
        • Static ARP
        • Monitor Mode
      • Configuring Fast EtherChannel
    • Default Routing
    • Name Resolution
    • Network Testing Tools
      • Ping
      • Traceroute
      • Sockstat
      • netstat
      • ARP
      • Tcpdump
    • Summary
  • Chapter 11: Network Configuration—IPv6
    • IPv6 Facts
      • Fact One—Addressing
      • Fact Two—Address Types
      • Fact Three—ARP
      • Fact Four—Interface Configuration
    • Using IPv6
      • Configuring Interfaces
    • Routing IPv6
    • RIP6
    • Multicast Routing
    • Tunneling
      • GIF Tunneling
    • Summary
  • Chapter 12: Network Configuration—Firewalls
    • Packet Filtering with IPFW
      • Basic Configuration
      • Ruleset Templates
      • Customized Rulesets
      • Logging
      • Network Address Translation (NAT)
      • Traffic Shaping
    • Packet Filtering with PF
      • PF Configuration Syntax
      • Controlling PF
    • Network Address Translation using PF and IPFW
    • Summary
  • Chapter 13: Network Services—Internet Servers
    • inetd Daemon
      • tcpd
    • SSH
      • Running a Command Remotely
      • SSH Keys
        • SSH Authentication Agent
        • SSH Tunneling or Port Forwarding
    • NTP
      • Syncing
      • NTP Server
    • DNS
      • BIND software
      • Operating Modes
        • Forwarding/Caching DNS Server
        • Authoritative
        • Monitoring
        • Optimizations
    • FTP
      • Anonymous FTP Server
    • Mail
      • Sendmail
      • Postfix
    • Web
      • Apache
        • Virtual Hosts
      • Alternative HTTP Servers
    • Proxy
    • Summary
  • Chapter 14: Network Services—Local Network Services
    • Dynamic Host Configuration Protocol (DHCP)
      • dhclient
      • ISC DHCPD
        • DHCPD Configuration
    • Trivial File Transfer Protocol (TFTP)
    • Network File System (NFS)
      • Server
      • Client
      • NFS Locking
    • Server Message Block (SMB) or CIFS
      • SMB Client
      • SMB Server
        • Authentication
        • Samba Web Administration Tool (SWAT)
    • Simple Network Management Protocol (SNMP)
      • bsnmpd
      • NET-SNMP
        • Client Tools
    • Printing
      • lpd—Print Spooler Daemon
      • Common UNIX Printing System (CUPS)
    • Network Information System (NIS)
      • NIS Server
        • Initializing NIS Server
    • Summary
    • Index

Babak Farrokhi

Babak Farrokhi is an experienced UNIX system administrator and Network Engineer who worked 12 years in the IT industry in carrier-level network service providers. He discovered FreeBSD around 1997 and since then he has been using it on a daily basis. He is also an experienced Solaris administrator and has extensive experience in TCP/IP networks.

In his spare time he contributes to the open source community and develops his skills to keep himself in the cutting edge.

You may contact Babak at and his personal website at

Contact Babak Farrokhi

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Network Administration with FreeBSD 7 +    Moodle 2.0 Course Conversion Beginner's Guide =
50% Off
the second eBook
Price for both: £21.95

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Monitor system performance and security
  • Secure your network with Jails
  • Tweak parameters to overcome bottlenecks
  • Configure interfaces with ifconfig
  • Test and debug connectivity
  • Configure PPP networking
  • Control IP and IPv6 routing with routed and route6d
  • Run OSPF and BGP with OpenOSPFD and OpenBGPD
  • Configure an IPFW firewall and PF packet filtering
  • Set up internet services on your FreeBSD server

In Detail

This book is a guide to FreeBSD for network administrators; therefore it does not cover basic installation and configuration of FreeBSD, but is about using FreeBSD to build, secure, and maintain networks.

After introducing the basic tools for monitoring the performance and security of the system the book moves on to cover using jails—FreeBSD virtual environments—to virtually run multiple instances of FreeBSD on the same hardware. Then it shows how to overcome the different bottlenecks that you may meet depending on the services you are running by tweaking different parameters to maintain a high performance from your FreeBSD server. Next it covers using the ifconfig utility to configure interfaces with different layer protocols and about connectivity testing and debugging tools. After covering using User PPP or Kernel PPP for Point-to-Point Protocol network configuration it explains basic IP forwarding in FreeBSD and the use of the built-in routing daemons, routed and route6d, which support RIPv1, RIPv2, RIPng, and RDISC. Next it covers the OpenOSPFD and OpenBGPD daemons that you can install to run OSPF and BGP on your host. Then it covers setup and configuration of IPFW and PF, and finally looks at some important internet services and how to set them up on your FreeBSD server.

The book is a guide to Network admins who are interested in extracting full potential of FreeBSD. Security—one of everlasting concerns in the IT industry—can be tackled very effectively in FreeBSD. How do you do it? Read the book and find out. You can then move on to learn intricacies of FreeBSD. Just tweak a few parameters to make the network suit your environment.


This book first covers the basics on each topic clearly and then gives examples, so that you understand the topic clearly and can work on it independently after you have worked through the book.

Who this book is for

This book is for Network Administrators who would like to work with FreeBSD and are looking for skills beyond installation and configuration of FreeBSD.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software