Obviously, you cannot "farm" iron, you mine it. You can find iron ore in the ground near the surface or in caves and use it to make iron bars at a furnace.