ferm: change ferm.conf to a template