How to make iptables rules persistent?

I tried the standard post-up iptables-restore < ... hooks in /etc/network/interfaces.d/ , but apparently they are ignored. Why?