由 zhangwf 在 03-09-2004 10:02 发表:
求助:我的RedHat9.0共享上网老死机。
我用的是RedHat9.0做服务器,安装的时候我选的是server版安装,而且主机上还配了Apache,ssh,ssl,smtp/pop,ftp等服务。上网方式是adsl.
共享上网的配置如下:
eth0: 192.168.0.1 255.255.255.0 其他网关,dns等都没配置,此网卡用于连接局域网其他机器
eht1: IP地址和网关,dns等都没配置,此网卡用于ADSL拨号用
客户端的IP地址为:192.168.0.2-192.168.0.254之间的ip地址,子网掩码都是255.255.255.0,网关都指向192.168.0.1,DNS指向192.168.0.1
Ethernet Interface: eth1
User name: username
Activate-on-demand: No
DNS: Do not adjust
Firewalling: MASQUERADE
User Control: yes
/etc/sysconfig/iptables的内容如下:
Firewall configuration written by lokkit
Manual customization of this file is not recommended.
Note: ifup-post will punch the current nameservers through the
firewall; such entries will not be listed here.
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
*nat
:PREROUTING