个人工具

Quick HOWTO/zh

来自Ubuntu中文

跳转至: 导航, 搜索


目录

关于本页面

这是 Linux 关于联网的主页的大致信息。

Linux下家庭网络PDF章节

封面所述主题需要Linux 软件测试来验证,例如 RHCE和许多计算机培训课程。这还是一份思科为家庭/分办公室配置网络的PDF指南。


Linux文件服务器项目

这个网站的第一部分是写给那些刚刚在家或办公室装完linux服务器并想知道如何把服务器和家庭网络连接起来的中高级用户。linux软件则涉及了基本的排障,网络管理的基本技术,以及如何让你的linux服务器变为你的windows文件服务器,还有网络安装的建议和无线连接等议题。

Ch01 Why Host Your Own Site?

  • 网络示意图
  • Alternatives To Home Linux Hosting
  • In-House Web Server Management Considerations
  • Factors To Consider Before Linux Hosting Yourself
  • How To Migrate From An External Provider

第2章 网络介绍

  • 什么是TCP/IP协议?
  • IP地址看起来像什么?
  • 什么是localhost?
  • 什么是子网掩码?
  • 根据掩码我可以拥有多少地址?
  • 我的网络地址的范围是什么?
  • 什么是双工?
  • 什么是集线器?
  • 什么是交换机?
  • 什么是局域网?
  • 什么是路由器?
  • 什么是网关?
  • 什么是路由?
  • 什么是默认网关?
  • 什么是NIC?
  • What Does The "Link" Light On My NIC Indicate?
  • 什么是MAC地址?
  • 什么是ARP?
  • 什么是数据终端设备?
  • 什么是数据通信设备(DCE)?
  • 什么是直通线和交叉线?
  • 什么是防火墙?
  • 什么是NAT?
  • What Is Port Forwarding With NAT?
  • 什么是DHCP?
  • 什么是DNS?
  • 如何查出IP地址的属于哪个域?
  • 如何取得我自己的域名?
  • 什么是FTP?
  • 哪里有
  • Linux的“帮助”菜单 ?

第3章 网络路由

  • 如何配置你的网卡IP地址
  • 如何改变你的默认网关
  • 如何配置两个网关
  • 如何删除一个路由
  • 如何查看你现在的路由表
  • 如何改变你的网卡的双工设置
  • 如何把你的linux服务器转变为一个路由器
  • 配置你的/etc/hosts文件
  • 如何针对DSL方式和电缆调制解调器方式连接因特网来配置您的网卡

Ch04简单的网络诊断

  • 怎么看你的ARP列表
  • 一些基本的连接测试
  • 测试你的网卡
  • 怎么看你的MAC地址
  • 使用PING测试网络的连接
  • 使用TELNET测试网络连接
  • 用curl和wget测试网站
  • netstat命令
  • linux iptables防火墙
  • 用traceroute来测试连接
  • 用MTR来测试网络涌堵
  • 用tcpdump来查看网络封包
  • 用tethereal来查看网络封包
  • 基本的dns故障排除
  • 使用nmnap
  • 分析攻击来源
  • 谁在使用我的系统

第5章 用系统日志来排除故障

  • 系统日志
    • /etc/sysslog.conf配置文件
    • 系统日志文件的高级配置
    • 如何查看新产生的日志
    • 记录日志到远程服务器上
    • 系统日志的配置和思科网络设备
  • 日志轮替
    • /etc/logrotate.conf文件
    • /etc/logrotate.conf的样本设置
    • /etc/logrotate.d 目录
    • 激活日志轮替
    • 压缩你的日志文件
  • syslog-ng
    • The /etc/syslog-ng/syslog-ng.conf file
    • Installing syslog-ng
    • Configuring syslog-ng Clients
  • Simple syslog Security
  • 结论

第6章 安装 Linux 软件

  • 从哪里得到常用的RPMs软件包
  • 如何轻松持载并访问RPMs包的数据光盘
  • 以FTP为基础通过网络获得RPMs软件包
  • 通过命令行匿名访问FTP获得RPMs软件包
  • 使用WGET获得 RPMs软件包
  • 通过yum获得自动更新
  • 通过Up2date获得自动更新
  • 如何安装RPMs包
  • 如何安装源RPMs包
  • RPM 安装错误
  • 如何显示安装好的RPMs包工
  • 如何显示RPMs包拥有的所有文件夹
  • 如何卸载RPMs
  • 哪个RPMs会在开机时被启动?

第7章 linux的启动过程

  • Redhat的启动顺序
  • 默认的运行级别
  • 在不改变运行级别的情况下获取一个图形终端
  • 在不退出图形界面的情况下获取一个基本的文本终端
  • Switching runlevels on the fly
  • 如何在每一个运行级别上设置启动程序

第8章 配置dhcp服务器

  • 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

第9章 linux 用户 和 sudo

  • 谁是星级用户?
  • 怎样添加用户?
  • 怎样删除用户?
  • 怎样申明
  • 一个用户所属的组?
  • 怎样改变你的密码?
  • sudo是什么?
  • 下载和安装sudo软件包
  • visudo的命令
  • etc/sudoers 文件
  • 怎样使用sudo ?
  • 如何使用syslog跟踪sudo命令?

第10章 Windows,Linux和Samba

  • 下载并安装软件包
  • 怎样启动SAMBA
  •  Samba的配置文件
  • How SWAT Makes Samba Simpler
  • Creating A Starter Configuration
  • Fine Tuning The Configuration
  • How To Create A Samba PDC Administrator User
  • How To Add Workstations To Your Samba Domain
  • How To Add Users To Your Samba Domain
  • Domain Groups And Samba
  • How To Delete Users From Your Samba Domain

第10章 用Samba来共享资源

  • Adding A Printer To A Samba PDC
  • Creating Group Shares in SAMBA
  • Windows Drive Sharing With Your SAMBA Server

第12章 Samba的安全和排障

  • Testing The smb.conf file
  • Samba and Firewall Software - iptables, Zone Alam, Windows XP Firewall
  • Testing Basic Client / Server Network Connectivity
  • Testing Samba Client / Server Connectivity
  • Checking the Samba Logs
  • Samba Network Troubleshooting
  • Basic Samba Security

第13章 linux的无线配置

  • Wireless Linux Compatible NICs
  • Common Wireless Networking Terms
  • Networking With Linux Wireless-Tools
  • Configuring 802.11g with Linux Incompatible NICs (With an NDIS wrapper example)
  • Compiling ndiswrapper
  • Networking With Linux-WLAN
  • Linux-WLAN Preparation
  • Installing The Linux-WLAN Drivers
  • Post Installation Steps
  • Linux-WLAN Encryption For Security
  • Troubleshooting Your Wireless LAN
  • Wireless Networks In Businesses
  • Conclusion

linux Website项目

This section builds upon the introduction to networking and software installation topics of "Inside The Home". Covers all the major topics required to make your home network house your very own website using a dedicated server. Topics covered include firewalls, DNS, email and Apache, the most popular Linux web server software.

  第14章  使用 iptables作为Linux下的防火墙

  • 什么是iptables?
  • 使用iptables 作为你网站服务器管理安全计划的一部分
  • 下载和安装Iptables软件包
  • 如何启动iptables
  • iptables的包进程
  • Iptables的包流量图
  • 防火墙设定包处理路径
  • 防火墙处理接受的数据包
  • 防火墙处理发送的数据包
  • 目标和跳转
  • 常用任务说明
  • Iptables几个重要的命令转换操作
  • Iptables常规的匹配条件
  • 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

第15章 Linux下建立FTP服务器

  • FTP 简介
  • 配置 vsFtp 和 防火墙
  • 下载并安装 vsFtp
  • 启动 vsFtp
  • 测试 vsFtp 是否运行
  • 什么是匿名FTP?
  • 配置文件 /etc/vsftpd.conf
  • FTP安全问题

Ch16 Telnet, TFTP, and xinetd

  • Telnet
  • TFTP

第17章  安全的远程登录和文件复制Ch17 : Secure Remote Logins and File Copying/zh

  • 使用了安全的Shell命令取代了Telnet命令
  • 测试检测SSH是否正在运行
  • 配置文件 etc/ssh/sshd_config
  • 使用SSH登录远程计算机
  • 登录时的注意事项
  • 一旦安装了SSH Telnet就会被撤销
  • 使用更加安全的SCP代替FTP
  • 使用SCP无需密码复制文件

第18章 配置 DNS

  • 什么是DNS?
  • 什么是BIND?
  • 为何DNS对联网主机很关键
  • 什么时候使用一个域名缓存服务器
  • 什么时候使用常规的域名服务器
  • 如何下载和安装BIND软件包
  • 如何启动BIND
  • 配置域名缓存服务器
  • 配置常规域名服务器
  • 让域名服务使用动态地址配置协议

第19章 动态域名服务

  • 什么是DNS?
  • 什么是动态DDNS?
  • 动态DNS 和 NAT路由/防火墙
  • 配置动态DNS的先决条件
  • 安装和使用 ez-ipupdate
  • 安装和使用DDclient
  • 测试你的动态DNS

第20章 Apache 站点服务器

  • 配置Apache之前的准备工作
  • 下载并安装Apache软件包
  • 如何启动Apache
  • 为Apache配置域名解析服务
  • 一般的配置步骤
  • Apache的文件许可
  • 单个IP-两个网站
  • Apache在防火墙之後运行服务器
  • 如何使用密码保护您的站点页面目录
  • 升级到Apache 2.0时的问题

第21章 配置Linux邮件服务器

    • 配置邮件发送程序Sendmail
    • 安装Sendmail
    • 启动Sendmail
    • 如何在编辑完成你自己的配置文件之後重启Sendmail
    • 配置文件 /etc/mail/sendmail.mc
    • 为sendmail配置域名解析服务器
    • 怎样配置你的Linux Sendmail客户端
    • 从一个邮件客户端想服务器转换
    • 文件/etc/mail/relay-domains 
    • 文件/etc/mail/access
    • 文件/etc/mail/local-host-names
    • 那个用户应该实实在在的接收到邮件?
    • Sendmail 伪装解析
    • 使用Sendmail改变发件人的地址
    • Sendmail故障维护
  • 与SPAM搏斗
    • Sendmail使用SPAM公用的黑名单
    • Spam背後黑手
    • Rules du Jour
    • 灰名单
    • 一个简单的停止SPAM的PERL脚本
  • 配置您的POP邮件服务器
    • 安装您的POP邮件服务器
    • 开启POP邮件服务器
    • 如何配置你在Windows下的邮件程序
    • 配置安全的POP邮件
    • 如何处理冲突的邮件地址
    • POP邮件服务器故障排除

Ch22 Monitoring Server Performance

  • SNMP
    • What is SNMP?
    • Doing SNMP Queries
    • SNMP on a Linux Server
    • SNMP On Other Devices
    • Different SNMP Versions
  • MRTG
    • What is MRTG?
    • How MRTG Helps With Web Server Management
    • A Typical MRTG Server Bandwidth Graph
    • Download and Install The MRTG Packages
    • MRTG Differences Between Fedora and RedHat 9
    • Configuring MRTG
    • Configuring Apache To Work With MRTG
    • Using MRTG To Monitor Other Subsystems
    • Troubleshooting MRTG
    • Fedora Core 1 MRTG Errors With Net-SNMP
    • Indexmaker MRTG_LIB Errors With RedHat 9 and 8.0
    • Precedence Bitwise Error With RedHat 9
  • Webalizer
    • What Is Webalizer?
    • How To View Your Webalizer Statistics
    • The Webalizer Configuration File
    • Make Webalizer run in Quiet Mode
  • TOP
  • VMSTAT

Ch23 Advanced MRTG for Linux

  • Locating And Viewing The Contents Of MIBs
  • Differences In MIB And MRTG Terminology
  • The CPU And Memory Monitoring MIB
  • The TCP/IP Monitoring MIB
  • Manually Configuring Your MRTG File
  • Parameter Formats
  • Legend Parameters
  • Options Parameters
  • Title Parameters
  • Scaling Parameters
  • Defining The MIB Target Parameters
  • Comparing Two MIB Values
  • Mapping MIBs To The Graph Legends
  • Plotting Only One MIB Value
  • Adding MIB Values Together For a Graph
  • Sample Target: Total CPU Usage
  • Sample Target: Memory Usage
  • Sample Target: Newly Created Connections
  • Sample Target: Total TCP Established Connections
  • Sample Target: Disk Partition Usage
  • Defining Global Variables
  • Implementing Advanced Server Monitoring
  • A Complete Sample Configuration
  • Testing The Configuration
  • Creating A New MRTG Index Page To Include This File
  • Configuring CRON To Use The New MRTG File

Ch24 The NTP Server

  • NTP是什么
  • 下载和安装NTP软件包
  • 配置文件/etc/ntp.conf
  • 如何启用NTP功能
  • 判断NTP是否已正确同步
  • 用NTP服务器配置Cisco设备
  • 防火墙和NTP

Advanced Linux Topics

The final Linux section of the Linux Home Networking Series. Focuses on the needs of the expert home user and IT professionals in small to medium sized businesses that require advanced Linux server software management help.

Ch25 Network-Based Linux Installation

  • Setting Up The Installation Server
  • Creating Boot Diskettes
  • The Network Installation
  • Troubleshooting The Network Installation
  • Automating Installation With Redhat Kickstart

Ch26 Linux Software RAID

  • RAID Types
  • Before You Start
  • Configuring Software RAID

Ch27 Expanding Disk Capacity

  • LVM Terminologies
  • Configuring LVM Devices

Ch28 Managing Disk Usage with Quotas

  • Setting Up Quotas
  • Other Quota Topics

Ch29 Remote Disk Access with NFS

  • Installing NFS
  • How To Get NFS Started
  • The /etc/exports File
  • Activating Modifications The Exports File
  • NFS And DNS
  • Configuring The NFS Client
  • Other NFS Considerations

Ch30 Configuring NIS

  • Scenario
  • Configuring The NIS Server
  • Configuring The NIS Client
  • Adding New NIS Users
  • Configuring The NIS Client

Ch31 Centralized Logins Using LDAP and RADIUS

  • The LDAP Database Structure
  • Scenario
  • Configuring The LDAP Server
  • Configuring The LDAP Client

Ch32 Controlling Web Access with Squid

  • Download and Install The Squid Package
  • The /etc/squid/squid.conf File
  • Configuring Web Browsers To Use Your Squid Server
  • How To Get Squid Started
  • Squid And Firewalls
  • Squid Disk Usage
  • Troubleshooting Squid
  • Other Squid Capabilities

Ch33 Modifying the Kernel to Improve Performance

  • Download and Install The Kernel Sources Package
  • Kernel Modules
  • Creating A Custom Kernel
  • Updating GRUB
  • Creating A Boot Diskette For The New Kernel
  • Updating The Kernel Using RPMs

Ch34 Basic MySQL Configuration

  • Installing MySQL
  • Starting MySQL
  • A Common Fedora MySQL Startup Error
  • The Location of MySQL Databases
  • Creating a MySQL "root" Account
  • Accessing The MySQL Command Line
  • Creating and Deleting MySQL Databases
  • Recovering Your MySQL Root Password
  • MySQL Granting Privileges to Users
  • MySQL Database Backup
  • MySQL Database Restoration
  • Very Basic MySQL Network Security

Ch35 Configuring Linux VPNs

  • Installing and configuring Openswan and /or FreeS/WAN

Ap01 Miscellaneous Linux Topics

  • Linux Security With TCP Wrappers
  • Adjusting Kernel Parameters
  • Running Linux Without A Monitor
  • Make Your Linux Box Emulate A VT100 Dumb Terminal
  • VPN Terminologies
  • TCP/IP Packet Format
  • ICMP Codes

Ap02 Codes, Scripts, and 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
  • 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*

Ap03 Fedora Version Differences

  • FTP Differences
  • DHCP Differences
  • DNS Differences
  • Routing Differences
  • Iptables Differences
  • Software Installation Differences
  • Wireless Networking Differences

Ap04 syslog Configuration and Cisco Devices

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

Miscellaneous Linux Topics (Non PDF)

I've placed some additional chapters here covering topics like "Network Device Configuration Backups" that are not part of the Linux PDF set.

Ch1 : Network Backups With Rancid

  • Introduction
  • Rancid Installation
  • Initial Rancid Configuration
  • Rancid File Locations
  • Rancid File Locations
  • The Rancid router.db file
  • Various device types for Rancid
  • The Rancid .clogin.rc file
  • Testing Rancid
  • Testing A Login for a Single Device
  • Testing For All Devices
  • Troubleshooting Using the Rancid Log Files
  • Successful Execution
  • Possible Reasons for Failure
  • Getting Rancid Help
  • Conclusion