When you flex your foot up or down, you are moving from the talocrural joint. The motion that typically becomes most restricted is dorsiflexion.
To target this joint, place one leg back and one leg forward with your forward leg flexed. Keeping your heel down, rock forward as far as you can on the front foot.