Archive for the 'Admin' Category

Mozilla X.509 certificates from the command line

Problem: You administer office PCs and have to deploy your organization’s new CA certificate. Since you know your users, telling them individually to download and install it is not an option. You need an automatic solution for unattended installation.

Read the rest of this entry »

reliable TCP reconnect made easy

When I came to work on Syslog one of the most disturbing texts I came across was Rainer’s observation “On the (un)reliability of plain tcp syslog…“. The problem is that a sendmsg() system call is nearly always successful — it only indicates local errors (like a full send queue), but no network errors. So even after the other side initiated a connection shutdown one can happily write into the local buffer and only get an error on the second write.

Read the rest of this entry »

Use syslog-sign with changing structured data elements

The structured data (SD) in syslog-protocol offers some interesting possibilities when it comes to modifying a message in transit. What would be necessary to enable rewriting in transit while still be able to authenticate by syslog-sign?

Read the rest of this entry »

Google Summer of Code

NetBSD Logo

Today the participants in Google’s Summer of Code 2008 were announced. – And my project was chosen. :-)

So now I will work for NetBSD and implement the new IETF syslog protocols.

“Reliable UDP”

Skimming through last year’s Informatik Spektrum I found an interesting master thesis by Steffen Tambach (german) examining the reliability of UDP transport. The analysis showed that no data was lost on the Fast Ethernet, but all lost packets were dropped by the receiver sowewhere on the network stack between NIC and socket API.

The following recommendations are given to prevent UDP package loss in a local network (besides the obvious ‘have enough bandwidth for your data’ and ‘be able to store/process it fast enough’):

  • use IEEE 803.3x flow control
  • ban network devices without IEEE 803.3x support (and old 10 Mbps hubs/repeaters)
  • use NICs that support device polling or interrupt coalescence (to prevent interrupt-livelocks)
  • increase the socket’s receive buffer size

Thoughts on reliable syslog

One of the most important issues in a logging system (i.e. syslog) is reliability. But sometimes I get the impression most people asking for reliability do not really want it. IMO a reliability requirement has to be tested against the following extreme case: suppose the logging system fails and you enter a command — should the command be executed although it cannot be logged? If the answer is “Yes” then you do not really want reliable logging (at least for the command you thought about).

I admit that this constructs a dichotomy that might not be necessary. But so far I have not heard of some “weak” or “semi-reliability”, thus the binary distinction only reflects the state of discourse on the subject. I also admit that most related real-life problems were solved if the syslog-world would eventually throw out UDP in favor of TCP or TLS. So this whole reasoning is not about pressing needs but rather abstract and mainly a response to people claiming “just implement a rate-limit, then everything is solved”.

Read the rest of this entry »

Firefox und x509-Authentifizierung

Nach dem Update auf Firefox 2.0.0.13 wurde meine Toleranz für Passwort-Bestätigungs-Dialoge eindeutig überschritten. Verantwortlich dafür ist die geänderte default-Einstellung, dass vor einer Authentifizierung per x509-Zertifikat stets ein Bestätigungs-Dialog erscheint.

Read the rest of this entry »

BSI-Überblick zu Logdaten

Ich habe diese Tage erst gesehen, dass das BSI im Dezember eine Studie zur Verarbeitung von Log- und Monitoringdaten [Link aktualisiert, 12.8.09] veröffentlicht hat. Der Text ist geeignet um sich in das Thema einzulesen; es werden einige grundlegende Probleme erläutert und verbreitete Produkte kurz vorgestellt. Allerdings liegt der Fokus nicht allein auf Open-Source-Lösungen; es geht um heterogene Daten und (auch) um “die großen” Monitoringprogramme OpenView und Tivoli, die für mich bisher kein Thema waren.

Für alle, die eher im Bereich “ein paar Unix-Server” denken verlinke ich hier auch meine Folien über Syslog (pdf) vom CLT 2007. ;-)