[beagleboard] Internet sharing in Beaglebone ubuntu

Hi,

I have Beaglebone with Ubuntu OS. I have USB 3G modem for my internet, i
want share internet connection with ethernet / wifi also.

I want to connect beaglebone with router and like to share internet to other
devices.

If BeagleBone is on the Internet and you want to share that network
connection back to other devices on a LAN, then what you want is IP
masquerading (which provides NAT functionality). I've googled that
for you [1].

[1] https://help.ubuntu.com/12.04/serverguide/firewall.html#ip-masquerading