1. 安装我不讲了,rh9的rpm安装方式非常简单,大家只要在rh的安装源盘找到相应的rpm包就行. 【程序编程相关:用程序实现关闭和重起计算机】 【推荐阅读:读写SQL+ADO的datetime】 【扩展信息:剪切板上文本数据的传送】 然后 rpm -uvh iptables-?.i386.rpm 2. 我们今天调试的环境是一台双网卡的服务器,通过ddn固定ip地址上网,两块网卡分别是 eth0: 211.101.251.4 外部ip地址,直接上网 eth1: 192.168.0.1 内部网卡地址,连接192.168.0.0/255.255.255.0网断局域网 3.客户端a是台www,地址是192.168.0.2.我们将利用后面的dnat功能,让外面的机器能访问这台机器的www服务.其他客户端都在192.168.0.0/24网段,且网关都指向192.168.0.1 4. 如果大家要使用iptables的nat功能,之前我们要确保系统内核配置的是正确的,我的iptables好几次就因为内核编译错误,造成客户端不能正常使用snat功能,甚至不能加载ip_tables模块.这是一般的内核配置,基本上iptables的nat功能能正常使用,内核版本不同可能显示不一样,大家灵活掌握就行,应该不会出现麻烦. networking options ---> [*] network packet filtering (replaces ipchains) [*] tcp/ip networking ip: netfilter configuration ---> <m> connection tracking (required for masq/nat) (new) <m> ftp protocol support (new) <m> ip tables support (required for filtering/masq/nat) (new) <m> limit match support (new) <m> mac address match support (new) <m> netfilter mark match support (new) <m> multiple port match support (new) <m> tos match support (new) <m> tcpmss match support (new) <m> connection state match support (new) <m> packet filtering (new) <m> reject target support (new) <m> full nat (new) <m> masquerade target support (new) <m> redirect target support (new) ... 下一页