<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Martin Wolf&#039;s weblog &#187; linux</title>
	<atom:link href="http://mwolf.net/archive/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://mwolf.net</link>
	<description>Software development and assorted geekery</description>
	<lastBuildDate>Sun, 08 Aug 2010 18:15:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FritzBox!</title>
		<link>http://mwolf.net/archive/fritzbox-rocks/</link>
		<comments>http://mwolf.net/archive/fritzbox-rocks/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 20:30:41 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[cool-tool]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[automatic update]]></category>
		<category><![CDATA[fritzbox]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[speedtouch]]></category>
		<category><![CDATA[voip]]></category>
		<category><![CDATA[xs4all]]></category>

		<guid isPermaLink="false">http://mwolf.net/?p=71</guid>
		<description><![CDATA[The AVM FritzBox is really cool and it certainly beats the hell out of my Thompson Speedtouch. But what about that suspicous "permit [remote] automatic updates" option which I am not allowed to disable?]]></description>
			<content:encoded><![CDATA[<p>Wow!</p>
<p>I received my <a href="http://www.fritzbox.eu/en/index.php">FritzBox</a> 7170 today, as a present from XS4ALL for renewing my ADSL subscription for another year (cheap deal &#8212; I would have done that anyway). And it totally blows away my Thompson Speedtouch!</p>
<p><span id="more-71"></span></p>
<p>As regular readers of this blog may remember, the Speedtouch doesn&#8217;t properly support the &#8220;exposed host&#8221; feature, whereby all incoming traffic on any port is redirected to a single machine on the internal network, in combination with Voice Over IP. I eventually came up with a <a href="http://mwolf.net/archive/voip-on-speedtouch/">really crappy workaround</a> for that, but it never really worked nicely. Also, I never quite managed to explain to the Speedtouch that when a machine on the internal network tried to access 82.95.250.5, it should be sent to the internal address of my server, rather than get stuck in a loop trying to forward traffic to itself.</p>
<p>Well, the FritzBox didn&#8217;t have either of these problems. Port forwarding was just a few mouse-clicks away, and configuring VOIP in combination with that was trivially easy. Despite the fact that the router seems to have much more options than my Speedtouch (in &#8216;Expert mode&#8217;, at least), it is much easier to configure thanks to the well-organized menu structure.</p>
<p>So now I have it setup exactly the way I want it: all external traffic gets forwarder to my Linux server at 10.0.0.1, VOIP is handled by the FritzBox (I can even connect my ISDN modem to it!) and when a machine on the WLAN wants to access mwolf.net, it gets sent to 10.0.0.1 as it should. I couldn&#8217;t be happier.</p>
<p>Except.. There is one setting in the menu which worries me a bit. On the &#8220;Provider Services&#8221; tab of the &#8220;Network&#8221; menu, there is an option called &#8220;Permit automatic updates&#8221; which apparently allows my service provider to change the device&#8217;s settings without having to ask my permission. This setting is enabled and the checkbox is greyed-out so that I cannot disable it:</p>
<div class="wp-caption alignnone" style="width: 760px"><img title="Suspicious checkbox" src="http://mwolf.net/images/fritzbox.png" alt="Suspicious checkbox" width="750" height="212" /><p class="wp-caption-text">Suspicious checkbox</p></div>
<p>Needless to say, I don&#8217;t really like the idea of anybody being able to mess around with the gateway to my local network without my consent. Now, I do generally trust XS4ALL, which has a reputation to uphold when it comes to respecting its users&#8217; digital autonomy and privacy, so I assume that there&#8217;s an innocent reason for the fact that this checkbox cannot be easily unchecked by the user. I have already mailed AVM, the makers of the FritzBox, about this, and I plan to contact XS4ALL tomorrow. Let&#8217;s see what they say about it.</p>
<p><strong>UPDATE:</strong> false alarm, fortunately! Turns out it&#8217;s just a bit of a misleading user interface. The &#8220;permit automatic updates&#8221; option is dependent on the &#8220;allow automatic configuration&#8221; option above it. So when the latter is disabled, the former becomes greyed-out because it is no longer applicable. However, the software remembers what it was set to, resulting in a checkbox which incorrectly suggests that it is still enabled. If it makes you feel better, you can temporarily re-enable the &#8220;allow automatic configuration&#8221; option, then uncheck the &#8220;permit automatic updates&#8221; box and then disable automatic configuration again.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwolf.net/archive/fritzbox-rocks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Obfuscate your numbers!</title>
		<link>http://mwolf.net/archive/number-obfuscator/</link>
		<comments>http://mwolf.net/archive/number-obfuscator/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 21:40:18 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[cool-tool]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[obfuscator]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://mwolf.net/?p=52</guid>
		<description><![CDATA[Time for some silliness.
In a little over a month, I will be

years old.
What&#8217;s that, you didn&#8217;t get it? Here, I&#8217;ll repeat it for you in terms you may understand more easily:

At work, it has become a bit of a tradition that when people announce their birthday, they do so in an at least somewhat obfuscated [...]]]></description>
			<content:encoded><![CDATA[<p>Time for some silliness.</p>
<p>In a little over a month, I will be</p>
<p><img style="max-width: 800px;" src="http://mwolf.net/images/obfuscated-1.png" alt="" /></p>
<p>years old.</p>
<p>What&#8217;s that, you didn&#8217;t get it? Here, I&#8217;ll repeat it for you in terms you may understand more easily:</p>
<p><img style="max-width: 800px;" src="http://mwolf.net/images/obfuscated-2.png" alt="" /></p>
<p>At work, it has become a bit of a tradition that when people announce their birthday, they do so in an at least somewhat obfuscated format. Hexadecimal, binary and more obscure number formats are always popular, of course, as are silly descriptions of the form &#8220;my age is the ninth distinct <a href="http://en.wikipedia.org/wiki/Biprime">biprime</a>&#8220;. But last year I decided to take it to the next level, and write a little generator in Ruby for expressions such as the ones you see above. As you can probably guess, the expressions are generated using TeX.</p>
<p>You can <a href="http://mwolf.net/code/obfuscator/obfuscate.html">play with it for yourself, if you want to</a>, and also download the latest version of the code. But please be gentle with my server, as you can probably guess it&#8217;s a rather heavy application and I&#8217;m running this site on a little home PC..</p>
]]></content:encoded>
			<wfw:commentRss>http://mwolf.net/archive/number-obfuscator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why &#8216;.local&#8217; is a bad choice for an internal domain</title>
		<link>http://mwolf.net/archive/zeroconf-stealing-dot-local/</link>
		<comments>http://mwolf.net/archive/zeroconf-stealing-dot-local/#comments</comments>
		<pubDate>Fri, 15 May 2009 19:32:30 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[avahi]]></category>
		<category><![CDATA[bonjour]]></category>
		<category><![CDATA[dot-local]]></category>
		<category><![CDATA[zeroconf]]></category>

		<guid isPermaLink="false">http://mwolf.net/?p=41</guid>
		<description><![CDATA[If your local DNS domain ends in .local, machines running zeroconf (avahi or bonjour) may have trouble resolving local machine names.]]></description>
			<content:encoded><![CDATA[<p>I installed Ubuntu 9.04 on a machine at work this week, and that went quite flawlessly except for one weird little problem. I could access machines on the local network by their short name (e.g. &#8216;einstein&#8217;) but not by their fully-qualified domain name (&#8217;einstein.intra.local&#8217;).</p>
<p>Now, if it had been the other way around, the explanation would have been obvious: a missing &#8216;<em>search intra.local</em>&#8216; entry in <em>/etc/resolv.conf</em>. But being able to resolve short names but not long ones, that was a new problem for me. I used <em>nslookup</em> to verify that the local name server was responding correctly to both forms, and it was. But any other application, from <em>ping</em> to Mozilla Firefox, failed to resolve the long form.</p>
<p>A colleague put me on the path to the solution, however. In the <a href="http://en.wikipedia.org/wiki/Zeroconf">zeroconf</a> protocol, which is implemented in Linux as <a href="http://avahi.org/">Avahi</a> and on the Mac as Bonjour, the <em>.local</em> domain is magic and is considered a reserved name. Hence, when Avahi is running, any address resolution queries for a machine name ending in <em>.local</em>, are intercepted and the DNS server never gets to see them (<em>nslookup</em> bypasses the usual resolver API, however).</p>
<p>This is apparently a known issue, but it was new and quite surprising to me. I didn&#8217;t bother to investigate who is at fault here: did the zeroconf people blatantly highjack a perfectly valid namespace, or has <em>.local</em> always been reserved and everybody but me knew about it? Anyway, it&#8217;s fair to assume that zeroconf is here to stay now, so network administrators take note: better call your local domain something else.</p>
<p>Once you know what it is, the solution is easy. In my case I wasn&#8217;t interested in the functionality offered by Avahi, so I just uninstalled it (<em>sudo apt-get remove avahi-daemon</em>). Alternatively, <a href="http://avahi.org/wiki/AvahiAndUnicastDotLocal">here</a> is a receipt for disabling the special treatment of .local, but keeping the rest of the daemon running.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwolf.net/archive/zeroconf-stealing-dot-local/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Getting VOIP plus IP forwarding to work on the Speedtouch</title>
		<link>http://mwolf.net/archive/voip-on-speedtouch/</link>
		<comments>http://mwolf.net/archive/voip-on-speedtouch/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 16:26:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mwolf.net/archive/getting-voip-plus-ip-forwarding-to-work-on-the-speedtouch-2/</guid>
		<description><![CDATA[With my subscription to XS4ALL, I received a Thomson Speedtouch 716 ADSL/Wifi router, currently running software release 6.1.9.6. Behind that router, I have a Linux server which serves as the webserver for the blog you&#8217;re reading right now, as well as my mailserver and a few other things. The Linux server also acts as a [...]]]></description>
			<content:encoded><![CDATA[<p>With my subscription to XS4ALL, I received a Thomson Speedtouch 716 ADSL/Wifi router, currently running software release 6.1.9.6. Behind that router, I have a Linux server which serves as the webserver for the blog you&#8217;re reading right now, as well as my mailserver and a few other things. The Linux server also acts as a firewall for the rest of my network:</p>
<p><img style="max-width: 800px" src="http://mwolf.net/images/mynetwork.png" /></p>
<p>As you can see, the ADSL router and anything connected to it through the WiFi is considered untrusted: the real access point to my internal network is the Linux machine.</p>
<p>Among other things, the Speedtouch has the ability to support Voice-Over-IP by attaching an analog phone. Unfortunately, this functionality does not work in combination with the &#8220;assign public IP to a machine on the local network&#8221; setting. Which is a pity, because behind the router is my Linux server, running a web- and mailserver among other things, and I really want that server to have my public IP address. Partly because having the server NATted could cause problems with mail, in particular, in the sense that when I send out mail to another server, some suspicious spamblocker software may take offense if the address reported in the headers of my outgoing mail does not match my actual IP. But mostly because having a web/mail/FTP/whatever server hidden behind a NAT, just feels wrong.</p>
<p><span id="more-26"></span> So, I have two conflicting desires here: I want to use VOIP over a phone connected to the Speedtouch, and I want my server to believe that it is listening directly on my public IP. A little googling confirms that a lot of other people have this same problem, but if anybody has found a solution already, I didn&#8217;t see it.</p>
<p>There does exist a way to expose the server to the outside world without breaking VOIP: use the &#8220;game and application sharing&#8221; feature to forward all TCP and UDP ports <strong>except</strong> port 5060 (which is the SIP port used by the VOIP service) to the server. But then we are using NAT again, which is not what we want. What I want is: port 5060 is handled by the Speedtouch, all other packets are sent straight to my Linux server, which should receive them on the public IP address of my Internet account. Unfortunately, it seems that there isn&#8217;t any way to configure the Speedtouch like that.</p>
<p>How I eventually solved this problem is by adding an <a href="http://www.netfilter.org/">iptables</a> rule on my server, which uses <a href="http://www.netfilter.org/documentation/HOWTO//NAT-HOWTO-3.html">DNAT </a>to translate the source address of each packet back into my public IP before the server sees it.</p>
<p>Like this:</p>
<ul>
<li>A packet comes in from the outside world on my public IP address (82.95.250.5).</li>
<li>The router sees it, and if the packet is not aimed at the VOIP port (5060), sends it on to my server, which has a local IP of 10.0.0.1 (assigned to it by the router through DHCP).</li>
<li>An iptables rule on my server intercepts the packet and changes the source address back to 82.95.250.5. This way, all services running on my server can pretend that they are connected directly to the Net, without any special configuration needed.</li>
<li>As my server sends a response to the packet, the destination address is changed back to the router&#8217;s address (10.0.0.138).</li>
<li>The router performs a second layer of NAT, translating the destination address of the response packet back into 82.95.250.5 again, before sending it along to its final destination.</li>
</ul>
<p>So every packet exchanged between my server and the rest of the world, is NATted twice: once by the router, once by the server. Not a particularly elegant solution, but it will have to do until somebody comes along with a better way to bend the Speedtouch to his will (or until I buy a better ADSL router).</p>
<p>Here&#8217;s the magic iptables statement:</p>
<p><small><font face="Courier New">iptables -A PREROUTING -t nat -i $EXTERNAL -d $FAKEPUBLICIP -j DNAT &#8211;to-destination $PUBLICIP</font></small></p>
<p>In my case, $EXTERNAL would be eth1 and $FAKEPUBLICIP is 10.0.0.1.</p>
<p>As I said, it&#8217;s not a particularly elegant solution. One annoying consequence is the fact that if you try to browse to mwolf.net from the WiFi network, you&#8217;ll get an error because the router will get confused about where to send packets for 82.95.250.5. This could be solved with a bit of DNS magic.</p>
<p>But maybe somebody has already found a nice, clean way to configure the Thomson router to do what I want, and I just missed it. Any ideas would be appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwolf.net/archive/voip-on-speedtouch/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Cool toy of the day: Nokia N810</title>
		<link>http://mwolf.net/archive/cool-toy-of-the-day-nokia-n810/</link>
		<comments>http://mwolf.net/archive/cool-toy-of-the-day-nokia-n810/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 17:46:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[cool-tool]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mwolf.net/archive/cool-toy-of-the-day-nokia-n810/</guid>
		<description><![CDATA[My shiny new Nokia N810 Internet Tablet arrived this week, and I like it!
(Bias alert: my friend Dirk-Jan works for Nokia in Finland as a project manager on the N810, so that made me a little more interested in this gadget than I would otherwise have been.)

With a 4.1&#8243; screen, the N810 is a little [...]]]></description>
			<content:encoded><![CDATA[<p>My shiny new <a href="http://en.wikipedia.org/wiki/Nokia_N810">Nokia N810 Internet Tablet</a> arrived this week, and I like it!</p>
<p>(Bias alert: my friend <a href="http://www.djcbsoftware.nl/ChangeLog">Dirk-Jan</a> works for Nokia in Finland as a project manager on the N810, so that made me a little more interested in this gadget than I would otherwise have been.)</p>
<p><span id="more-22"></span></p>
<p>With a 4.1&#8243; screen, the N810 is a little bigger than your average PDA or smartphone. From the negative side, that means it&#8217;s just too large to comfortably fit in my pants pockets (especially since it still requires a separate phone to make UMTS calls &#8212; the device does not have built-in UMTS capability) while not being large or powerful enough to be a laptop replacement. From the positive side, it&#8217;s a lot more pleasant to do webbrowsing or e-mail on than a regular PDA (after all, not so long ago many people would have considered an 800-pixels-wide screen perfectly adequate for a laptop or even a desktop) while still fitting easily in a pocket of my jacket. My <a href="http://mwolf.net/archive/ubuntu-on-vaio/">Sony Vaio SZ</a> is pretty lightweight for a laptop with a full-sized keyboard, but I expect to leave it home more and more often now that I have the N810.</p>
<p>Apart from the size, it&#8217;s a really cool-looking toy: sleek, with good &#8220;fit and finish&#8221; and no more bumps and frillies on the outside than necessary. And of course there&#8217;s the slide-out keyboard, the lack of which was what made me decide to pass on the N800. In several reviews, I had read some complaints that it takes a while to get used to the keyboard, because there&#8217;s no space between the keys so it&#8217;s easy to unintentionally hit multiple keys at once. However, I didn&#8217;t have much trouble with that. The trick, in true Zen style, is not to worry about hitting multiple keys: just hit the one you&#8217;re aiming for right-on, without consciously avoiding the eight keys around it, and the keyboard will usually register only the one in the middle. On the other hand, if you try to awkwardly avoid hitting multiple keys by touching them with the edge of a finger or with a fingernail, typing will be slow and frustrating.</p>
<p>But of course, the <em>real</em> reason why I went for this device instead of the hundreds of other PDAs on the market, is that it runs Linux &#8212; <a href="http://maemo.org/">Maemo</a> to be precise. By default, you get a shell, a bunch of standard Unix tools (from <a href="http://www.busybox.net/about.html">Busybox</a>), Perl, and a minimalist version of vi, in addition to the stuff you would normally expect on a device like this, such as a webbrowser, e-mail client and media player. Needless to say, there is already a sizeable community around Maemo, which has ported all kinds of Linux software such as the SSH client and server, Vim, Python, Ruby, MPlayer, lots of games including LXDoom, rdesktop and many others. Except for a couple of toy scripts in Perl and Python, I haven&#8217;t tried building any software myself yet; from what I understand, Maemo has its own GUI framework so porting an X11 app may require some code changes, but porting a simple command-line tool should be a matter of just doing a cross-compile to the ARM platform, in many cases.</p>
<p>What&#8217;s a bit disappointing is the lack of tooling to synchronize e-mail and calendar entries with Outlook/Exchange. I guess when you specifically go out of your way to get a Linux-based device rather than the much more common Windows Mobile based ones, you don&#8217;t really have much standing to complain about that. Nevertheless, since this is one of the most obvious uses of such a device, and most businesses use Exchange, it would have been nice if something were included by default. But of course, there are various open-source <a href="http://cobb.uk.net/NokiaIT/index.html">options</a> being worked on by third parties. Haven&#8217;t tried them yet, though.</p>
<p>Another thing I&#8217;m still looking for is the perfect media player for this device. The built-in player would be perfectly adequate for my needs, except for one snag. By default, it does not support <a href="http://www.vorbis.com/">Ogg Vorbis</a> audio files. Fortunately, that&#8217;s easy enough to <a href="http://maemo.org/downloads/product/OS2008/ogg/">add</a>. However, when you do that, suddenly hundreds if not thousands of .ogg files from the Navicore directory (which contains a demo version of the Wayfinder route planning software) are added to the library. There does not seem to be any way to tell the media player to ignore that directory. The alternative <a href="http://konttoristhoughts.blogspot.com/">UKMP</a> skips the Navicore directory by default, but it doesn&#8217;t seem very stable &#8212; it has already crashed on me several times. Then there&#8217;s <a href="http://kagumedia.com/projects/kagu/wiki/">Kagu</a>, which is mostly written in Python so it&#8217;s very easy to modify the list of directories to be searched. However, while it looks nice, the user interface does not work well for me at all &#8212; you apparently need to add all your songs to the playlist individually before you can play anything. The &#8216;add all&#8217; button only appears when you&#8217;re already at the list of songs for a particular album. Hmm, it&#8217;s written in Python &#8212; how hard could it be to modify that? In the meantime, I&#8217;m open to suggestions on either a different media player to use, or on how to solve the problems I&#8217;m having with the three ones mentioned.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwolf.net/archive/cool-toy-of-the-day-nokia-n810/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Note to mail server admins: spammers lie!</title>
		<link>http://mwolf.net/archive/spammers-are-liars/</link>
		<comments>http://mwolf.net/archive/spammers-are-liars/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 22:11:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mwolf.net/archive/spammers-are-liars/</guid>
		<description><![CDATA[This post is not going to contain any original insights into the spam problem, but I need to vent a bit. And, as the title suggests, apparently the news still hasn&#8217;t reached all the people it needs to reach, so maybe it won&#8217;t hurt to repeat it again.
So yesterday, as happens every couple of months, [...]]]></description>
			<content:encoded><![CDATA[<p>This post is not going to contain any original insights into the spam problem, but I need to vent a bit. And, as the title suggests, apparently the news still hasn&#8217;t reached all the people it needs to reach, so maybe it won&#8217;t hurt to repeat it again.</p>
<p>So yesterday, as happens every couple of months, a spammer somewhere in Pakistan decided to randomly pick the mwolf.net domain as the fake &#8216;from&#8217; address for his various unsavoury commercial offerings. Which means, of course, that I get a few hundred bounces from well-meaning but naive mailservers, configured by well-meaning but naive admins.<span id="more-20"></span></p>
<p>Hello everybody: <strong>spammers lie!</strong> Their pills don&#8217;t work, their stock tips are scams, they won&#8217;t deposit several million dollars into your bank account if you just let them use your account number for a couple of days, and their return addresses aren&#8217;t valid. If you have determined that a given e-mail is probably spam, then sending <em>anything</em> to the &#8216;from&#8217; or &#8216;reply-to&#8217; address is just about the least useful thing you could do. It makes you a part of the problem, not the solution. By sending an automated response to that address, you are allowing the spammer to use your server to effectively spam me. I get plenty of spam myself, but <a title="SpamAssassin" href="http://www.spamassassin.org">SpamAssassin</a> deals with that pretty well; the bounce messages are a bigger problem.</p>
<p>In a world where e-mail to a non-existent username is a lot more likely to be spam or a virus than an innocent typo, sending reply messages to such mail should be condemned as bad netiquette. Either accept all mail for your domain and swallow the spam silently, or set up your system so that it generates an error message as part of the SMTP exchange. And never, ever send any kind of response to a message which your filter software has already identified as being probable spam.</p>
<p>And then, of course, there are the &#8216;callback&#8217; systems, which send an automated response to every mail they receive, asking the server to click on a link or in some other way prove that they are a real person. Of course, this also means that they send out one harassing message to an innocent third party for every spam message they receive, thus effectively becoming a spammer themselves.</p>
<p>In other spam news, and related to my previous post: it turns out that some of my own legitimate mail is not being received because it is being identified as spam by over-eager filters. Why? Because my ADSL account, with a server running 24*7 on a fixed IP address, is listed as a dial-up in some blacklists. Now, I can kind of see the logic behind that &#8212; after all, blocking dial-up users is probably fairly successful in getting rid of a lot of spam from botnets. But there&#8217;s a baby in the bathwater: a lot of technically savvy people like to run their own mailserver, ironically often with spam filtering as an important motive. As I once tried to explain to my previous employer: are these really the people whose job applications you want to block? There are much better ways of spam filtering, which don&#8217;t yield so many false positives. Please don&#8217;t do it.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwolf.net/archive/spammers-are-liars/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Firewall improvements from R. Scott Smith</title>
		<link>http://mwolf.net/archive/firewall-script-from-scott/</link>
		<comments>http://mwolf.net/archive/firewall-script-from-scott/#comments</comments>
		<pubDate>Sun, 25 Mar 2007 16:22:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[cool-tool]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mwolf.net/archive/firewall-script-from-scott/</guid>
		<description><![CDATA[In response to my article about using the recent IPTables module to fight brute-force password attacks, based on an idea from Andrew Pollock, a reader worked out the idea into a complete firewall script, with configurable whitelisting, the ability to block multiple ports, and several other enhancements. Read his post for the details.
You can download [...]]]></description>
			<content:encoded><![CDATA[<p>In response to my <a title="IPTables against SSH brute-force attacks" href="http://mwolf.net/archive/iptables-against-ssh/">article</a> about using the <em>recent</em> IPTables module to fight brute-force password attacks, based on an idea from <a title="Andrew Pollock" href="http://blog.andrew.net.au/2005/02/16/">Andrew Pollock</a>, a reader worked out the idea into a complete firewall script, with configurable whitelisting, the ability to block multiple ports, and several other enhancements. Read <a title="Richard's post" href="http://mwolf.net/archive/iptables-against-ssh/#comment-120">his post</a> for the details.</p>
<p>You can download his firewall script <a title="Firewall script by R. Scott Smith" href="http://mwolf.net/misc-files/rc.firewall">here</a>. You can contact the author at the address <em>meetscott</em> at the domain <em>netscape.net</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwolf.net/archive/firewall-script-from-scott/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XS4ALL UMTS card under Linux</title>
		<link>http://mwolf.net/archive/xs4all-umts-linux/</link>
		<comments>http://mwolf.net/archive/xs4all-umts-linux/#comments</comments>
		<pubDate>Sat, 24 Feb 2007 17:12:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mwolf.net/archive/xs4all-umts-linux/</guid>
		<description><![CDATA[It took me a while, but I got my XS4ALL UMTS subscription through their &#8220;mobile connect card&#8221;, working under Linux.
I started out, of course, with the procedure described here. That worked to the point that I was succesfully authenticated and connected to the network, but then PPPD immediately complained that the modem hung up.

So, what [...]]]></description>
			<content:encoded><![CDATA[<p>It took me a while, but I got my <a title="XS4ALL UMTS" href="http://www.xs4all.nl/allediensten/mobiel/umts/index.php">XS4ALL UMTS subscription</a> through their &#8220;mobile connect card&#8221;, working under Linux.</p>
<p>I started out, of course, with the procedure described <a title="XS4ALL's description of how to use the MCCard with Linux" href="http://www.xs4all.nl/helpdesk/mobielinternet/umts/linux/index.php">here</a>. That worked to the point that I was succesfully authenticated and connected to the network, but then PPPD immediately complained that the modem hung up.</p>
<p><span id="more-16"></span></p>
<p>So, what turned out to be the problem? Just one little thing. The script on that page contains the following connect string:</p>
<p><em><span class="code">AT+cgdcont=1,&#8221;IP&#8221;,&#8221;internet&#8221;,,0,0</span></em></p>
<p><span class="code" />Here, <em>internet</em> is the name of the UMTS/GPRS APN. However, that&#8217;s incorrect. It should be <em>umts.xs4all.nl</em>, or even just an empty string, but not <em>internet</em>. Once I fixed that, the procedure as described there worked fine.</p>
<p>However, I actually prefer to use <a title="WVDIAL" href="http://open.nit.ca/wiki/?WvDial"><em>wvdial</em></a>, which is slightly easier to configure. Here&#8217;s the contents of my <em>/etc/wvdial.conf</em>:</p>
<p>[Dialer Defaults]<br />
Modem = /dev/ttyUSB0<br />
Baud = 460800<br />
SetVolume = 0<br />
Dial Command = ATD<br />
FlowControl = NOFLOW<br />
Init1 = ATZ<br />
Init2 = ATM0</p>
<p>[Dialer umts]<br />
Username = wolfm<br />
Password = [CENSORED]<br />
Phone = *99***1#<br />
Stupid Mode = 1<br />
Init3 = AT+CGDCONT=1,&#8221;IP&#8221;,&#8221;umts.xs4all.nl&#8221;,,0,0<br />
Dial Attempts = 3</p>
<p>Now I can simply start the UMTS connection with <em>wvdial umts</em>. That&#8217;s all! Well, except that you may need to manually set the UMTS gateway as your default gateway: <em>route add default gw 10.64.64.64</em>.</p>
<p>Oh, and a little trick from <a title="Vodafone UMTS card info" href="http://www.kuix.de/umts/vodafone/">here</a>: you can disable the PIN code by sending the command <em> AT+CLCK=&#8221;SC&#8221;,0,&#8221;0000&#8243;</em> to the modem (e.g. using Minicom), assuming that <em>0000</em> is your current PIN.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwolf.net/archive/xs4all-umts-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
