To keep the intake end of my drain from clogging, using 1/4 inch hardware cloth, I constructed a cylinder approximately the size of a 55 gallon drum. Both ends are of 1/4 inch hardware cloth as well. Cut in one end is an offset hole the same diameter as the drainpipe, which allows the cylinder to be placed over the horizontal drainpipe. The end of the drainpipe stops at about 2/3 to 3/4 of the length of the cylinder. The offset hole allows the inside wall of the cylinder to rest on and be supported by the horizontal drainpipe. Trash that would flow into the drain stops at the cylinder, and never inhibits outflow.