From owner-freebsd-questions@FreeBSD.ORG Mon Apr 4 15:59:03 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D6821065673 for ; Mon, 4 Apr 2011 15:59:03 +0000 (UTC) (envelope-from seb@geekycode.net) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 14DA78FC0A for ; Mon, 4 Apr 2011 15:59:02 +0000 (UTC) Received: by gwb15 with SMTP id 15so2619366gwb.13 for ; Mon, 04 Apr 2011 08:59:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.168.2 with SMTP id u2mr91822icy.389.1301930930726; Mon, 04 Apr 2011 08:28:50 -0700 (PDT) Received: by 10.231.144.15 with HTTP; Mon, 4 Apr 2011 08:28:50 -0700 (PDT) X-Originating-IP: [203.122.218.242] Date: Tue, 5 Apr 2011 00:58:50 +0930 Message-ID: From: Sebastian Ramadan To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ipdivert.ko X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2011 15:59:03 -0000 I wish to cause ipdivert.ko to load at boot time. Currently, ipfw.ko loads correctly at boot time with ipfw_load="YES" in /boot/loader.conf, but ipdivert.ko does not load at boot time with ipdivert_load="YES". I'm able to load it using kldload, though. dmesg doesn't seem to be giving any clues as to why ipdivert won't load... What am I doing wrong? Regards, Sebastian Ramadan. My uname -a, /boot/loader.conf, kldstat and a successful load of ipdivert using kldload after boot time: domU-12-31-39-02-15-3A# uname -a FreeBSD domU-12-31-39-02-15-3A 8.2-RELEASE FreeBSD 8.2-RELEASE #13: Mon Feb 21 20:13:46 UTC 2011 root@chch.daemonology.net:/usr/obj/i386/usr/src/sys/XEN i386 domU-12-31-39-02-15-3A# cat /boot/loader.conf ipfw_load="YES" ipdivert_load="YES" domU-12-31-39-02-15-3A# kldstat Id Refs Address Size Name 1 8 0xc0000000 40000000 kernel 2 1 0xc2bb3000 10000 ext2fs.ko 3 1 0xc2d1f000 11000 ipfw.ko 4 1 0xc2d30000 d000 libalias.ko domU-12-31-39-02-15-3A# uname -a FreeBSD domU-12-31-39-02-15-3A 8.2-RELEASE FreeBSD 8.2-RELEASE #13: Mon Feb 21 20:13:46 UTC 2011 root@chch.daemonology.net:/usr/obj/i386/usr/src/sys/XEN i386 domU-12-31-39-02-15-3A# kldload ipdivert domU-12-31-39-02-15-3A# kldstat Id Refs Address Size Name 1 10 0xc0000000 40000000 kernel 2 1 0xc2bb3000 10000 ext2fs.ko 3 2 0xc2d1f000 11000 ipfw.ko 4 1 0xc2d30000 d000 libalias.ko 5 1 0xc3cc7000 4000 ipdivert.ko My dmesg: domU-12-31-39-02-15-3A# dmesg Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.2-RELEASE #13: Mon Feb 21 20:13:46 UTC 2011 root@chch.daemonology.net:/usr/obj/i386/usr/src/sys/XEN i386 Xen reported: 2599.998 MHz processor. Timecounter "ixen" frequency 1953125 Hz quality 0 CPU: Dual-Core AMD Opteron(tm) Processor 2218 HE (2600.00-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x40f13 Family = f Model = 41 Stepping = 3 Features=0x1783fbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1f Data TLB: 32 entries, fully associative Instruction TLB: 32 entries, fully associative L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative L2 internal cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative real memory = 644874240 (615 MB) Physical memory chunk(s): 0x000000000062a000 - 0x0000000025b4dfff, 626147328 bytes (152868 pages) avail memory = 623058944 (594 MB) APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) Event-channel device installed. io: mem: Pentium Pro MTRR support enabled random: null: nfslock: pseudo-device [XEN] xen_rtc_probe: probing Hypervisor RTC clock rtc0: on motherboard [XEN] xen_rtc_attach: attaching Hypervisor RTC clock rtc0: registered as a time-of-day clock (resolution 1000000us) xs_probe: Probe retuns 0 xenstore0: on motherboard Grant table initialized xc0: on motherboard Device configuration finished. procfs registered Timecounters tick every 10.000 msec [XEN] hypervisor wallclock nudged; nudging TOD. lo0: bpf attached xenbusb_front0: on xenstore0 xn0: at device/vif/0 on xenbusb_front0 xn0: bpf attached xn0: Ethernet address: 12:31:39:02:15:3a xenbusb_back0: on xenstore0 xctrl0: on xenstore0 xbd0: 1024MB at device/vbd/2049 on xenbusb_front0 xbd0: attaching as da0 GEOM: new disk da0 xbd1: 9216MB at device/vbd/2064 on xenbusb_front0 xbd1: attaching as da1 GEOM: new disk da1 Trying to mount root from ufs:da1s1 rtc0: [XEN] xen_rtc_gettime rtc0: [XEN] xen_rtc_gettime: wallclock 1290456569 sec; 919153165 nsec rtc0: [XEN] xen_rtc_gettime: uptime 11380100 sec; 82341069 nsec rtc0: [XEN] xen_rtc_gettime: TOD 1301836670 sec; 1494234 nsec start_init: trying /sbin/init ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to deny, logging disabled ipfw0: bpf attached