dnsmasq: stop dns-rebind attacks

Sven Bachmann
Hi, in this years Black Hat conference, Craig Heffner will show an attack against many home routers which is based on DNS rebinding. This article shows you, how to disable it on dnsmasq. DNS rebinding is based on the following scheme (thanks to Mitternachtshacking - article in german): Webbrowser loads page with flash from server www.mydomain.com DNS for www.mydomain.com is: 212.18.45.xx with TTL=1 Webbroswer loads xmlsocket-policy from server www.

Lucid Lynx Suspend Problems with Radeon Driver

Sven Bachmann
Since updating to Lucid, a Dell Inspiron 1501 with an Radeon Xpress 200M video card had become problems after going into suspend mode. After waking up it was not possible to reactivate the screen. It stays black and the only possibility was to power off. But with the help of Google, I stumpled upon to sites (Launchpad and ubuntu-bugs@lists.ubuntu.com) which gave two kernel options: radeon.modeset=0 pci=nomsi This will disable the kernel mode settings and message signaled interrupts.

Syntax Highlighting in HTML mit VIM

Sven Bachmann
Hin und wieder möchte ich ein Stück Quellcode online stellen und dies nach Möglichkeit auch mit Syntax Highlighting. Unter Wordpress gibt es dafür Plugins, jedoch für meine normale Website hatte ich dafür noch kein PHP Tool und so machte ich mich auf die Suche nach statischen Renderern, obwohl die Lösung zum Greifen nah lag.Mein bevorzugter Editor VIM besitzt selbst ja ein sehr gut funktionierendes Syntax Highlighting - also müsste man dieses jetzt noch in HTML-Form bringen.

make: just a remark for filter-out

Sven Bachmann
In Makefiles there is a nice command, called filter-out. This command takes 2 Arguments: first, the needle you want to filter out, second the haystack where it is in. This was exactly what I needed. But everytime I tried it, it returned an empty string. The solution was too easy… make doesn’t complain if you write it with an underscore instead of a hyphen - and in makepp its written with a dash, so you will also get good looking Google results :-)

JavaScript: numbers with decimal (thousand) separator

Sven Bachmann
Today, I needed a JavaScript function that converts a number like 1234567 to something more beautiful like 1.234.567. And because I didn’t need to take notice of locale settings (like using a comma instead of a dot) most solutions on the web where just too much for me and I decided to write my own.Mainly its a 3-liner, but packed in a function it becomes a little more. Feel free to use it for your own:

myrescue: Abbild von defektem Datenträger erstellen

Sven Bachmann
Egal ob Diskette, CD oder Festplatte. Kein Datenträger ist vor einem Defekt geschützt - doch wie geht man vor sobald dieser auftritt? Hier stelle ich eine Möglichkeit vor, welche ausreichend Platz vorausgesetzt - zumindest das meiste noch lesbare aus einem Datenträger “herausholt”. Das Ganze erfordert ein wenig Linux Kenntnisse (also notfalls diesen Artikel speichern und jemandem geben der damit Erfahrung hat). .notice{padding:18px;line-height:24px;margin-bottom:24px;border-radius:4px;color:#444;background:#e7f2fa}.notice p:last-child{margin-bottom:0}.notice-title{margin:-18px -18px 12px;padding:4px 18px;border-radius:4px 4px 0 0;font-weight:700;color:#fff;background:#6ab0de}.notice.warning .notice-title{background:rgba(217,83,79,.9)}.notice.warning{background:#fae2e2}.notice.info .

PC: Core 2 Duo E7500, MSI G41M4-F, GeForce GT 220, 4096MB RAM

Sven Bachmann
Von Zeit zu Zeit wünschen sich Verwandte und Bekannte einen neuen PC. Da dies immer mit etwas Zeitaufwand zum Suchen der passenden Komponenten verbunden ist, möchte ich hier eine neue Kategorie einführen um interessierten Lesern fertige Zusammenstellungen zu präsentieren bzw. deren Probleme aufzudecken. Die erste Vorstellung ist diesmal ein Intel Core 2 Duo mit 2x 2.93GHz. Die Zusammenstellung lautet wie folgt (ohne Gehäuse, Festplatte & optischem Laufwerk): CPU: Intel Core 2 Duo E7500, 2x 2.

Lob: Western Digital Support

Sven Bachmann
Vor rund einem Monat hat das Netzteil meiner WD Elements (1TB) den Geist aufgegeben. Da ich zum Glück noch von einer anderen Platte ein Netzteil “rumliegen” hatte, konnte ich ausschließen, dass die Platte selbst einen Defekt hat. Da die Platte noch in der Garantie lag, wandte ich mich an den Support. Hier meine Erfahrung: Nach kurzer Problemschilderung via Webformular meldete sich ein netter Herr bei mir, hat das Problem auch gleich verstanden und noch kurz Rücksprache gehalten, was es für ein Netzteil-Typ ist (1-Pin oder 5-Pin).

In Brief: Linux 2.6.32 - KSM and KVM

Sven Bachmann
Can you imagine to have 52 Windows XP virtual machines - 1GB RAM each - running on a server with just 16GB? Ok, sounds a lot… but we are near the 16GB barrier. Anyway, this is one of the features in the new 2.6.32 release. Its called Kernel Samepage Merging, KSM. The approach is you start more than one VM and tell the kernel that they probably will use identically memory segments.