免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1548 | 回复: 4
打印 上一主题 下一主题

[网络管理] iptables进行ip伪装的时候总是出错? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-13 14:31 |只看该作者 |倒序浏览
我参照别人的贴子扩展了一下iptables的功能(netfilter/iptables模块编译及应用)
iptables功能是扩展了,而且能用. 但是我用iptables进行ip伪装的时候, 总是出现下面的情况:

-bash-2.05b# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables: No chain/target/match by that name
-bash-2.05b#

请问这是什么原因啊! 现在无法共享上网了! 我的iptables版本是1.3.3

论坛徽章:
0
2 [报告]
发表于 2005-12-14 09:06 |只看该作者

?

没问题,你的命令没有问题,modprobe -l 看看结果,是否正确的模块加入到内核

解决办法,重新编译内核,升级iptables,我至今没有明白,www.netfilter.org
project 下:

libnfnetlink

libnetfilter_log

libnetfilter_queue

libnetfilter_conntrack

conntrack

ipset

nf-hipac

patch-o-matic-ng

这些和iptables什么关系,最新的iptables加最新的内核就包含了以上所有模块吗?


[ 本帖最后由 lanmine 于 2005-12-14 09:12 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2005-12-14 09:10 |只看该作者

这是netfilter上faq里的一条错误信息提示

faq:

这是netfilter上faq里的一条错误信息提示:

'iptables: Invalid argument' after kernel update (nat table)

You have just upgraded your kernel and suddenly some of the commands (especially in the 'nat' table), and you experience something like:

# iptables -A POSTROUTING -t nat -o ppp0 -j MASQUERADE
iptables: Invalid argument


This happens when the structure size between kernel and userspace changes. You will need to recompile the iptables userspace program using the include files of your new kernel. This only happens if you (or the vendor of your kernel) has applied some patches either only to the old or only to the new kernel. It is not supposed to happen between vanilla kernel.org kernels. If it does, please inform the netfilter-devel mailinglist.
DanielChou 该用户已被删除
4 [报告]
发表于 2005-12-14 10:05 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
DanielChou 该用户已被删除
5 [报告]
发表于 2005-12-14 10:06 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP