I use to mess around w/ stuff like that as well as ddwrt ... but then I found out that EdgeRouter-X supports the majority of the stuff I was doing right out of the box and had debian running under the hood ...
They also give you sudo access and it works w/ apt-get ... so you can install obscure things like tinc-vpn