Agree with John, but it sounds like you're discribing the fuel filter
when you say the "drum thing in front of the rear tyre"; so if tapping
that temporarily eased the problem, that also could be the culpret.
They are cheap to replace so it may not be a bad idea to do so, if only
to eliminate it.