Linux Networking Cookbook

Over 40 recipes to help you set up and configure Linux networks
Preview in Mapt
Code Files

Linux Networking Cookbook

Gregory Boyce

1 customer reviews
Over 40 recipes to help you set up and configure Linux networks
Mapt Subscription
FREE
$29.99/m after trial
eBook
$19.60
RRP $27.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$19.60
$34.99
$29.99p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Linux Networking Cookbook Book Cover
Linux Networking Cookbook
$ 27.99
$ 19.60
Kali Linux Network Scanning Cookbook - Second Edition Book Cover
Kali Linux Network Scanning Cookbook - Second Edition
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $32.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781785287916
Paperback152 pages

Book Description

Linux can be configured as a networked workstation, a DNS server, a mail server, a firewall, a gateway router, and many other things. These are all part of administration tasks, hence network administration is one of the main tasks of Linux system administration. By knowing how to configure system network interfaces in a reliable and optimal manner, Linux administrators can deploy and configure several network services including file, web, mail, and servers while working in large enterprise environments.

Starting with a simple Linux router that passes traffic between two private networks, you will see how to enable NAT on the router in order to allow Internet access from the network, and will also enable DHCP on the network to ease configuration of client systems. You will then move on to configuring your own DNS server on your local network using bind9 and tying it into your DHCP server to allow automatic configuration of local hostnames. You will then future enable your network by setting up IPv6 via tunnel providers.

Moving on, we’ll configure Samba to centralize authentication for your network services; we will also configure Linux client to leverage it for authentication, and set up a RADIUS server that uses the directory server for authentication.

Toward the end, you will have a network with a number of services running on it, and will implement monitoring in order to detect problems as they occur.

Table of Contents

Chapter 1: Configuring a Router
Introduction
Setting up the physical network
Configuring IPv4
Configuring IPv4 permanently
Connecting two networks
Enabling NAT to the outside
Setting up DHCP
Setting up a firewall with IPtables
Setting up port forwarding
Adding VLAN Tagging
Chapter 2: Configuring DNS
Introduction
Setting up your system to talk to a nameserver
Setting up a local recursive resolver
Configuring dynamic DNS on your local network
Setting up a nameserver for your public domain
Setting up a slave nameserver
Chapter 3: Configuring IPv6
Introduction
Setting up an IPv6 tunnel via Hurricane Electric
Using ip6tables to firewall your IPv6 traffic
Route an IPv6 netblock to your local network
Chapter 4: Remote Access
Introduction
Installing OpenSSH
Using OpenSSH as a basic shell client
Using OpenSSH to forward defined ports
Using OpenSSH as a SOCKS proxy
Using OpenVPN
Chapter 5: Web Servers
Introduction
Configuring Apache with TLS
Improving scaling with the Worker MPM
Setting up PHP using an Apache module
Securing your web applications using mod_security
Configuring NGINX with TLS
Setting up PHP in NGINX with FastCGI
Chapter 6: Directory Services
Introduction
Configuring Samba as an Active Directory compatible directory service
Joining a Linux box to the domain
Chapter 7: Setting up File Storage
Introduction
Serving files with SMB/CIFS through Samba
Granting authenticated access
Setting up an NFS server
Configuring WebDAV through Apache
Chapter 8: Setting up E-mail
Introduction
Configuring Postfix to send and receive e-mail
Setting up DNS records for e-mail delivery
Configuring IMAP
Configuring authentication for outbound e-mail
Configuring Postfix to support TLS
Blocking spam with Greylisting
Filtering spam with SpamAssassin
Chapter 9: Configuring XMPP
Introduction
Installing ejabberd
Configuring DNS for XMPP
Configuring the Pidgin client
Chapter 10: Monitoring Your Network
Introduction
Installing Nagios
Adding Nagios users
Adding Nagios hosts
Monitoring services
Defining commands
Monitoring via NRPE
Monitoring via SNMP
Chapter 11: Mapping Your Network
Introduction
Detecting systems on your network with NMAP
Detecting Systems Using Arp-Scan
Scanning TCP ports
Scanning UDP ports
Identifying services
Identifying operating systems
Chapter 12: Watching Your Network
Introduction
Setting up centralized logging
Installing a Snort IDS
Managing your Snort rules
Managing Snort logging

What You Will Learn

  • Route an IPv6 netblock to your local network
  • Modify your named instance to support setting hostnames for your IPv6 addresses
  • Use SSH for remote console access
  • Configure NGINX with TLS
  • Secure XMPP with TLS
  • Leverage iptables6 to firewall your IPv6 traffic
  • Configure Samba as an Active Directory compatible directory service

Authors

Table of Contents

Chapter 1: Configuring a Router
Introduction
Setting up the physical network
Configuring IPv4
Configuring IPv4 permanently
Connecting two networks
Enabling NAT to the outside
Setting up DHCP
Setting up a firewall with IPtables
Setting up port forwarding
Adding VLAN Tagging
Chapter 2: Configuring DNS
Introduction
Setting up your system to talk to a nameserver
Setting up a local recursive resolver
Configuring dynamic DNS on your local network
Setting up a nameserver for your public domain
Setting up a slave nameserver
Chapter 3: Configuring IPv6
Introduction
Setting up an IPv6 tunnel via Hurricane Electric
Using ip6tables to firewall your IPv6 traffic
Route an IPv6 netblock to your local network
Chapter 4: Remote Access
Introduction
Installing OpenSSH
Using OpenSSH as a basic shell client
Using OpenSSH to forward defined ports
Using OpenSSH as a SOCKS proxy
Using OpenVPN
Chapter 5: Web Servers
Introduction
Configuring Apache with TLS
Improving scaling with the Worker MPM
Setting up PHP using an Apache module
Securing your web applications using mod_security
Configuring NGINX with TLS
Setting up PHP in NGINX with FastCGI
Chapter 6: Directory Services
Introduction
Configuring Samba as an Active Directory compatible directory service
Joining a Linux box to the domain
Chapter 7: Setting up File Storage
Introduction
Serving files with SMB/CIFS through Samba
Granting authenticated access
Setting up an NFS server
Configuring WebDAV through Apache
Chapter 8: Setting up E-mail
Introduction
Configuring Postfix to send and receive e-mail
Setting up DNS records for e-mail delivery
Configuring IMAP
Configuring authentication for outbound e-mail
Configuring Postfix to support TLS
Blocking spam with Greylisting
Filtering spam with SpamAssassin
Chapter 9: Configuring XMPP
Introduction
Installing ejabberd
Configuring DNS for XMPP
Configuring the Pidgin client
Chapter 10: Monitoring Your Network
Introduction
Installing Nagios
Adding Nagios users
Adding Nagios hosts
Monitoring services
Defining commands
Monitoring via NRPE
Monitoring via SNMP
Chapter 11: Mapping Your Network
Introduction
Detecting systems on your network with NMAP
Detecting Systems Using Arp-Scan
Scanning TCP ports
Scanning UDP ports
Identifying services
Identifying operating systems
Chapter 12: Watching Your Network
Introduction
Setting up centralized logging
Installing a Snort IDS
Managing your Snort rules
Managing Snort logging

Book Details

ISBN 139781785287916
Paperback152 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Linux Network Administration Book Cover
Mastering Linux Network Administration
$ 39.99
$ 28.00
Linux Shell Scripting Cookbook, Second Edition Book Cover
Linux Shell Scripting Cookbook, Second Edition
$ 26.99
$ 5.40
Mastering Linux Shell Scripting Book Cover
Mastering Linux Shell Scripting
$ 27.99
$ 19.60
Practical Linux Security Cookbook Book Cover
Practical Linux Security Cookbook
$ 35.99
$ 25.20
Learning Linux Binary Analysis Book Cover
Learning Linux Binary Analysis
$ 35.99
$ 25.20
Compass - powerful SASS library that makes your life easier [Video] Book Cover
Compass - powerful SASS library that makes your life easier [Video]
$ 53.99
$ 45.90