|
以下是我的终端输出,我想共享上网,我的主机是RedHat linux9.0,默认安装,通过内网的固定IP上网,IP是10.1.17.127,DNS是202.106.196.115,有两张网卡,同一个牌子,eth0接外面,eth1接一台winxp.我刚学linux,不太熟,看了不少贴子,还是不明白,有谁能告诉我该做什么,多谢了.
[root@fudaming root]# iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -j MSQUERADE
iptables v1.2.7a: Couldn't load target `MSQUERADE':/lib/iptables/libipt_MSQUERADE.so: cannot open shared object file: No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
[root@fudaming root]# echo 1 > /proc/sys/net/ipv4/ip_forward
[root@fudaming root]# iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -j MSQUERADE
iptables v1.2.7a: Couldn't load target `MSQUERADE':/lib/iptables/libipt_MSQUERADE.so: cannot open shared object file: No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
[root@fudaming root]# |
|