It is technically possible to do that.
My 50 Buck Asus Router i had before did that too.
This is as basic functionality on most Routers.
I also saw Howtos on Internet… some People got it to work with OpenWRT.
Like this:
But that did not work for me.