It's definitely on.
Dr Geoffrey Home
A "farm" is an area. You live "on" a farm, but "in" a farmhouse. If you want to live "in" a farm where would that be - on top or under a haystack?