← Back to team overview

ubuntu-phone team mailing list archive

Re: rndis networking

 

On Thu, 2015-05-14 at 12:51 +0000, nick luigi eusebio wrote:
> I'm interested as well! And also on how you used the PC connection for
> your phone. I remember I did that on my iPhone 1 before when
> we don't have a wireless router yet. Please let us know how you did
> it. Thanks! :)
> 
Oh, that is the easy part :-)
On the PC ( linux of course ) run:

 iptables -I POSTROUTING -t nat -o "${IFACE}" -j MASQUERADE
 echo 1 > /proc/sys/net/ipv4/ip_forward

Where IFACE is the interface on the PC you use to connect to the
internet.

Kind regards,
Ed






Follow ups

References