Trouble accessing local IP when connected to VPN

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
IcarusVPN
OpenVpn Newbie
Posts: 8
Joined: Sat Mar 19, 2016 3:14 am

Trouble accessing local IP when connected to VPN

Post by IcarusVPN » Tue Apr 24, 2018 12:08 am

Using the latest version of OPENVPN with my asus router.

I believe this might be just my laptop but can't figure out the issue.....


When I connect to my OpenVPN server with my android phone using the OpenVPN app, I have no issues. I can access local ip addresses no problem.

However, when I connect to OpenVPN with the ovm file on my laptop, I can connect (my asus router shows me as connected)
but I cannot access the local ip addresses in my browser (either chrome or ie)

One that is weird, is that I can connect to an ip address using tightVNC. Is this a port issue?

I just want to be able to connect to OpenVPN and be able to open 192.x.x.x in my browser and work on some of my local network devices.

Any ideas?

This what I get in my command window:
Mon Apr 23 19:58:31 2018 OpenVPN 2.4.5 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Mar 1 2018
Mon Apr 23 19:58:31 2018 Windows version 6.2 (Windows 8 or greater) 64bit
Mon Apr 23 19:58:31 2018 library versions: OpenSSL 1.1.0f 25 May 2017, LZO 2.10
Enter Auth Username:xxxxx
Enter Auth Password:
Mon Apr 23 19:58:35 2018 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
Mon Apr 23 19:58:35 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]xxxxxxxxxxxxxxx:1194
Mon Apr 23 19:58:35 2018 UDP link local: (not bound)
Mon Apr 23 19:58:35 2018 UDP link remote: [AF_INET]xxxxxxxxxxxxx:1194
Mon Apr 23 19:58:35 2018 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Mon Apr 23 19:58:35 2018 [RT-AC88U] Peer Connection Initiated with [AF_INET]xxxx
Mon Apr 23 19:58:36 2018 open_tun
Mon Apr 23 19:58:36 2018 TAP-WIN32 device [Ethernet] opened: \\.\Global\{xxxxxxxxxxxxxx}.tap
Mon Apr 23 19:58:36 2018 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.14/255.255.255.252 on interface {xxxxxxxxxxxxxx} [DHCP-serv: 10.8.0.13, lease-time: 31536000]
Mon Apr 23 19:58:36 2018 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Mon Apr 23 19:58:41 2018 ROUTE: route addition failed using CreateIpForwardEntry: Access is denied. [status=5 if_index=7]
Mon Apr 23 19:58:41 2018 env_block: add PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Mon Apr 23 19:58:41 2018 ERROR: Windows route add command failed [adaptive]: returned error code 1
Mon Apr 23 19:58:41 2018 ROUTE: route addition failed using CreateIpForwardEntry: Access is denied. [status=5 if_index=7]
Mon Apr 23 19:58:41 2018 env_block: add PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Mon Apr 23 19:58:41 2018 ERROR: Windows route add command failed [adaptive]: returned error code 1
Mon Apr 23 19:58:41 2018 Initialization Sequence Completed

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: Trouble accessing local IP when connected to VPN

Post by novaflash » Tue Apr 24, 2018 6:29 am

> Mon Apr 23 19:58:41 2018 ROUTE: route addition failed using CreateIpForwardEntry: Access is denied. [status=5 if_index=7]

There's your problem.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

IcarusVPN
OpenVpn Newbie
Posts: 8
Joined: Sat Mar 19, 2016 3:14 am

Re: Trouble accessing local IP when connected to VPN

Post by IcarusVPN » Wed Apr 25, 2018 12:42 am

Do you know what the solution would be?

IcarusVPN
OpenVpn Newbie
Posts: 8
Joined: Sat Mar 19, 2016 3:14 am

(SOLVED) Re: Trouble accessing local IP when connected to VPN

Post by IcarusVPN » Wed Apr 25, 2018 9:53 am

Actually, nevermind. It works but only when I use the gui.exe
So, normally I right clight the ovpn file and use "start openvpn on this config file.
That doesn't work

However, instead I went to the openvpn-GUI.exe
import the ovpn file and connect, I'm able to access local ips

Very weird. I guess I can only use the openvpn program (like on my mobile) to connect and access ip addresses in my browser.

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: Trouble accessing local IP when connected to VPN

Post by novaflash » Wed Apr 25, 2018 10:10 am

It's just about permission to run the route add command. OpenVPN GUI program takes care of that now by itself.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

Post Reply