[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:12808] insmod ip_tables failed (Ĺʸ)



¤­¤É ¤È¿½¤·¤Þ¤¹¡£

iptables ¤Ë¤Ä¤¤¤Æ¼ÁÌ䤵¤»¤Æ¤¯¤À¤µ¤¤¡£Ä¹Ê¸¤Ë¤Ê¤ê¤Þ¤¹¤¬¤´ÍƼϤΤۤɤò¡£

¡Ú¾É¾õ¡Û
iptables ´ØÏ¢¥â¥¸¥å¡¼¥ë¤ò¥í¡¼¥É¤Ç¤­¤Ê¤¤¡£

ÃÙ¤ì¤Ð¤»¤Ê¤¬¤é¡¢¥Õ¥ì¥Ã¥Ä ADSL 1.5Mb ¤ò¿½¤·¹þ¤ó¤À¤Î¤òµ¡¤Ë (³«Ä̤Τá¤É¤Ï
¤Þ¤À¤¿¤Ã¤Æ¤¤¤Þ¤»¤ó)¡¢¥Ñ¥±¥Ã¥È¡¦¥Õ¥£¥ë¥¿¥ê¥ó¥°¤ò³Ø¤Ü¤¦¤È¡¢kernel 2.4.17 
¤Ë¥¢¥Ã¥×¥Ç¡¼¥È¤·¤Þ¤·¤¿¡£»²¹Í¤Ë¤·¤¿¤Î¤Ï°Ê²¼¤Îʸ½ñ¤Ç¤¹¡£¥«¡¼¥Í¥ëÀßÄê¤Ç¤Ï 
IP: Netfilter Configuration °Ê²¼¤ò¥â¥¸¥å¡¼¥ë²½¤·¤Þ¤·¤¿¡£

  http://www.linux.or.jp/JF/JFdocs/packet-filtering-HOWTO-1.html
  http://tlec.linux.or.jp/docs/iptables.html

¤È¤³¤í¤¬¡¢iptables ´ØÏ¢¥â¥¸¥å¡¼¥ë¤Î insmod ¤Ç¤Ä¤Þ¤º¤¤¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£
°Ê²¼¤Ï¡¢¤½¤Î¥¨¥é¡¼¡¦¥á¥Ã¥»¡¼¥¸¤ÎÎã¤Ç¤¹¡£

# iptables -F --modprobe=/sbin/modprobe
/lib/modules/2.4.17-1/kernel/net/ipv4/netfilter/ip_tables.o: 
  init_module: Device or resource busy
/lib/modules/2.4.17-1/kernel/net/ipv4/netfilter/ip_tables.o: 
  insmod /lib/modules/2.4.17-1/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.17-1/kernel/net/ipv4/netfilter/ip_tables.o: 
  insmod ip_tables failed
iptables v1.2.2: can't initialize iptables table `filter': 
iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Hint: insmod errors can be caused by incorrect module parameters, 
including invalid IO or IRQ parameters

# insmod ip_conntrack
/lib/modules/2.4.17/kernel/net/ipv4/netfilter/ip_conntrack.o:
init_module: Device or resource busy

"Device or resource busy" ¤È¸À¤ï¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¶ñÂÎŪ¤Ë²¿¤ò¤É¤¦¤¹¤ì¤ÐÎÉ
¤¤¤Î¤«¤ï¤«¤é¤ºº¤¤Ã¤Æ¤ª¤ê¤Þ¤¹¡£¤Á¤Ê¤ß¤Ë¡¢¤³¤Î¤È¤­¤Î dmesg ¤ª¤è¤Ó lsmod 
¤Î·ë²Ì¤Ï°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹ (Ŭµ¹²þ¹Ô¤·¤Æ¤¤¤Þ¤¹)¡£

$ dmesg | grep irq
PIIX4: not 100% native mode: will probe irqs later
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
    host opts [0]: [ring] [pci + serial irq] [pci irq 11] 
                   [lat 168/176] [bus 0/1]
    ISA irqs (scanned) = 3,4,7,10,15 PCI status changes
eth0: NE2000 Compatible: io 0x300, irq 3, hw_addr 00:90:FE:0F:67:51
ttyLT00 at 0x1400 (irq = 11) is a Lucent Modem

$ /sbin/lsmod
Module                  Size  Used by    Tainted: P  
bsd_comp                3968   0 (autoclean)
ppp_async               5984   0 (autoclean)
lt_serial              20480   0 (autoclean)
lt_modem              314432   0 (autoclean) [lt_serial]
ppp_generic            16776   0 (autoclean) [bsd_comp ppp_async]
slhc                    4352   0 (autoclean) [ppp_generic]
pcnet_cs               12676   0 (autoclean) (unused)
8390                    5936   0 [pcnet_cs]
ds                      6688   1 [pcnet_cs]
i82365                 22288   1
pcmcia_core            41472   0 [pcnet_cs ds i82365]
nls_euc-jp              4048   2 (autoclean)
nls_cp932              76480   3 (autoclean)
vfat                    9276   2 (autoclean)
fat                    29080   0 (autoclean) [vfat]

´ØÏ¢¤¹¤ë¤È»×¤ï¤ì¤ë .config ¹àÌܤθ½¾õ¤Ï°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹¡£

# Loadable module support
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

# General setup
CONFIG_NET=y

# Networking options
CONFIG_PACKET=y
CONFIG_NETLINK_DEV=y
CONFIG_NETFILTER=y
CONFIG_NETFILTER_DEBUG=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_SYN_COOKIES=y

# IP: Netfilter Configuration
CONFIG_IP_NF_CONNTRACK=m
  :
 ¤³¤Î´Ö¤¹¤Ù¤Æ M
  :
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=m
  :
 ¤³¤Î´Ö¤¹¤Ù¤Æ M
  :
CONFIG_IP_NF_TARGET_TCPMSS=m
CONFIG_IP_NF_COMPAT_IPCHAINS=y
CONFIG_IP_NF_NAT_NEEDED=y

¡Ú´Ä¶­¡Û
OS: Plamo 2.2
    linux-2.4.17
    modutils-2.4.12
    util-linux-2.11n
    pppd-2.4.1
    pcmcia-cs-3.1.31
PC: IBM ThinkPad 240 (2609-21J)
¥â¥Ç¥à: Æ⢠lucent modem (driver: ltmodem-6.00b9)
NIC: Laneed LD-CDF (driver: pcmcia-cs pcnet_cs)

¼ñÌ£¥æ¡¼¥¶¤Î¥Í¥Ã¥È¥ï¡¼¥¯½é¿´¼Ô¤Ç¡¢²áµî¤Ë ipchains ¤ò»È¤Ã¤¿·Ð¸³¤â¤¢¤ê¤Þ
¤»¤ó¡£ADSL ƳÆþ¤òµ¡¤ËÊÙ¶¯¤·¤è¤¦¤È¤·¤Æ¤¤¤ë¤È¤³¤í¤Ç¤¹¡£¥¢¥É¥Ð¥¤¥¹¤ò¤¤¤¿
¤À¤±¤ë¤È´ò¤·¤¤¤Ç¤¹¡£¤è¤í¤·¤¯¤ª´ê¤¤¿½¤·¾å¤²¤Þ¤¹¡£

-- 
¤­¤É
KIDO Hideyuki <rp9h-kd@asahi-net.or.jp>

Follow-Ups
[plamo:12811] Re: insmod ip_tables failed (Ĺʸ), Áá´ÖµÁÇî

[¸¡º÷¥Ú¡¼¥¸] [¥á¡¼¥ë°ìÍ÷]
Plamo ML ¸ø³«¥·¥¹¥Æ¥à