Okay - I have solved the xdm problem. I needed to link PS/2 mouse support into the kernel. I found this out by looking at the output of xdm. I have now configured ipchains as I want including running it automatically on reboot. Thanks for the help.