There's a serious flaw in your problem. A square wave is mathematically an odd function whose Fourier expansion involves the odd harmonics of the fundamental. This means that if you really want an 1800 Hz square wave, you need to pass frequencies up to at least 9000 Hz, otherwise you'd wind up with an 1800 Hz sine wave.
This, of course, means that you're passing lots of other sine waves up to 9000 Hz.
Otherwise, you're looking for a low-pass filter, but bear in mind that the cut-off frequency for a single pole filter is simply the frequency at which the response drops to 50% of that of the passband. A more complicated filter will introduce phase delays, which means that your square wave will get distorted in any case.
You need to review what you're trying to do. Perhaps a phase-locked loop might make more sense?
TTFN