International audienceAims. We observed the L1506 filament, which is located in the Taurus molecular complex, with the Herschel PACS and SPIRE instruments. Our aim is to prove the variation in grain properties along the entire length of the filament. In particular, we want to determine above which gas density this variation arises and what changes in the grain optical properties/size distribution are required.Methods. We use the 3D radiative transfer code CRT, coupled to the dust emission and extinction code DustEM, to model the emission and extinction of the dense filament. We test a range of optical properties and size distributions for the grains: dust of the diffuse interste...