<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rdf:RDF
[
<!ENTITY % HTMLlat1 PUBLIC
 "-//W3C//ENTITIES Latin 1 for XHTML//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
]>
<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:admin="http://webns.net/mvcb/">
<channel rdf:about="http://blog.cihar.com">
<title>Configs</title>
<link>http://blog.cihar.com/archives/configs/</link>
<description>Random thoughts about everything…</description>
<dc:language>en-us</dc:language>
<dc:creator>Michal Čihař</dc:creator>
<dc:date>2008-10-22T16:19:21+02:00</dc:date>
<admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://blog.cihar.com/archives/2006/07/28/munin_and_openwrt/" />
<rdf:li rdf:resource="http://blog.cihar.com/archives/2006/05/29/gnupg_path_grabbing/" />
<rdf:li rdf:resource="http://blog.cihar.com/archives/2006/05/11/dns_blacklists_in_exim/" />
</rdf:Seq>
</items>
</channel>
<item rdf:about="http://blog.cihar.com/archives/2006/07/28/munin_and_openwrt/">
<link>http://blog.cihar.com/archives/2006/07/28/munin_and_openwrt/</link>
<title>Munin and OpenWrt</title>
<dc:date>2006-07-28T11:15:23+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>Linux, Configs</dc:subject>
<description>
<![CDATA[<p>Last thing which was missing was to add new router to monitoring using
Munin which I use for this purpose. The only reasonable way seemed to be
SNMP so I installed it to OpenWrt.</p>

<p>And the rest was incredibly simple! Just add snmp host to <code>munin.conf</code>:</p>

<pre><code>[openwrt.lan]
    address localhost
</code></pre>

<p>And run SNMP discovery on monitoring host (the one which runs
munin-node):</p>

<pre><code>munin-node-configure-snmp openwrt.lan | sh
</code></pre>

<p>It automatically creates symlinks for everything it detects (network
interfaces, load, disk space and users) and only remaining thing is to
restart munin-node.</p>]]>
</description>
</item>
<item rdf:about="http://blog.cihar.com/archives/2006/05/29/gnupg_path_grabbing/">
<link>http://blog.cihar.com/archives/2006/05/29/gnupg_path_grabbing/</link>
<title>GnuPG path grabbing</title>
<dc:date>2006-05-29T22:12:54+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>Configs, Coding</dc:subject>
<description>
<![CDATA[<p>Many times I needed "intelligent" way to grab key path from my key (and
others I somehow trust for signing purposes) to other random key that
gets to me.</p>

<p>Receiving keys for all signatures is quite expensive operation and you
soon end with most of PGP keys on the world in your database. The best
seems to fetch only needed keys. You can find path using <a href="http://www.cs.uu.nl/people/henkp/henkp/pgp/pathfinder/">PGP pathfinder
&amp; key statistics</a> by Henk P. Penning. It's extremely useful site,
where you can find many information about PGP keys.</p>

<p>So the logical step seems to be to write down script which will grab
needed keys:</p>

<pre><code>#!/bin/sh

if [ "$#" -lt 1 -o "$#" -gt 2 ] ; then
    echo usage `basename $0` ID [gpgparam]
    exit 1
fi

url=http://www.cs.uu.nl/people/henkp/henkp/pgp/pathfinder/mk_path.cgi

(
links -dump "$url?FROM=36E75604&amp;TO=$1"
links -dump "$url?FROM=B3B2A12C&amp;TO=$1"
links -dump "$url?FROM=65D0FD58&amp;TO=$1"
) | grep -o '[0-9A-F]\{8\}'  | sort -u | xargs gpg --recv-keys --no-auto-check-trustdb $2

gpg --check-trustdb $2
</code></pre>

<p>And special bonus for Sylpheed-Claws users. Here is action to call above
script:</p>

<pre><code>ID=`gpg --verify %p /dev/null 2&gt;&amp;1 | \
grep "key ID" | tr -d "[:space:]" | \
tail -c8`;echo "==== Fetching $ID ===="; \
~/bin/gpg_get_path $ID --no-tty
</code></pre>]]>
</description>
</item>
<item rdf:about="http://blog.cihar.com/archives/2006/05/11/dns_blacklists_in_exim/">
<link>http://blog.cihar.com/archives/2006/05/11/dns_blacklists_in_exim/</link>
<title>DNS blacklists in Exim</title>
<dc:date>2006-05-11T23:22:50+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>Configs, Debian</dc:subject>
<description>
<![CDATA[<p>Well I expected this would be more complicated than defining DNS
blacklist servers list. Hower thanks to great defaults, all you need is
to put list into user defines (separate file which is included early like
<code>/etc/exim4/conf.d/main/000_localdefs</code> should be best place):</p>

<pre><code>CHECK_RCPT_DOMAIN_DNSBLS = dnsbl.njabl.org : \
                            bl.spamcop.net : \
                            blackholes.five-ten-sg.com : \
                            cbl.abuseat.org : \
                            smtp.dnsbl.sorbs.net : \
                            spam.dnsbl.sorbs.net : \
                            zombie.dnsbl.sorbs.net : \
                            web.dnsbl.sorbs.net : \
                            rhsbl.sorbs.net : \
                            sbl-xbl.spamhaus.org : \
                            psbl.surriel.com : \
                            list.dsbl.org
</code></pre>]]>
</description>
</item>
</rdf:RDF>
