Stop thinking about it. There's hardware available that's going to do a much better job than anything you could come up with in software.
This would only apply to your wi-fi connection (not your actual 3G connection), but what I think you're interested in is a "travel router":
Travel Routers[
^]