We consider the magnetic field line structure of tokamaks, described by the dynamics of Hamiltonian maps. Using simple bidimensional maps, we study the field line interaction with obstacles inside the tokamak chamber, their general transport properties, and the influence of non-monotonic rotational transform profiles. The obstacles positioned inside the vessel correspond to exits in the map phase space and, being the tokamak wall itself an exit, we find that the boundaries of the exit basins are asymptotically fractal, presenting also the Wada property. Thus, the magnetic field lines that reach a given obstacle are not necessarily wandering closeby this exit, what may have implications, e. g., for measuring systems. Maps endowed with a non-monotonic rotational transform, called nontwist maps, model tokamaks in the reversed shear regime. The maps present a strong invariant barrier in phase space which mirrors the enhanced confinement observed for tokamaks in such regime. We find that even after the breaking of the invariant barrier an effective barrier remains, through which the transport is diffusive and about two orders of magnitude slower than the poloidal transport in the same region.