YL2440下iptables运行问题
- [root@(none) /]# iptables -h
- modprobe: could not parse modules.dep
- getsockopt failed strangely: No such file or directory
复制代码
Google了一下。貌似问题是内核缺少模块。可是内核Netfilter Configuration下所有的选项都选上了。CONFIG_NETFILTER也选上了。
还缺什么呢?
优龙2440开发板,2.6.12的内核。
附上内核Netfilter相关的配置文件:
- #
- # Networking support
- #
- CONFIG_NET=y
- #
- # Networking options
- #
- CONFIG_PACKET=y
- # CONFIG_PACKET_MMAP is not set
- CONFIG_UNIX=y
- # CONFIG_NET_KEY is not set
- CONFIG_INET=y
- # CONFIG_IP_MULTICAST is not set
- # CONFIG_IP_ADVANCED_ROUTER is not set
- CONFIG_IP_PNP=y
- # CONFIG_IP_PNP_DHCP is not set
- CONFIG_IP_PNP_BOOTP=y
- # CONFIG_IP_PNP_RARP is not set
- # CONFIG_NET_IPIP is not set
- # CONFIG_NET_IPGRE is not set
- # CONFIG_ARPD is not set
- # CONFIG_SYN_COOKIES is not set
- # CONFIG_INET_AH is not set
- # CONFIG_INET_ESP is not set
- # CONFIG_INET_IPCOMP is not set
- # CONFIG_INET_TUNNEL is not set
- # CONFIG_IP_TCPDIAG is not set
- # CONFIG_IP_TCPDIAG_IPV6 is not set
- #
- # IP: Virtual Server Configuration
- #
- # CONFIG_IP_VS is not set
- # CONFIG_IPV6 is not set
- CONFIG_NETFILTER=y
- # CONFIG_NETFILTER_DEBUG is not set
- #
- # IP: Netfilter Configuration
- #
- CONFIG_IP_NF_CONNTRACK=y
- CONFIG_IP_NF_CT_ACCT=y
- CONFIG_IP_NF_CONNTRACK_MARK=y
- CONFIG_IP_NF_CT_PROTO_SCTP=y
- CONFIG_IP_NF_FTP=y
- CONFIG_IP_NF_IRC=y
- CONFIG_IP_NF_TFTP=y
- CONFIG_IP_NF_AMANDA=y
- CONFIG_IP_NF_QUEUE=y
- CONFIG_IP_NF_IPTABLES=y
- CONFIG_IP_NF_MATCH_LIMIT=y
- CONFIG_IP_NF_MATCH_IPRANGE=y
- CONFIG_IP_NF_MATCH_MAC=y
- CONFIG_IP_NF_MATCH_PKTTYPE=y
- CONFIG_IP_NF_MATCH_MARK=y
- CONFIG_IP_NF_MATCH_MULTIPORT=y
- CONFIG_IP_NF_MATCH_TOS=y
- CONFIG_IP_NF_MATCH_RECENT=y
- CONFIG_IP_NF_MATCH_ECN=y
- CONFIG_IP_NF_MATCH_DSCP=y
- CONFIG_IP_NF_MATCH_AH_ESP=y
- CONFIG_IP_NF_MATCH_LENGTH=y
- CONFIG_IP_NF_MATCH_TTL=y
- CONFIG_IP_NF_MATCH_TCPMSS=y
- CONFIG_IP_NF_MATCH_HELPER=y
- CONFIG_IP_NF_MATCH_STATE=y
- CONFIG_IP_NF_MATCH_CONNTRACK=y
- CONFIG_IP_NF_MATCH_OWNER=y
- CONFIG_IP_NF_MATCH_ADDRTYPE=y
- CONFIG_IP_NF_MATCH_REALM=y
- CONFIG_IP_NF_MATCH_SCTP=y
- CONFIG_IP_NF_MATCH_COMMENT=y
- CONFIG_IP_NF_MATCH_CONNMARK=y
- CONFIG_IP_NF_MATCH_HASHLIMIT=y
- CONFIG_IP_NF_FILTER=y
- CONFIG_IP_NF_TARGET_REJECT=y
- CONFIG_IP_NF_TARGET_LOG=y
- CONFIG_IP_NF_TARGET_ULOG=y
- CONFIG_IP_NF_TARGET_TCPMSS=y
- CONFIG_IP_NF_NAT=y
- CONFIG_IP_NF_NAT_NEEDED=y
- CONFIG_IP_NF_TARGET_MASQUERADE=y
- CONFIG_IP_NF_TARGET_REDIRECT=y
- CONFIG_IP_NF_TARGET_NETMAP=y
- CONFIG_IP_NF_TARGET_SAME=y
- CONFIG_IP_NF_NAT_SNMP_BASIC=y
- CONFIG_IP_NF_NAT_IRC=y
- CONFIG_IP_NF_NAT_FTP=y
- CONFIG_IP_NF_NAT_TFTP=y
- CONFIG_IP_NF_NAT_AMANDA=y
- CONFIG_IP_NF_MANGLE=y
- CONFIG_IP_NF_TARGET_TOS=y
- CONFIG_IP_NF_TARGET_ECN=y
- CONFIG_IP_NF_TARGET_DSCP=y
- CONFIG_IP_NF_TARGET_MARK=y
- CONFIG_IP_NF_TARGET_CLASSIFY=y
- CONFIG_IP_NF_TARGET_CONNMARK=y
- CONFIG_IP_NF_TARGET_CLUSTERIP=y
- CONFIG_IP_NF_RAW=y
- CONFIG_IP_NF_TARGET_NOTRACK=y
- CONFIG_IP_NF_ARPTABLES=y
- CONFIG_IP_NF_ARPFILTER=y
- CONFIG_IP_NF_ARP_MANGLE=y
复制代码
[ 本帖最后由 kid.xiyang 于 2007-5-12 20:14 编辑 ]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论