We investigate cylindrically symmetric spacetimes in the context of f(R) gravity. We firstly attain conformal symmetry of the cylindrically symmetric spacetime. We obtain solutions to use features of the conformal symmetry, field equations and their solutions for cylindrically symmetric spacetime filled with various cosmic matters such as vacuum state, perfect fluid, anisotropic fluid, massive scalar field and their combinations. With the vacuum state solutions, we show that source of the spacetime curvature is considered as Casimir effect. Casimir force for given spacetime is found using Wald's axiomatic analysis. We expose that the Casimir force for Boulware, Hartle-Hawking and Unruh vacuum states could have attractive, repulsive and ineffective features. In the perfect fluid state, we show that matter form of the perfect fluid in given spacetime must only be dark energy. Also, we offer that potential of massive and massless scalar field are developed as an exact solution from the modified field equations. All solutions of field equations for vacuum case, perfect fluid and scalar field give a special f(R) function convenient to Lambda-CDM model. In addition to these solutions, we introduce conformal cylindrical symmetric solutions in the cases of different f(R) models. Finally, geometrical and physical results of the solutions are discussed.