Goodsall's rule states that a fistula with the external opening anterior to an imaginary transverse line across the anus has its internal opening at the same radial position and for an external opening posterior to this line, the internal opening is in the midline posteriorly with a horse-shoe track.