You are asking for a lot and as mentioned you are not going to get a consumer grade box that can do this. Your average consume is lucky if they can get the unit out of the box and the power plugged in.
In addition to the above what do you mean by "fiber". The method for delivering internet over a optical fiber is not very standard. Many systems are based on a protocol called GPON but there are many options and then you have vendors that use other proprietary methods.
It is going to make your project much simpler if you can get some box to convert the fiber to ethernet. Generally these are called ONT. What exact box you need is a question for your ISP.
After that your issues is mostly software and finding a device that can...