I do not understand the question completely.
Please specify a little bit bether. Is it a qestion of using 3 external conections on 1 sme gateway and then to use 1 lan connection so there is 4 network cards in the gateway ?
If not how meny network adapters should the sme gateway contain and what will be the job of each adapter ?
I think the main restriction on such a modification will be the number of networks adapters that can be fitted into the PC. There will also be some restrictions of how a such router can work.
Using the standard function of Linux it is possible to configure any number of routing / firewall functions that can be physically fitted into the PC box.
If it eventually should be a question of selecting between 3 internet connection used againd only one lan this should be not to difficult.
Arne.