Android 9: Routing from tethering to OpenVPN possible? - Networking

Hello fellows.
I use WiFi tethering periodically on my Android 9 phone (Galaxy Note4) and also always an OpenVPN Client that's configured to route all traffic through VPN. Nevertheless the traffic from and to my tethered devices goes through the standard 4G modem Connection and not through the connected VPN.
I'm looking for a solution to route really all traffic from and to my tethered devices to the OpenVPN Connection.
I have AFWall+ and root on my phone.
Does somebody have an idea how to make it?
Thanks in advance for all of your replies.

Related

Bluefire VPN over 3G

HI there,
Has anyone experienced an issue whereby bluefire or similar contivity VPN client connects seamlessly over WIFI and 3G however will only allow RDP or VNC over WIFI.
I am currently running bluefire and am able to authenticate through 3G but thats it, I have no other functionality.
Any help would be great!
Thx
I've seen it where specific ports are blocked on the 3G providers network, but given that you're establishing a vpn tunnel, that should be irrelevent, as all the traffic should be tunneled via the VPN. I wonder if the Device isn't picking up the new route to send the traffic via the VPN, and is instead sending it via the 3g connection to a non-existant device.
Does your VPN-endpoint give you any logs to show if its actually receiving the traffic from the device? Are you able to ping anything within the remote network (assuming ping is allowed) from the device?
One thing I have noticed is that if you have a 3G connection open, then establish a wifi connection, the routing table doesn't seem to update to use the wifi connection and you actually have to kill the 3G session. I wonder if something like that is happening here - the 3g session establishes a default route, the VPN session then comes up but the device doesn't realise to send traffic via the VPN session. Or are you getting any traffic through the 3G/VPN connection?
I have the option to turn on verbose logging. I ll give that a go and see if it highlights anything really obvious.

PPTP VPN Issues

Hi,
I am having problems getting VpyrVPN or any VPN to work on my current setup. I can create the VPN profile from within android and it connects fine. However after the tunnel is established (and I can see this as ppp1 in system info) no traffic appears to route down the tunnel. Everything still defaults to go over the standard 3G routing.
For example if I go to whatismyip.com I retain the IP address of the telecoms provider. This is not the case when testing on a wifi connection as it works fine.
I am running MDJ Desire HD v4.3.
I have tested VPN access via my provider on 3G by tethering my laptop to my HD2 via the Android "Wifi Hotspot" app and it connects fine on the laptop and routes down the VPN as expected.
Is this a known problem with froyo or could this be specific to using PPP rather than RMNET? Or is there a fix?
Your help would be greatly appreciated.
Kind Regards,
Ross

[Q] Non Ad Hoc Wifi

Hi,
I'm hoping someone can help me. I'm extremely new to all this.
I am trying to set up my MyTouch to be a wifi hotspot for my rooted Nook Color. From what I've been reading and experiencing in my efforts to get it to work, is that the NC doesn't recognize ad hoc wireless connections.
Is there any way around this?
Thanks for the help!
Jes
Sounds like you need to look for an android-wifi-tether application.
This program enables tethering (via wifi and bluetooth) for "rooted" handsets running android (such as the Android DevPhone 1). Clients (your laptop for example) can connect via wifi (ad-hoc mode) or bluetooth and get access to the internet using the 3G, 2G mobile connection or (in case you are using bluetooth) the wifi connection which is established by the handset.
http://code.google.com/p/android-wifi-tether/wiki/FAQ
yguns76 said:
Sounds like you need to look for an android-wifi-tether application.
This program enables tethering (via wifi and bluetooth) for "rooted" handsets running android (such as the Android DevPhone 1). Clients (your laptop for example) can connect via wifi (ad-hoc mode) or bluetooth and get access to the internet using the 3G, 2G mobile connection or (in case you are using bluetooth) the wifi connection which is established by the handset.
http://code.google.com/p/android-wifi-tether/wiki/FAQ
Click to expand...
Click to collapse
Not what he's looking for. He's looking for an app that will broadcast an actual network, not just an ad-hoc connection, which that app does.

Rom with VPN tethering fix built in?

Hello all. I am wondering if there is any current rom out that has the tethering issue fixed while connected to a vpn.
My setup now is basically stock rooted running a few Xposed modules. Wifi tether works out of the box on the phone (VZW), however when i connect to my vpn the wifi tether doesn't transmit data.
I found a app called TetherNet on the play store, and that fixes the problem. I can tether fine while running my vpn on my phone and all all traffic from devices connected to the mobile hotspot go through the VPN if using the TetherNet app. I am not sure what the TetherNet app does to fix this.
I am curious if there is any rom that has whatever fix the TetherNet app does built in.
Thank you.
DeathGrind said:
Hello all. I am wondering if there is any current rom out that has the tethering issue fixed while connected to a vpn.
My setup now is basically stock rooted running a few Xposed modules. Wifi tether works out of the box on the phone (VZW), however when i connect to my vpn the wifi tether doesn't transmit data.
I found a app called TetherNet on the play store, and that fixes the problem. I can tether fine while running my vpn on my phone and all all traffic from devices connected to the mobile hotspot go through the VPN if using the TetherNet app. I am not sure what the TetherNet app does to fix this.
I am curious if there is any rom that has whatever fix the TetherNet app does built in.
Thank you.
Click to expand...
Click to collapse
Are you trying to use VPN on the device and tether?
Use VPN on the computer and pass through the device.
VPN creates an encrypted tunnel to the VPN host/server.
Tethering shares the connection but not through an encrypted tunnel.
You would need a VPN/Tethering app. Currently they conflict.
I have not seen it every work. I've been tethering and using VPN for years.
If you find something that will let you use VPN on the device and tether, I'd like to know.
tech_head said:
Are you trying to use VPN on the device and tether?
Use VPN on the computer and pass through the device.
VPN creates an encrypted tunnel to the VPN host/server.
Tethering shares the connection but not through an encrypted tunnel.
You would need a VPN/Tethering app. Currently they conflict.
I have not seen it every work. I've been tethering and using VPN for years.
If you find something that will let you use VPN on the device and tether, I'd like to know.
Click to expand...
Click to collapse
I did find an app that works to share the Tunnel through the mobile hotspot and have your traffic from any connected device secure. It's called TetherNet found here https://play.google.com/store/apps/details?id=com.ilmubytes.tethernet&hl=en
I double checked to make sure i was being tunneled. If I am connected to the VPN on my phone and i connect to my hotspot on my PC WITHOUT using TetherNET my traffic is NOT Tunneled. After I hit the Share VPN button on TetherNet app on my phone, when checked my Traffic from the PC is tunneled. So there is a way to do it. For some reason android kills the app after a few hours, looking at how to have android ignore that app now so it is never killed off. Any suggestions on how to keep the app alive permanently?
Also it is somewhat difficult to connect tablets to the mobile hotspot, at first none of my tablets would obtain a IP address, I found a workaround. If I start the mobile Hotspot and then connect a tablet before turning on TetherNet app the tablet connects fine, but the traffic in unsecured and NOT being Tunneled. However once I activate TetherNet app, all connected devices, stay connected and are Tunneled through the VPN.
I currently have about 4 or 5 devices connected to my VPN via mobile hotspot, and my check comes back secure on all of them.
Note: on the play store it says app is not working with cm13 and samsung devices.

VPN issues

In my company we have a VPN set up to route only internal traffic through VPN, but all other traffic remains on the regular connection. This works for me on my Mac, and on my old Galaxy S4, but with S8 when I connect to VPN, it routes all traffic through VPN which means I can't see any outside world since routes there haven't been set up that way (I can see VPN machines just fine). Is anyone else experiencing these issues? I use built-in IPSec Xauth PSK VPN.
I think this is a bug in Samsung's ROM, but getting this info to them is impossible, at least in a small European country like mine.
Are you trying to access Tor network?
If yes then open the Orbot browser disable app VPN mode if not then download VPN Master from app store and try connecting through it.

Categories

Resources