Or Continue to Thread: ppp over adb (for linux/unix u…
Find Your Device:
15th September 2009, 07:45 AM   |  #14  
Recognized Developer
Flag Los Angeles
Thanks Meter: 255
 
813 posts
Join Date:Joined: Sep 2009
Donate to Me
More
OK, this is the patch I made to adb to make its ppp command work the way I want.

With that, invoke adb like this:

adb ppp foo notty 192.168.2.1:192.168.2.2

The <tty> parameter is no longer used; everything past the "foo" is just passed as arguments to the local pppd.

Once this is done you can set up NAT forwarding on whichever side you want.

And yes, I know this isn't a clean patch. I should make this a new command instead of usurping the existing ppp command, since presumably the original command is still useful to somebody out there. But this was just a quick hack to see if it would work, and it works great. This saves a lot of the CPU overhead of ssh / port forwarding / etc...
Attached Files
File Type: txt commandline.dif.txt - [Click for QR Code] (962 Bytes, 845 views)