Category: How-Tos


How to Force ez-ipupdate to Touch Dyndns Record Every Month

Like most home internet users, I have a dynamic IP address and I use Dyndns to map it to a static host name so that I can remotely access my router (and computers behind it) without having to know its current IP address.

My router is a LinkSys WRT54G, which is running the OpenWrt custom firmware. OpenWrt comes with a package called ez-ipupdate, which can be configured to automatically update your Dyndns host record whenever the router’s address changes. For detailed instructions, see the DDNSHowTo page in the OpenWrt wiki.

The instructions in OpenWrt’s wiki are pretty good but they don’t deal with the situation where the time between address changes is greater than 30 days. Continue reading » How to Force ez-ipupdate to Touch Dyndns Record Every Month




Accessing Windows Shares Across a VPN

Just for laughs, I recently created a point-to-point VPN (a.k.a. gateway-to-gateway VPN) between my home and the office. At the office, the VPN endpoint is a LinkSys RV042, which, as far as I can tell, runs Freeswan VPN software. At home, the VPN endpoint is a LinkSys WRT54GL, which I hacked to run the OpenWrt linux distribution and OpenSwan VPN software. A future post will detail exactly how I did this but the purpose of this post is to discuss how I got my Windows file shares to work across the VPN. Continue reading » Accessing Windows Shares Across a VPN

Disabling Password Authentication on Dropbear SSH Server in OpenWrt Running on WRT54G

I have a LinkSys WRT54G router which runs OpenWrt (version White Russian RC5). For console access to the router, I have enabled the Dropbear SSH server, which works well.

Recently, I opened up the SSH port to allow remote access to the console. To secure this as best I could, I disabled password authentication and enabled public key authentication, by following the instructions in the Dropbear Public Key Authentication Howto.

After doing disabling password authentication, I thought to myself “What if I lose my private key?” The answer is “I’m probably screwed”, because there is no serial port on the WRT54G for local access. (Actually, there are some hardware mods you can do to add a serial port but I’m not that handy or brave).

So I thought to myself “Would’t it be great if you could configure Dropbear to disallow password authentication for remote connections but allow it for local connections?” Continue reading » Disabling Password Authentication on Dropbear SSH Server in OpenWrt Running on WRT54G

How to Inject Dependencies Into Domain Objects When Using the Spring Framework 1.x and Hibernate

Yesterday I read an interesting post on Chris Richardson’s blog about how to inject dependencies into domain objects when using the Spring Framework and Hibernate. This is a great feature because it allows you the option to create richer domain models and avoid the anemic domain model anti-pattern, which was coined by Martin Fowler and discussed at great lengths in Eric Evans’ book Domain Driven Design.

Unfortunately, this AspectJ-based solution discussed by Chris Richardson will not be officially supported until Spring Framework 2 is released (which should be soon). There are some other solutions (e.g. DependencyInjectionInterceptorFactoryBean, ServiceLocator lookups, passing dependencies as as parameters to service methods, etc) but, as Chris points out, these all have some undesirable drawbacks. Continue reading » How to Inject Dependencies Into Domain Objects When Using the Spring Framework 1.x and Hibernate

Page 4 of 5«12345»