Cannot access website residing on VPN server from Android

Post Reply
galgitron
OpenVpn Newbie
Posts: 2
Joined: Sat May 02, 2020 4:22 pm

Cannot access website residing on VPN server from Android

Post by galgitron » Sat May 02, 2020 4:43 pm

I am using OpenVPN on my server as a secure Internet tunnel for both my laptop and phone, which works splendidly. The laptop has access to the website hosted on the same server as the VPN Server, and the tracert shows the path through the VPN. The same client config and certs on the phone works flawlessly for every other website, except it hangs when trying to navigate to the host website (or ping, even though the IP resolves). I don't believe this is a server config issue or the laptop wouldn't be able to see the website. Tried all the settings in the Android OpenVPN IP/DNS/Routing and had no luck. Laptop and Android are on the same subnet 10.8.0.*.

Any ideas?

galgitron
OpenVpn Newbie
Posts: 2
Joined: Sat May 02, 2020 4:22 pm

Re: Cannot access website residing on VPN server from Android

Post by galgitron » Sat May 02, 2020 6:04 pm

Discovered the laptop honored server-provided routes that push requests for the server's IP outside the VPN. On android, this doesn't work when android's VPN settings are configured to not allow connections outside VPN. Workaround was to disable not allowing connections outside VPN (not happy about that), and then configure OpenVPN client to allow a dedicated junk browser app to bypass the VPN, which I'll use exclusively to navigate the website on the VPN server. Lesson here is, have a dedicated IP address for your OpenVPN portal.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7556
Joined: Fri Jun 03, 2016 1:17 pm

Re: Cannot access website residing on VPN server from Android

Post by TinCanTech » Sat May 02, 2020 7:20 pm

That behaviour is caused by --redirect-gateway

Post Reply