Linux Home Networking

LinuxHomeNetworking.com        SiliconValleyCCIE.com

Linux Topics

Cisco Topics

About the site

 

If you like the site, please sign the guestbook!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Linux Home Networking PDF Topics

 

CHAPTER 1

Adding Linux Users

Who Is The Super User?

How To Add Users

How To Delete Users

How To Tell The Groups To Which A User Belongs

How To Change Your Password

 

CHAPTER 2

Using Sudo

What is sudo?

Download & Install The sudo Package

The visudo command

The /etc/sudoers File

How To Use sudo

Using syslog To Track All sudo Commands

 

CHAPTER 3

Installing RPM Software

Where To Get Commonly Used RPMs

How to Easily Access CD RPMs With Automount

Getting RPMs Using Web Based FTP

Getting RPMs Using Command Line Anonymous FTP

How To Install The RPMs

How to Install Source RPMs

 

CHAPTER 4

The Linux Boot Process

The RedHat Boot Sequence

Determining The Default Boot runlevel

Get A GUI Console Without Changing runlevels

Get A Basic Text Terminal Without Exiting The GUI

Switching runlevels on the fly

How To Set Which Programs Run At Each runlevel

 

CHAPTER 5

Why Host Your Own Site?

Network Diagram
Alternatives To Home Web Hosting
Factors To Consider Before Hosting Yourself
How To Migrate From An External Provider
 

CHAPTER 6

Introduction to Networking

What Is TCP/IP?
What Is An IP Addresses?
What Is Localhost?
What Is A Subnet Mask?
How Many Addresses Do I Get With My Mask?
How Can I Figure Out My Broadcast Address?
What Is Duplex?
What Is A Hub?
What Is A Switch?
What Is A LAN?
What Is A Router?
What Is A Gateway?
What Is A Route?
What Is A Default Gateway?
What Is A NIC?
What Is A MAC Address?
What Is ARP?
What Is A Firewall?
What Is NAT?
What Is Port Forwarding With NAT?
What Is DHCP?
What Is DNS?
How Can I Check The IP Address For A Domain?
How Do I Get My Own DNS Domain Name?
What is FTP?
Where is Linux Help?

 

CHAPTER 7

Troubleshooting Linux With Syslog

About syslog
Activating Changes To The syslog Configuration File
How To View New Log Entries As They Happen
Logging Linux Syslog Messages to Another Linux Box
Syslog and Firewalls
Syslog Configuration & Cisco Devices
Logrotate

 

CHAPTER 8

Linux Networking

How To Configure Your NIC's IP Address

How To Change Your Default Gateway

How Configure Two Gateways

How To Delete A Route

How To View Your Current Routing Table

How To Convert Your Linux Server Into A Router

Configuring Your /etc/hosts File

 

CHAPTER 9

Simple Network Troubleshooting

How To See Your ARP Table

How To Use "Ping" To Test Network Connectivity

Using "traceroute" To Test Connectivity

Viewing Packet Flow With TCPdump

 

CHAPTER 10

Linux Wireless Networking

Wireless Linux Compatible NICs

Linux-WLAN Preparation

Installing The Linux-WLAN Drivers

Post Installation Steps

Linux-WLAN Encryption For Security

Troubleshooting Your Wireless LAN

 

CHAPTER 11

Linux Firewalls Using iptables

What Is iptables?
Download And Install The Iptables Package
How To Get iptables Started
Packet Processing In iptables
Iptables Packet Flow Diagram
Processing For Packets Routed By The Firewall
Packet Processing For Data Received By The Firewall
Packet Processing For Data Sent By The Firewall
Targets And Jumps
Descriptions Of The Most Commonly Used Targets
Important Iptables Command Switch Operations
General Iptables Match Criteria
Common TCP and UDP Match Criteria
Common ICMP (Ping) Match Criteria
Common Match Extensions Criteria
Using User Defined Chains
Sample iptables Scripts

Basic Initialization
Allowing DNS Access To Your Firewall
Allowing WWW And SSH Access To Your Firewall
Allowing Your Firewall To Access The Internet
Allow Your Home Network To Access The Firewall

IP Masquerade

Regular Masquerading (Many to One Network Address Translation)
Port Forwarding Type NAT
Static NAT

Logging & Troubleshooting
 

CHAPTER 12

Telnet, TFTP and XINETD

Telnet

TFTP

 

CHAPTER 13

Configuring a Linux FTP server

FTP Overview

Problems with FTP and firewalls

How To Download And Install The VSFTP Package

How To Get VSFTP Started

Testing To See If VSFTP Is Running

What Is Anonymous FTP?

The /etc/vsftpd.conf File

FTP Security Issues

 

CHAPTER 14

Secure Remote Logins & File Copying

Using Secure Shell As A Replacement For Telnet

Testing To See If SSH Is Running

The etc/ssh/sshd_config File

Using SSH To Login To A Remote Machine

What You Should Expect To See When You Log In

Deactivating Telnet once SSH is installed

Using SCP as a more secure replacement for FTP

 

CHAPTER 15

Configuring Samba

Download & Install Packages

How To Get SAMBA Started

Configuring SWAT

Samba & PC Firewall Software

How To Create A Samba PDC Administrator User

How to Configure a Samba PDC

How To Add Users To Your Samba Domain

A Note About Domain Groups And Samba

How To Delete Users From Your Samba Domain

 

CHAPTER 16

Sharing Resources with Samba

Adding A Printer To A Samba PDC

Creating Group Shares in SAMBA

Windows Drive Sharing With Your SAMBA Server

 

CHAPTER 17

Configuring DNS

What Is DNS?

What Is BIND?

When To Use A DNS Caching Name Server

When To Use A Regular DNS Server

How To Download & Install The BIND Packages

How To Get BIND Started

Configuring A Caching Name Server

Configuring A Regular Name Server

DHCP Considerations For DNS

 

CHAPTER 18

Dynamic DNS

What Is DNS?

What Is Dynamic DNS?

Dynamic DNS And NAT Router/Firewalls

Dynamic DNS Prerequisites

Installing And Using ez-ipupdate

Installing And Using DDclient

Testing Your Dynamic DNS

 

CHAPTER 19

Configuring The Apache Web Server

Download & Install The Apache Package

How To Get Apache Started

Configuring DNS For Apache

General Configuration Steps

File Permissions And Apache

Single IP Address - Two Sites

Apache Running On A Server Behind A Firewall

How To Protect Web Page Directories With Passwords

Issues When Upgrading To Apache 2.0

 

CHAPTER 20

Monitoring Server Performance

SNMP
MRTG
Webalizer
 

CHAPTER 21

Configuring Linux Mail

Configuring Sendmail

    An Overview Of How Sendmail Works
    Configuring DNS
    Installing And Starting Sendmail
    Restart Sendmail After Editing Your Configuration Files
    The /var/log/maillog File
    The /etc/mail/sendmail.mc File
    The /etc/hosts File
    The /etc/mail/relay-domains File
    The /etc/mail/access File
    The /etc/mail/local-host-names File
    Which User Should Really Receive The Mail?
    The /etc/mail/virtusertable file
    The /etc/aliases File
    Simple Mailing Lists Using Aliases
    An Important Note About The /etc/aliases File
    Sendmail Masquerading Explained
    A Simple PERL Script To Help Stop SPAM

Configuring Your POP Mail Server

    Installing Your POP Mail Server
    Configuring Your POP Mail Server
    How To Configure Your Windows Mail Programs
    How to handle overlapping email addresses

 

CHAPTER 22

Configuring A Linux DHCP Server

Download & Install The DHCP Package

The /etc/dhcp.conf File

Upgrading Your DHCP Server

How to get DHCP started

Modify Your Routes for DHCP on Linux Server

Configuring Linux clients to use DHCP

Error Found When Upgrading From Redhat 7.3 To 8.0

 

CHAPTER 23

Configuring NTP

What is NTP?

Download & Install The NTP Package

The /etc/ntp.conf File

How To Get NTP Started

Determining If NTP Is Synchronized Properly

Configuring Cisco Devices To Use An NTP Server

Firewalls and NTP

 

CHAPTER 24

Configuring Linux VPNs

VPN Guidelines
Scenario
Download and Install The FreeS/WAN Package
Installing The Prerequisite ncftp RPM Package
Installing The FreeS/WAN RPM
FreeS/WAN Configuration Steps
   Get The RSA Keys
   Edit The /etc/ipsec.conf Configuration File
   Restart FreeS/WAN
   Initialize The New Tunnel

FreeS/WAN Testing
   Check The Routes
   The “ipsec look” Command
   Test The VPN Connectivity
   Protected Interface TCPDUMP Output From “vpn2”
   Unprotected Interface TCPDUMP Output From “vpn2”
   Possible Changes To IP Tables NAT/Masquerade Rules
   How To Ensure FreeS/WAN Starts When Rebooting
Using Pre-Shared Keys (PSK)

   Create The PSK
   Update /etc/ipsec.secrets
   Update /etc/ipsec.conf
   Restart FreeS/WAN

Appendices

 

APPENDIX I

VPN Terminologies

 

APPENDIX I

Running Linux Without A Monitor

Preparing To Go “Headless”

The /etc/inittab File

Configuration Steps

Make Your Linux Box Emulate A VT100 Dumb Terminal

 

APPENDIX I

Disk Partitioning Explained

What Is A Partition?

What Is A Filesystem?

How Linux Links Filesystems And Partitions

What Partitions Are Mandatory?

Recommended sizes for disk partitions

How Much Space Do I Have On My Partitions?

What Can I Do When I Run Out Of Disk Space?

 

APPENDIX I

The OSI Networking Model

What is the OSI model?

What Is TCP/IP?

TCP/IP Packet Format

 

APPENDIX II

Codes, Scripts & Configurations

Subnet Calculator Script
Apache File Permissions Script
Sendmail SPAM Filter Script
IPtables Basic Initialization Script
IPtables Firewall As A Webserver Script
IPtables IP Masquerading Script
IPtables Port Forwarding Script
IPtables Complex script
Syslog Configuration and Cisco Devices
DNS Zone File For my-site.com
DNS Zone File For my-other-site.com
Forward Zone File For A Home Network Using NAT
Reverse Zone File For A Home Network Using NAT
Sendmail Sample /etc/mail/access File
Sendmail Sample /etc/aliases File
Sendmail Sample /etc/mail/local-host-names File
Sendmail Sample /etc/mail/sendmail.mc File
Sendmail Sample /etc/mail/virtusertable File
ICMP Codes
 

APPENDIX III

Bibliography - Links Page

Wireless Linux

Cisco Router Configuration Examples

Cisco PIX Firewall Configuration Examples

Netfilter - iptables Configuration

General Home Networking Resource Pages

SSH Servers and SSH Clients

The Windows SCP client called WinSCP

FTP Server and FTP Clients

DHCP Server

Apache Web Server Software

Sendmail Mail Configuration

Dynamic DNS - Hosting Your Website at Home

Static DNS

NTP Server

POP Mail Server

Samba - Linux as a Windows File Server

General Linux Resource Pages

Disk Partitioning

Network Monitoring

My Other Sites

 

 

 

Cisco Companion PDF Topics

 

CHAPTER I

Configuring Cisco PIX Firewalls

Network Address Translation (NAT)

Accessing the PIX command line

Sample PIX Configuration: DSL - DHCP

How To Get Static IPs For DSL Cheaply

Sample PIX configuration: DSL - Static Ips

 

CHAPTER 2

Configuring Cisco DSL Routers

An Introduction to Network Address Translation (NAT)

Introduction to accessing the router command line

Sample Configurations

Other NAT Topics

 

CHAPTER 3

Cisco SOHO VPNs

Cisco router VPN configuration example

Cisco PIX VPN configuration example

 

APPENDIX I

Cisco Syslog Configurations

Cisco Routers
Catalyst CAT Switches running CATOS
Cisco Local Director
Cisco PIX Filewalls
Cisco CSS11000 (Arrowpoints)
The Sample Cisco syslog.conf File
 

APPENDIX II

Cisco Configurations

Cisco PIX Firewall - DHCP DSL Configuration
Cisco PIX Firewall - Static DSL Configuration
Cisco PIX permanent site to site VPN configuration example.
Cisco PIX VPN configuration for Windows clients such as Cisco EasyVPN.
 

APPENDIX III

Bibliography - Links Page

Cisco Router Configuration Examples

More Cisco PIX Firewall Configuration Examples

 

© Peter Harrison, www.linuxhomenetworking.com