Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I currently find myself in a situation where I need to find a NAT solution for a rooted Android 2.2 device other than IPTABLES, since I am stuck on using a particular ROM that doesn't support IPTABLES.

I need said Android device to act as a NAT gateway between an external host connected through its Ethernet port, and the Android device's internal WiFi connection (not its cellular connection).

I have tried searching for a simple NAT daemon available for any operating system, just for kicks. It turns out that such a solution is nothing more than a pipe dream, considering they would require unportable kernel modules.

I have noticed some Android software out there, such as EasyTether, that claim they support NAT. And, this is apparently even without requiring a rooted system. So, it must be possible to implement based off some solution.

I even recall one such software stating that it had used a Java NAT solution. I could not find anything like this made in Java. Running Java apps on Android IS a possibility.

So, does anyone have any input as to how a NAT solution might be implemented? TIA.

share|improve this question

closed as too localized by Izzy, ce4, Bryan Denny Jan 2 '13 at 15:55

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.