Latest posts.

Solaris desktop

From yesterday I am using Solaris 10 on my laptop. I’ve removed Windows and FreeBSD. Works like a charm (except sound), includes StarOffice, I’ve installed Firefox, Thunderbird and OpenOffice. No problems so far. CDE with DarkGold color theme is my favourite for almost eight years, since I’ve installed Solaris 1.0beta on a SUN Workstation.

uname -a output:

SunOS laptop 5.10 Generic_118844-20 i86pc i386 i86pc

ip_conntrack

Learned the hard way: NEVER COMPILE ip_conntrack into the Linux kernel… 🙂

PowerDNS recursor problems

It seems that PowerDNS‘s pdns_recursor crashes on FreeBSD under load.

I’ve replaced it by a bind recursor. Excerpt from named.conf:


options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";

listen-on port XXXX { 127.0.0.1; };
};

zone "." {
type hint;
file "named.root";
};

FreeBSD 6.0 on old hardware

I have installed FreeBSD 6.0 on some old computer, seems to work very fast! I have rebuild world and kernel.

dmesg:

Copyright (c) 1992-2005 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 6.0-RELEASE #0: Sun Nov 6 00:13:58 EET 2005
root@XXXX:/usr/obj/usr/src/sys/XXXX
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (350.80-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x652 Stepping = 2
Features=0x183f9ff
real memory = 201261056 (191 MB)
avail memory = 191619072 (182 MB)
ACPI disabled by blacklist. Contact your BIOS vendor.
npx0: [FAST]
npx0:

on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: pcibus 0 on motherboard
pir0: on motherboard
pci0:
on pcib0
agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0
pcib1: at device 1.0 on pci0
pci1:
on pcib1
pci1: at device 0.0 (no driver attached)
isab0: at device 7.0 on pci0
isa0: on isab0
atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x9080-0x908f at device 7.1 on pci0
ata0: on atapci0
ata1:
on atapci0
uhci0: port 0x9040-0x905f irq 11 at device 7.2 on pci0
uhci0: [GIANT-LOCKED]
usb0:
on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: at device 7.3 (no driver attached)
fxp0: port 0x9000-0x901f mem 0x82300000-0x82300fff,0x82100000-0x821fffff irq 3 at device 16.0 on pci0
miibus0: on fxp0
inphy0: on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:00:e2:13:39:e0
rl0: port 0x7000-0x70ff mem 0x80100000-0x801000ff irq 10 at device 18.0 on pci0
miibus1: on rl0
rlphy0: on miibus1
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:0e:2e:56:b7:83
pmtimer0 on isa0
orm0: at iomem 0xc0000-0xc7fff on isa0
atkbdc0: at port 0x60,0x64 on isa0
atkbd0: irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0:
on ppc0
sc0: at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: can't assign resources (memory)
unknown: can't assign resources (port)
unknown: can't assign resources (port)
unknown: can't assign resources (irq)
unknown: can't assign resources (port)
unknown: can't assign resources (port)
unknown: can't assign resources (port)
Timecounter "TSC" frequency 350797222 Hz quality 800
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding enabled, default to accept, logging limited to 1 packets/entry by default
ad0: 6179MB at ata0-master UDMA33
acd0: CDROM at ata1-master PIO4
Trying to mount root from ufs:/dev/ad0s1a

PowerDNS recursor problems

It seems that pdns_recursor from 2.9.19 dies under light load on FreeBSD.

Opensource PDC

The fourth opensource PDC (Primary Domain Controller) using samba, with a openldap backend for storing users, groups and computers. It can replace a Microsoft Windows Domain Controller.

Provides central authentication services, file and printer sharing for Windows and Unix clients. Local logon credentials are taken from LDAP, too.

Tested on fedora core 4 and slackware 10.2.

Asus WL-500g

Just got two Asus WL-500g!

dmesg:

CPU revision is: 00024000
Enabling BCM4710A0 cache workarounds.
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 4kB, 2-way, linesize 16 bytes.
Linux version 2.4.30 (wbx@ux-2y01) (gcc version 3.4.4) #1 Wed Sep 14 17:49:26 CEST 2005
Setting the PFC value as 0x15
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
CPU: BCM4710 rev 0 at 125 MHz
Using 62.400 MHz high precision timer.
!unable to setup serial console!
Calibrating delay loop... 82.94 BogoMIPS
Memory: 14296k/16384k available (1390k kernel code, 2088k reserved, 100k data, 80k init, 0k highmem)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Checking for 'wait' instruction... unavailable.
POSIX conformance testing by UNIFIX
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Setting latency timer of device 01:00.0 to 64
PCI: Fixing up bus 1
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch ([email protected])
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
Squashfs 2.1-r2 (released 2004/12/15) (C) 2002-2004 Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
Software Watchdog Timer: 0.05, timer margin: 60 sec
Amd/Fujitsu Extended Query Table v1.1 at 0x0040
Physically mapped flash: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x400000 at 0x1fc00000
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "pmon"
0x00040000-0x003f0000 : "linux"
0x000ba4b0-0x001c0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x003f0000-0x00400000 : "nvram"
0x001c0000-0x003f0000 : "OpenWrt"
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
ip_conntrack version 2.1 (5953 buckets, 5953 max) - 320 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
802.1Q VLAN Support v1.8 Ben Greear
All bugs added by David S. Miller
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 80k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
diag boardtype: 0000041a
jffs2.bbc: SIZE compression mode activated.
PCI: Setting latency timer of device 00:02.0 to 64
eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.23.0
PCI: Setting latency timer of device 00:08.0 to 64
eth1: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.23.0
PCI: Setting latency timer of device 01:02.0 to 64
PCI: Enabling device 01:02.0 (0004 -> 0006)
eth2: Broadcom BCM4320 802.11 Wireless Controller 3.90.37.0
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
device eth0 entered promiscuous mode

eth0 – LAN
eth1 – WAN
eth2 – WLAN

New DNS server up

New production DNS server is up since Saturday night.

It runs PowerDNS with a MySQL 4.1 backend on FreeBSD 5.4. Complete with web (SSL) administration and statistics.

So far:

Uptime: 18 hours Queries/second, 1, 5, 10 minute averages: 6.4, 5.12, 5.15. Max queries/second: 40.1
Cache hitrate, 1, 5, 10 minute averages: 24%, 22%, 20%
Backend query cache hitrate, 1, 5, 10 minute averages: 63%, 62%, 62%
Backend query load, 1, 5, 10 minute averages: 10, 8.2, 8.59. Max queries/second: 26.7
Total queries: 313999. Question/answer latency: 0.678ms

Bad news on Linksys WRT54g v5

WRT54gG v5 does not work with custom firmares! 🙁

I think this is a bad move from Linksys/Cisco as most of the pieces sold were used with custom firware.
Need to use other wireless routers, such as Asus, Netgear.

Some alternatives in my wiki.

FreeBSD / D-Link IPSEC problems

No luck in IPSEC between a FreeBSD 5.4 (racoon) and a D-Link DI-804HV 🙁

Tried manual and IKE, SAs up but no traffic through the gif device. Perhaps D-Link could add more troubleshooting functions into their firmware (e.g. show routing table, SAs, disable NAT, routes through PPTP or L2TP tunnels).