![]()
Linux Networking Cookbook
Table of Contents
Linux Networking Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Configuring a Router
Introduction
Setting up the physical network
How to do itā¦
How it worksā¦
Configuring IPv4
How to do itā¦
How it worksā¦
Configuring IPv4 permanently
How to do itā¦
How it worksā¦
Connecting two networks
How to do itā¦
How it worksā¦
Enabling NAT to the outside
How to do itā¦
How it worksā¦
Setting up DHCP
How to do itā¦
How it worksā¦
Setting up a firewall with IPtables
How to do itā¦
How it worksā¦
Setting up port forwarding
How to do itā¦
How it worksā¦
Adding VLAN Tagging
How to do it...
How it works...
2. Configuring DNS
Introduction
Setting up your system to talk to a nameserver
How to do itā¦
How it worksā¦
Setting up a local recursive resolver
How to do itā¦
How it worksā¦
There's moreā¦
Configuring dynamic DNS on your local network
How to do itā¦
How it worksā¦
Setting up a nameserver for your public domain
How to do it...
How it worksā¦
Setting up a slave nameserver
How to do itā¦
How it worksā¦
3. Configuring IPv6
Introduction
Setting up an IPv6 tunnel via Hurricane Electric
How to do itā¦
How it worksā¦
Using ip6tables to firewall your IPv6 traffic
How to do itā¦
How it worksā¦
Route an IPv6 netblock to your local network
How to do it...
How it worksā¦
4. Remote Access
Introduction
Installing OpenSSH
How to do itā¦
How it worksā¦
Using OpenSSH as a basic shell client
How to do itā¦
How it worksā¦
Using OpenSSH to forward defined ports
How to do itā¦
How it worksā¦
Using OpenSSH as a SOCKS proxy
How to do itā¦
How it worksā¦
Using OpenVPN
How to do itā¦
How it works...
5. Web Servers
Introduction
Configuring Apache with TLS
How to do itā¦
How it worksā¦
Improving scaling with the Worker MPM
How to do itā¦
How it worksā¦
Setting up PHP using an Apache module
How to do itā¦
How it worksā¦
Securing your web applications using mod_security
How to do itā¦
How it worksā¦
Configuring NGINX with TLS
How to do itā¦
How it works...
Setting up PHP in NGINX with FastCGI
How to do itā¦
How it worksā¦
6. Directory Services
Introduction
Configuring Samba as an Active Directory compatible directory service
How to do itā¦
How it worksā¦
Active Directory requirements
Selecting a realm and domain name
Using Samba-tool
Bind configuration
Joining a Linux box to the domain
How to do itā¦
How it worksā¦
7. Setting up File Storage
Introduction
Serving files with SMB/CIFS through Samba
How to do itā¦
How it worksā¦
Granting authenticated access
How to do itā¦
How it worksā¦
Setting up an NFS server
How to do itā¦
How it worksā¦
There's moreā¦
Configuring WebDAV through Apache
How to do itā¦
How it worksā¦
Apache modules
Directory directive
Authnz_external configuration
Directory definition
Authentication/Authorization:
Basic Apache directory configuration:
Enable WebDAV:
Granting write access
8. Setting up E-mail
Introduction
Configuring Postfix to send and receive e-mail
How to do itā¦
How it worksā¦
There's moreā¦
Setting up aliases
Setting up a smarthost
Relays without authentication
Relays with Auth
Setting up DNS records for e-mail delivery
How to do itā¦
How it worksā¦
Configuring IMAP
How to do it...
How it worksā¦
Configuring authentication for outbound e-mail
How to do itā¦
How it worksā¦
Configuring Postfix to support TLS
How to do itā¦
How it worksā¦
Blocking spam with Greylisting
How to do itā¦
How it worksā¦
Filtering spam with SpamAssassin
How to do itā¦
How it worksā¦
9. Configuring XMPP
Introduction
Installing ejabberd
How to do it...
How it worksā¦
Configuring authentication
Configuring listening ports
C2S service
S2S service
HTTP Service
Access control
Modules
mod_muc
mod_roster
mod_announce
Configuring DNS for XMPP
How to do itā¦
How it worksā¦
Configuring the Pidgin client
How to do itā¦
Install pidgin
Configuring your account
How it worksā¦
10. Monitoring Your Network
Introduction
Installing Nagios
How to do itā¦
How it worksā¦
Adding Nagios users
How to do itā¦
How it worksā¦
Adding Nagios hosts
How to do itā¦
How it worksā¦
Monitoring services
How to do itā¦
How it worksā¦
Defining commands
How to do itā¦
How it worksā¦
Monitoring via NRPE
How to do itā¦
How it worksā¦
On the target
On the Nagios host
Monitoring via SNMP
How to do it...
How it worksā¦
11. Mapping Your Network
Introduction
Detecting systems on your network with NMAP
How to do itā¦
How it worksā¦
Detecting Systems Using Arp-Scan
How to do itā¦
How it worksā¦
Scanning TCP ports
How to do itā¦
TCP CONNECT scan
TCP SYN scan
How it worksā¦
Scanning UDP ports
How to do itā¦
How it worksā¦
Identifying services
How to do itā¦
How it worksā¦
Identifying operating systems
How to do it...
How it worksā¦
12. Watching Your Network
Introduction
Setting up centralized logging
Input methods
Output methods
How to do itā¦
How it worksā¦
Installing a Snort IDS
How to do itā¦
How it worksā¦
WAN Interface
LAN interface
Dedicated interface
Managing your Snort rules
How to do it...
How it worksā¦
Managing Snort logging
How to do it...
How it worksā¦
Ubuntu stock
Enable fast logging
Enabling Tcpdump logging
Other logging options
Index
![]()
Linux Networking Cookbook
Copyright Ā© 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except i...