teh bigbro blog(tm)
Bigbro's foray into the scary world of blogging
11 2007

Mon, 26 Nov 2007

ILUG Talk : Free Maps! : The video of the talk

Steve Coast spoke about the Open Streetmap project in the HEAnet offices last week. Thanks to the efforts of Kevin Dermody the video of the event is now available.


Videos of previous ILUG talks are also available - many thanks to Kev and Justin for their camera and post-processing work.

posted at: 12:42 | path: /technical | permanent link to this entry

Sat, 24 Nov 2007

The strangest thing I've heard today...

...was a girl stating, "I've never had to WD-40 my leatherman."
I wonder if the OED are aware the WD-40 is now a verb.

Update: I was wrong! The last comment was shortly followed up with, "I had no kettle so I had to boil penguins."
I don't feel I have the words to explain what prompted that...
posted at: 22:29 | path: /observations | permanent link to this entry

Fri, 23 Nov 2007

Mirroring open Streetmap

HEAnet are now mirroring the Open Streetmap data set.
So, if you're in Ireland you might want to consider grabbing your copy of the data from here.

Thanks to Christian and BrianMc for making this happen.
posted at: 16:10 | path: /technical | permanent link to this entry

Free Maps! : Steve Coast presents Open Streetmap

The board room in HEAnet was more packed than it's ever been for an ILUG talk. Chairs were commandeered from the office at large to accomodate the crowd of people gathered to hear Steve Coast talk about a his Open Streetmap project.

Details of how the project started (by noticing that GPS traces of couriers around London could be used to derive a crude map) and where it's going to (getting close to complete coverage of the UK by the end of 2009, possibly sooner) were all detailed and beautifully illustrated with the aid of snapshots from the map. To demonstrate how easy it was to contribute to this map, Steve added a local pub with just a few clicks of the mouse.

Huge thanks to Steve for giving the presentation, and indeed to everyone who made the effort to come and listen to him. There was a video recording made, which will be made available in the very near future. Thanks also to HEAnet for generously hosting the event and to Kev Dermody for his unfailing camera and recording skills.

Finally, please remember the Dublin OSM Mapping Party tomorrow and Sunday starting from the ICS in Dublin, from 11:00am until late.
posted at: 16:06 | path: /technical | permanent link to this entry

Tue, 20 Nov 2007

HSE calls for tax rise on alcohol

An RTE article details that the HSE is making a call for an increase in the tax on alcohol. While I abhor alcohol abuse and the tragedy that it undoubtedly causes, previous tax rises have utterly failed to reduce consumption. I see no reason to see why this increased tax should have any more effect than previous ineffectual initiatives.

Perhaps the government might like to consider some 'carrot' rather than perpetually attempting to come up with new, yet equally useless, 'sticks' with which to beat us. As a musician who spends significant amounts of time in pubs the length and breadth of the country, can I humbly suggest that the government look seriously into the following, to start with:


Perhaps some of these measures might actually encourage people to reduce their alcohol intake, by providing them with a reasonable alternative to quaffing pints of beer in order to get as much in before closing time as possible.

Just my thoughts...
posted at: 01:49 | path: | permanent link to this entry

Mon, 19 Nov 2007

Free Maps!

If you ever use a map, you should come to the HEAnet offices on 22nd November 2007 at 7:00pm to hear Steve Coast talking about the Open Streetmap project:

"a project aimed squarely at creating and providing free geographic data such as street maps to anyone who wants them. The project was started because most maps you think of as free actually have legal or technical restrictions on their use, holding back people from using them in creative, productive or unexpected ways."

GPS Coord: N 53.349597 W 006.246833
To register attendance for the presentation from the founder of the Open Streetmap project, please mail chairman-at-linux.ie.
posted at: 22:29 | path: | permanent link to this entry

Tue, 13 Nov 2007

Link(s) of the Day

www.isitchristmas.com
Is it Christmas?
www.spoofedpacket.net
A useful checklist for the many people who have come up with new and ingenious, though inherently flawed, methods for combatting spam. Tick the boxes as applicable and post to your favourite forum. An oldie, but a goodie :-)

posted at: 12:30 | path: /lotd | permanent link to this entry

Fri, 09 Nov 2007

galway LUG Installfest

Galway LUG is organising a multi-distro installfest from 1000-1200 on Saturday 17th of November, in the DERI building (opposite the Westwood Hotel), Newcastle Road, Galway. We will have people available to help with Ubuntu, Debian, Mandriva and RedHat (minimum). There will be demo systems with various software preinstalled, and with luck, plenty of install CD/DVDs.

Tell your friends!

With thanks to Andrew Gallagher for bringing the event to my attention.
posted at: 11:16 | path: /technical | permanent link to this entry

Thu, 08 Nov 2007

Mail over IPv6

Due to an ACL preventing me from using one of my mail servers (port 25 outbound blocked except to internal mail relays... thanks Windows viruses!) I decided to test delivery of mail over IPv6. It worked. Yay! I now have IPv6 mail relaying capability and from a few brief tests, it appears that many network that block port 25 for IPv4 do not have an equivalent block for IPv6.

If anyone notices any strangeness from mail.signal2noise.co.uk due to the addition of an AAAA record, do please let me know.
posted at: 19:03 | path: /technical | permanent link to this entry

Wed, 07 Nov 2007

Setting up TLS and SMTP Auth with Postfix and CACert

For those of us who roam around the internet, getting a connection here, there and everywhere, trying to find mailservers that are willing to relay outgoing mail for us can be a challenge. While DHCP will give us an IP address, nameservers and a default gateway, there's no traditional model I'm aware of for provising mail relays. Of course, there's a solution to this problem - use your own mail server.

Using your own mail server means that you must configure it to relay mail from lots of possible IP addresses - but only if it's you that's trying to relay. I won't go into the details as to why it's a bad idea to have an open mail relay facing the internet - I'm going to assume you know. Fortunately, it's actually not that difficult to authenticate with your mail server at SMTP time (when you're sending a mail) and ensure that only you, or your valid users, get to use the server.

Step #1: Configure TLS
For this you'll need a server certificate. I've chosen to use CACert as my root signer. You can do the same by signing up for a free account with them - something I'd actively encourage you to do.

  1. I'm assuming Debian Etch but these instructions should work with little or no change across a wide variety of systems.
  2. On Debian, download the Class 1 CACert root certificate in PEM format and place it in /etc/ssl/certs/CACert-class1-root.pem.
  3. Run /usr/lib/ssl/misc/CA.pl -newreq-nodes to generate a certificate request for your server. Answer the questions asked, making sure to insert the server's DNS name as the Common Name (eg, YOUR name) section. In my case, it's for one of my mail servers, so I put
    Common Name (eg, YOUR name) []:mail.signal2noise.co.uk.
  4. You should now have two files, one called newkey.pem (this is your private key. Keep it a secret.) and the other called newreq.pem. (This is the certificate request you need to send to CACert.) I always rename the newkey.pem file to servername-privatekey.pem.
  5. Log into CACert and select the menu item on the right for Server Certificates. Select New to create a new server certificate.
  6. Make sure the option to Sign by class 1 root certificate is selected and paste the contents of the newreq.pem file into the text area titled "Paste your CSR below..."
  7. Click the Submit button and after a short pause, it will display the generated public key for your server. This is essentially the certificate request 'signed' by the CACert root cert, which means that anyone who trusts the CACert root cert will now trust your server cert as well. Paste this output into a file called servername-publickey.pem
  8. Finally, for convenience, let's put the public and private keys together, so that in future we only have one file with everything the server needs.
    cat servername-privatekey.pem servername-publickey.pem > servername-keys.pem
  9. Put the servername-keys.pem file in the /etc/ssl/certs/ directory along with the CACert-class1-root.pem cert from above. We now have all the keys we need. If you have other users on your system, make sure that the servername-key.pem file is not world readable. chmod 0640 servername-key.pem should do the job nicely.
  10. Now we have to configure postfix to use the key files and activate TLS. Insert the following in your /etc/postfix/main.cf file:
    ## TLS
    smtp_use_tls = yes
    smtpd_use_tls = yes
    ## Only show AUTH options if TLS is being used.
    smtpd_tls_auth_only = yes
    ## Log the hostname of a remote SMTP server that offers STARTTLS
    smtp_tls_note_starttls_offer = yes
    ## Location of PEM files
    smtpd_tls_key_file = /etc/ssl/certs/servername-key.pem
    smtpd_tls_cert_file = /etc/ssl/certs/servername-key.pem
    smtpd_tls_CAfile = /etc/ssl/certs/CACert-class1-root.pem
    smtpd_tls_CApath = /etc/ssl/certs
    ## Increase this for more verbose logging
    smtpd_tls_loglevel = 1
    ## Add a TLS header
    smtpd_tls_received_header = yes

    tls_random_source = dev:/dev/urandom
  11. Reload postfix so that it parses the updated config file - and you should find that TLS is now enabled on your mailserver. You can verify this by telnetting to port 25 in the usual fashion, and upon greeting it with EHLO your.server.name it should now respond with 250-STARTTLS as one of the options.


Step #2: Configure SASL Authentication
Now you have TLS configured, you'll have end-to-end encryption of traffic over the wire. This means that any communications you have with the mailserver are securely hidden from view of anyone who might be looking at packets on the network. Not only does this mean they cannot see the text of mails sent (for this hop only! The next hop towards it's destination may well be unencrypted!) but they cannot see any usernames or passwords sent over the wire. This paves the way for providing a method of authenticating users who want to send mail using your server as a relay.
  1. Install the SASL2 modules for auth:
    apt-get install libsasl sasl2-bin libsasl2-modules
  2. The sasl2-bin package will install a file called /etc/default/saslauthd. You will need to edit this file to configure saslauthd to start automatically at boot time.
    START=yes
    MECHANISMS="pam"
    OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"
    Other options can be left at their defaults. The OPTIONS stanza configures the runtime files appear in a location accessible by postfix, running in a chroot jail. Without this, postfix will be unable to communicate with saslauthd.
  3. Create the directory specified in the configuration above and chown it to be owned by postfix:sasl
    mkdir -p /var/spool/postfix/var/run/saslauthd
    chown -R postfix:sasl /var/spool/postfix/var/run/saslauthd
  4. I also move the sasldb2 file so that it's accessible by postfix, and configure sasl to be added to the postfix group:
    adduser postfix sasl
    mv /etc/sasldb2 /var/spool/postfix/etc/
    ln -s /var/spool/postfix/etc/sasldb2 /etc/sasldb2
    chown postfix:sasl /var/spool/postfix/etc/sasldb2
  5. Configure postfix to use SASL to check password authentication. You'll need to create a file called /etc/postfix/sasl/smtpd.conf with the following contents:
    pwcheck_method: saslauthd
  6. Add the configuration to the postfix main.cf file to allow postfix to use SASL Auth for sending mail:
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_local_domain =
    broken_sasl_auth_clients = yes
  7. Make sure that the SASL Auth daemon is started:
    /etc/init.d/saslauthd start
  8. Restart postfix to ensure that all settings are taken up. This isn't strictly necessary, but it's always a good idea when changes to config files are involved:
    /etc/init.d/postfix restart

You should now find that you're able to send e-mail by configuring Thunderbird or your e-mail client of choice to send mail via your mail server, port 25, using TLS and Auth. You should be asked for a login username and password when you attempt to send mail. These must match your UNIX username and login on the mail server for the configuration detailed to work.

Next tech article will be an explanation of how to bypass this problem entirely by using an IPv6 tunnel from SixXS.
posted at: 01:54 | path: /technical | permanent link to this entry

Tue, 06 Nov 2007

Helvetica

I'm a little worried - it's 11:30pm at night, I'm still working, I'm watching a documentary on 'Helvetica' - yes, the font - and I'm starting to agree with their compelling arguments that it's the best font. I might need help...
posted at: 23:32 | path: /observations | permanent link to this entry

Sat, 03 Nov 2007

Mike Culver

Last night, I had the pleasure of meeting with Mike Culver, of amazon.com who gave a tremendous presentation about their Amazon Web Services offerings, including the Elastic Compute (EC2 / EC3) technology. Compared to the 180 people Mike spoke with a couple of evening ago, the ten or so dedicated people who turned up to hear him at the Irish Computer Society offices in Dublin was a small crowd - but a more intimate discussion ensued as a result. Since a few people already had experience with EC3/S3, we bucked the trend and started asking questions of Mike before he even had a chance to start his talk.

For me, the most interesting services offered were the Elastic Computation service (EC3) and the storage service (S3.) The EC3 and S3 business model is what differentiates it from the more traditional model of having to burn cash up front to allow for reserve capacity for growth. With the S3 and EC3 systems, you can call down more storage and spin up another virtual server instance on demand - and you only pay for what you use! Of course, since all the machines are Xen instances, and are created by Amazon's back end on demand, you can scale back down as efficiently and cost effectively as you scale up. Currently, if you have one instance running all the time for a whole month, it costs about $72, plus bandwidth charges. If you only use it for an hour, you get charged ~10c.

Unfortunately, due to having to catch a 3am flight the next morning, this talk did not culminate in the traditional ILUG jaunt to the local pub. We'll have to invite Mike over again some time so he can experience the more esoteric post-talk question and answer session, where the questions often become more and more interesting, although less and less relevant, as the evening proceeds.

Huge thanks to Mike for speaking, to Niall O'Broin and Paul O'Malley for organising the event, and to the ICS for generously provising a venue.

Finally, don't forget the ILUG AGM 2007 tomorrow (well, later today by now...) Sat 3rd Nov, 2007, 3pm in the ICS building.
posted at: 00:37 | path: /technical | permanent link to this entry

[IPv6 Ready]


copyright © 2005-2011, Gareth Eason