Magnetically induced anisotropy of flux penetration into strong-pinning superconductor/ferromagnet bilayers