Centroid.EU Blog

(this blog is mostly encrypted - adults only)
  

Previous Page


Sample IPv6 traceroute through Natally

December 7th, 2011

I have set it up so that Natally which is run on a Linux VPS tunnels for an OpenBSD client. Here is a demonstration:

# sh run        
opened tun0 for communications
# ifconfig tun0
tun0: flags=51 mtu 1500
        priority: 0
        groups: tun
        status: active
        inet6 fd00:1000::1 ->  prefixlen 64
# host www.v6.facebook.com
www.v6.facebook.com has IPv6 address 2620:0:1cfe:face:b00c::3
# route add -inet6 2620:0:1cfe:face:b00c::3 fd00:1000::2
add host 2620:0:1cfe:face:b00c::3: gateway fd00:1000::2
# traceroute6 www.v6.facebook.com
traceroute6 to www.v6.facebook.com (2620:0:1cfe:face:b00c::3) from 2001:a60:f074::30, 64 hops max, 12 byte packets
 1  * * *
 2  2a01:4f8:d13:6::1  20.055 ms  14.481 ms  11.987 ms
 3  2a01:4f8:0:d0:4:0:10:2  29.143 ms hos-tr2.juniper1.rz10.hetzner.de  20.25 ms 2a01:4f8:0:d0:3:0:10:2  26.594 ms
 4  hos-bb1.juniper4.ffm.hetzner.de  15.75 ms  15.841 ms  16.297 ms
 5  20gigabitethernet4-3.core1.fra1.he.net  17.108 ms  17.924 ms  18.068 ms
 6  10gigabitethernet5-3.core1.lon1.he.net  35.179 ms  40.085 ms  31.783 ms
 7  10gigabitethernet7-4.core1.nyc4.he.net  104.398 ms  104.567 ms  99.631 ms
 8  10gigabitethernet2-3.core1.ash1.he.net  103.884 ms  106.854 ms  103.058 ms
 9  2001:470:0:1bf::2  104.096 ms  104.525 ms  104.519 ms
10  ae2.bb01.iad1.tfbnw.net  104.524 ms  104.846 ms ae1.bb02.iad1.tfbnw.net  104.712 ms
11  ae14.bb01.sjc1.tfbnw.net  165.751 ms ae12.bb02.sjc1.tfbnw.net  165.193 ms  168.688 ms
12  ae2.pr01.sjc1.tfbnw.net  165.496 ms  165.883 ms ae0.pr01.sjc1.tfbnw.net  166.808 ms
13  * *^C
As you can see the first hop is through Hetzner Online (20 ms latency due to my DSL) which is my VPS provider. I still have ideas for Natally in v6 mode so stay tuned.

0 comments

mars is back

December 5th, 2011

Well I finally was able to put the SSD in mars. Here's a clip from the dmesg as that's all that's changed:

$ dmesg|grep wd0
wd0 at wdc0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 61057MB, 125045424 sectors
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
root on wd0a swap on wd0b dump on wd0b
The speed is pretty nice. I can upload to the box at 5MB/s and reading and writing files is somewhere between 15 and 18 MB/s. And the best thing about the G4 Cube is now that it's soooo purring quiet (minus the purring).

0 comments

Hacking on Natally again

November 29th, 2011

I'm back hacking on Natally. This time I want to put in routines for NAT for IPv6. Basically I want to give my network a ULA block and then use the IPv6's on my VPS which do a "redirect" back. All this because Hetzner Online doesn't allow extra "true" V6 /64's for VPS customers, we just get 1 which have to be bound on the external interface or we get no routing. So this is where natally comes in. I'm doing this too because I don't know how long the sixxs.net tunnel at my provider will last. I heard they have a pilot project to get native v6 already without tunnels so perhaps one day the tunnelling will cease and I might lose my v6 block. Also VDSL is rolled out but not at my provider so I may want to switch one day. We'll see.

0 comments

mars loses harddrive, new SSD ordered

November 25th, 2011

Mars died with a uncorrectable data error in the harddrive. I made backups from it and I'm going to build what this guy did: SSD in a powermac G4 Cube. It cost 147 euros for the card and the adapter and I hope it'll work out. The positive thing is that I can reuse the SSD if I don't like mars anymore.

0 comments

My C Primer hits 10,000 views

November 22nd, 2011

The C primer I wrote (with corrections from other guys) has hit 10,000 views. It's very popular on the Internet it seems. I thank you for the views if you visited it, and I hope you were not dissapointed. My goal is to make newbies able to write input and output of data with the C programming language. I don't know if I succeeded, but I got a thank you for this before.

0 comments

mars.centroid.eu dmesg

November 22nd, 2011

I've owned this computer 10 years now. When I bought it it ran OpenBSD 3.0 or so (back when there was still OpenBSD powerpc). In the meantime it loaded Mac OS X, ran for my parents and then it was mothballed... well I saved it didn't I.

[ using 490376 bytes of bsd ELF symbol table ]
console out [ATY,Rage128Pd]console in [keyboard] , no keyboard attached, trying 
usb anyway
: memaddr 94000000 size 4000000, : consaddr 96008000, : ioaddr 90020000, size 20
000: memtag 8000, iotag 8000: width 640 linebytes 768 height 480 depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2011 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.0 (GENERIC) #69: Wed Aug 17 10:17:02 MDT 2011
    deraadt@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 805306368 (768MB)
avail mem = 768524288 (732MB)
mainbus0 at root: model PowerMac5,1
cpu0 at mainbus0: 7400 (Revision 0x209): 450 MHz: 1MB backside cache
mem0 at mainbus0
spdmem0 at mem0: 256MB SDRAM non-parity PC133CL2
spdmem1 at mem0: 256MB SDRAM non-parity PC133CL2
spdmem2 at mem0: 256MB SDRAM non-parity PC133CL2
memc0 at mainbus0: uni-n
kiic0 at memc0 offset 0xf8001000
iic0 at kiic0
mpcpcibr0 at mainbus0 pci: uni-north, Revision 0xff
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 "Apple Uni-N AGP" rev 0x00
vgafb0 at pci0 dev 16 function 0 "ATI Rage Fury" rev 0x00, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
mpcpcibr1 at mainbus0 pci: uni-north, Revision 0x16
pci1 at mpcpcibr1 bus 0
pchb1 at pci1 dev 11 function 0 "Apple Uni-N" rev 0x00
macobio0 at pci1 dev 23 function 0 "Apple Keylargo" rev 0x03
openpic0 at macobio0 offset 0x40000: version 0x4614 little endian
macgpio0 at macobio0 offset 0x50
macgpio1 at macgpio0 irq 47
pgs0 at macgpio0: irq 55
"i2s" at macobio0 offset 0x10000 not configured
"escc-legacy" at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 22,50
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
"timer" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000 irq 25: via-pmu, 0 targets
apm0 at adb0: battery flags 0x9, 0% charged
kiic1 at macobio0 offset 0x18000
iic1 at kiic1
wdc0 at macobio0 offset 0x1f000 irq 19: DMA
wd0 at wdc0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 19623MB, 40188960 sectors
atapiscsi0 at wdc0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  ATAPI 5/cdrom re
movable
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
cd0(wdc0:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
wdc1 at macobio0 offset 0x20000 irq 20: DMA
wdc2 at macobio0 offset 0x21000 irq 21: DMA
ohci0 at pci1 dev 24 function 0 "Apple USB" rev 0x00: irq 27, version 1.0
ohci1 at pci1 dev 25 function 0 "Apple USB" rev 0x00: irq 28, version 1.0
"TI TSB12LV26 FireWire" rev 0x00 at pci1 dev 26 function 0 not configured
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "Apple OHCI root hub" rev 1.00/1.00 addr 1
usb1 at ohci1: USB revision 1.0
uhub1 at usb1 "Apple OHCI root hub" rev 1.00/1.00 addr 1
mpcpcibr2 at mainbus0 pci: uni-north, Revision 0x16
pci2 at mpcpcibr2 bus 0
pchb2 at pci2 dev 11 function 0 "Apple Uni-N Eth" rev 0x00
gem0 at pci2 dev 15 function 0 "Apple Uni-N GMAC" rev 0x01: irq 41, address 00:3
0:65:a1:ec:a6
lxtphy0 at gem0 phy 0: LXT971 10/100 PHY, rev. 1
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
bootpath: /pci@f2000000/mac-io@17/ata-4@1f000/disk@0:/bsd
root on wd0a swap on wd0b dump on wd0b

0 comments

Netbooting OpenBSD/macppc

November 21st, 2011

I activated mars.centroid.eu (not on IPv6 yet). It took me a while to boot the kernel on it because it has a broken cdrom, and my external CDROM was not detected on it. So I had to netboot it. The experience I'd like to document.

In /etc/dhcpd.conf-em5:

subnet 172.16.2.0 netmask 255.255.255.0 {
        option routers 172.16.2.1;

        range 172.16.2.240 172.16.2.254;

        host mars {
                hardware ethernet 00:30:65:a1:ec:a6;
                fixed-address 172.16.2.2;

                filename "ofwboot";
                next-server 172.16.2.1;
                option root-path "/tftpboot";
        }

}

In /etc/inetd.conf:

172.16.2.1:tftp         dgram   udp     wait    root    /usr/libexec/tftpd      
tftpd -s /tftpboot

In /etc/exports:

/tftpboot       172.16.2.2

And then of course turn on portmap, nfsd, and mountd. kill -HUP inetd and start dhcpd on em5. That did not boot it automatically but when you do a set image bsd.rd in ofwboot on the macppc machine and then boot it should boot into the kernel.

The boot command is: boot enet:,ofwboot /bsd.rd ... It will first look up DHCP get the IP and then download ofwboot from the TFTP server, it will then NFS mount /tftpboot and download the kernel bsd.rd from there, from then on it'll boot normally into the install disk.

0 comments

Profiling DNS answers

November 19th, 2011

Out of boredom I dumped the answers of A RR's for centroid.eu from my 3 different nameservers in production for that zone. I made pictures too.

In conclusion:

  • BIND answers with the most data, it compresses the first answer with C00C (compressed from the question).
  • NSD3 answers with intermediate data, it doesn't compress the first name in the answer section and is thus identifiable
  • Wildcarddnsd serves as little answers as possible (this could change), and it compresses the first name in the answer section (compressed from the question)
Have a nice day!

0 comments

chroot script for Bind 9.8.1-P1 and FreeBSD 7.4-STABLE

November 17th, 2011

I noticed that the install process on FreeBSD is different than the Makefile provided with BIND 9.8.1-P1. So I made a script that you execute inside the build directory of bind 9.8.1-P1. Make sure you only run this there, never run this on / it will delete stuff out of the system!

#!/bin/sh

rm -rf usr/include/isccc
rm -rf usr/include/dns
rm -rf usr/include/dst
rm -rf usr/include/isccfg
rm -rf usr/include/bind9
rm -rf usr/include/lwres
rm -rf usr/share/man/man5
rm -rf usr/share/man/man8
rm -rf usr/share/man/man1

mkdir -p usr/local/sbin
mkdir -p usr/bin
mkdir -p usr/sbin
mkdir -p usr/lib
mkdir -p usr/libexec
mkdir -p usr/share/mk
mkdir -p libexec
mkdir -p lib
mkdir -p usr/include/isc
mkdir -p usr/local/share/man/man3
mkdir -p usr/share/man/man3
mkdir -p usr/share/man/man8

cp /usr/bin/make usr/bin/make
cp /usr/share/mk/* usr/share/mk/
cp /bin/sh bin/
cp /libexec/ld-elf.so.1 libexec
cp /libexec/ld-elf.so.1.old libexec
cp /libexec/ld-elf32.so.1 libexec
cp /libexec/ld-elf32.so.1.old libexec

cp /lib/libedit.so.6 lib
cp /lib/libncurses.so.7 lib
cp /lib/libncursesw.so.7 lib
cp /lib/libc.so.7 lib

cp /usr/bin/install usr/bin/
cp /bin/rm bin/
cp /bin/ln bin/
cp /usr/bin/sed usr/bin/
cp /bin/mkdir bin/

chroot `pwd` make install

Be sure to look this script over before you run it. It will install most bind9 stuff under the "usr" directory which isn't existing in the bind9 directory. Cheers!

0 comments

Donated 25 euros to Wikipedia

November 15th, 2011

Donation time is coming around again and I'm making more money as I have a job this year so I thought I'd spend a little more. Here is a comment I was able to put up for my money.

Thinking of donating to a few other projects now that I'm at it.

0 comments

Next Page

Search

RSS Feed

Click here for RSS

On this day in

Other links

Have feedback?

By clicking on the header of an article you will be served a cookie. If you do not agree to this do not click on the header. Thanks!

Using a text-based webbrowser?

... such as lynx? Welcome back it's working again for the time being.

Older Blog Entries


Powered by BCHS