craigcrawford1988
My mobile network provider has begun restricting tethering, and since I don't want to give them greedy gets any more money, I decided to setup an OpenVPN server on a VPS and redirect all traffic to it.
However, I'm experiencing a major problem with routing in that the phone use everything fine, but any tethered devices can't.
The particular setup I'm attempting to use is as so:
My VPS server is configured to masquerade and route everything through it and that works fine.
I want my phone to work as a "modem" so to speak, to just offer an Internet connection to devices that are connected to it and nothing more.
My router at home has OpenWrt on it and I have managed to USB tether my 3G connection to it, it is assigned an IP from the phone and for the most part it works until my service provider blocks me for tethering. As soon as I enable OpenVPN on the phone, all connectivity from the router to the Internet is lost.
My network setup for my home is like so:
192.168.1.0/24 for the local network.
192.168.42.0/24 is used by the phone's usb tethering.
10.8.0.0/24 for OpenVPN.
I've tried setting up all sorts of stuff as recommended such as iroute, route, masquerading on my router etc but nothing seems to help. I think the problem lies in my setup being somewhat unorthodox.
I believe the problem lies in getting packets routed through the phone, or maybe sending the packets destined for OpenVPN to the phone. Though I've tried all I can think of to no avail. My phone is rooted and running android, so it should be no problem in setting up routing, though I've tried masquerading a bit and it did nothing to help.
Can anyone help? If any further info is needed, then please ask.