Effects of porous boundaries on peristaltic transport through a porous medium