The Plan9 way of handling internet gateways is to have a machine with 2 network adapters.  One connected inside your network, and one outside.  You configure the internal one, and bind it to /net.  And the internet facing port your bind to /net.alt.  Then any computer on the grid can import (rimport in 9front) /net.alt, and bind it over that computer's /net. 

'rimport gateway /net.alt /net'

And this is per process, or per window.  So you make a window on you inside the grid terminal, import the gateway's /net.alt, and then run mothra or netsurf.  Open another window, and it will just have your terminals default /net that only sees inside the grid.