找回密码
 注册
查看: 774|回复: 2

gentoo如何使用iptables实现宽带共享????

[复制链接]
发表于 2003-11-18 22:40:49 | 显示全部楼层 |阅读模式
我在gentoo下:
#emerge iptables
#iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE(已拨号)
出错信息如下:
modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `nat': iptables who? (do you need to

insmod?)
Perhaps iptables or your kernel needs to be upgraded.
我以前在redhat下面就是这样就可以共享上网的,gentoo下为什么不行呢??
难道要内核支持??在哪个选项呢?
发表于 2003-11-20 11:40:48 | 显示全部楼层
昨晚一晚上没睡,困死了。。。自己看。。。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

发表于 2003-11-20 14:24:43 | 显示全部楼层
编译好内核后,保证内网能连通。
然后
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o ppp0 -j MASQUERADE

这是最为简单的了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-12 07:44 , Processed in 0.021959 second(s), 17 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表