Page 1 of 1

Google Pixel and OpenVPN

Posted: Mon Jan 23, 2017 4:09 pm
by Majesty00
Hello,

First time I post here! Hello! :-)

I've replaced my Nexus 5X with a Google Pixel. Ever since, I can connect to my VPN (configured on my DS214) using "OpenVPN for Android", but I can't browse my local devices or services (Plex, DS file, DS get, DS video, ...) when connected to a cellular network, but it works if I'm connected to a WiFi. There's only one difference between the two when I connect to my VPN. The IP.

Indeed, when connected to a WiFi, as a success message, I see "SUCCESS, <local IP>, <"internet" IPv4>,<port>" and when connected on my cellular network, I get "SUCCESS, <local IP>, <"internet" IPv6>,<port>".

You can see what I mean with my picture below. Of course, I've hidden my IP, but if might give you a better idea of what I mean.

Image

Anyone has any idea of what my problem might be?

Thank you!

N.B.: Please take note that I've tried another device, a OnePlus X running Marshmallow, and it works flawlessly.

Re: Google Pixel and OpenVPN

Posted: Mon Jan 23, 2017 4:28 pm
by TinCanTech
Does the Pixel device have openvpn log file ?

Re: Google Pixel and OpenVPN

Posted: Mon Jan 23, 2017 8:31 pm
by Majesty00
Yes, it does. :-)

Here it is: https://dl.dropboxusercontent.com/u/6002540/VPNLog.txt

Just to be on the safe side, I've replaced my IPv6 with <IPv6>, DNS with <DNS> and my email with <email>. TARDIS is my Synology DS214. My router is a WRT160N v3 running Shibby's Tomato 1.28 (running tomato-K26-1.28.RT-MIPSR2-138-MiniIPv6. I know, it's IPv6, but it's disabled on my router).

Thanks!

Re: Google Pixel and OpenVPN

Posted: Mon Jan 23, 2017 10:12 pm
by TinCanTech
Your log appears to be ok .. can the client ping the server 10.8.0.1 ?

Regarding the changing client IP address changing from .6 to .10; they are the normal first two client addresses in NET30 topology. You can use --explicit-exit-notify 3 in the client config and then the server will know the client has disconnected.

Re: Google Pixel and OpenVPN

Posted: Mon Jan 23, 2017 11:58 pm
by Majesty00
Well, that's the funny part... I can ping every devices ont my LAN (192.168.1.1 (Windows PC), 192.168.1.2 (Windows PC), 192.168.1.60 (Synology DS214 NAS), 192.168.1.75 (Router), etc...) when I'm connected to the VPN, including 10.8.0.1...

I'm not very sure now that the problem is my OpenVPN configuration on my NAS... It ran well when I had a Nexus 5X (and it runs as intented on a OnePlusX). I don't know what's wrong with the Pixel... :-/

I've looked around in my router and set a Static Routing up (read that on the DD-WRT forums), but it didn't fix the problem. I never had to set a routing before. I simply forward the 1194 port requests to my NAS and that's it. :-/

Re: Google Pixel and OpenVPN

Posted: Tue Jan 24, 2017 1:21 pm
by TinCanTech
Does the Pixel only have IPv6 address when using cellular ? Before you run openvpn.

Also note: OpenVPN 2.5-icsopenvpn is built by google to my knowledge ..
so it may not work the same as real openvpn .. I don't have much info on that.

Re: Google Pixel and OpenVPN

Posted: Tue Jan 24, 2017 1:36 pm
by Majesty00
I don't think it does. I've added "proto udp4" to my VPN config (on my Pixel) and I'm now getting an IPv4 and I still have the problem... It might be caused by my Synology NAS. I've found someone with a similar problem on their forum.

I've tried my VPN at my job (from a Windows PC) and it works flawlessly too. So, it really is my new phone. Or a mix of the 2 devices. :-/