VPN Issue - successful connection through mobile (iPhone Hotspot) but unsuccessful through home WIFI

6,036

With the further information you have supplied it looks like your issue is due to your router resolving the IP to an address in you local network.

Whilst this could be handled by creating routing tables I advise changing the range of one of your routers.

Looking at the image of the second router you have attached I would advise to change to the following:

Internet-Box IP Address: 192.168.2.1
Subnet Mask: 255.255.255.0

Leave "IP address Application part" setting on "Automatic"

DHCP Range from 192.168.2.101 to 192.168.2.161

You should now be able to communicate with devices through the VPN on the 192.168.1.1/24 subnet/range.

If you have any devices on a static IP in the network that you are changing this on you will need to update them with the same range of 192.168.2.* with the following details:

IP Address: 192.168.2.X (X being a number outside of the DHCP range)
Subnet Mask: 255.255.255.0
DNS: 192.168.2.1
Gateway: 192.168.2.1
Share:
6,036

Related videos on Youtube

Redondo
Author by

Redondo

Updated on September 18, 2022

Comments

  • Redondo
    Redondo over 1 year

    I need to connect from home to the office's internet network to access the different printer control panels and NAS server. Since the router we have in the office does not have the possibility to configure a VPN by default, I have configured a vpn L2TP/IPSEC on the myQNAP NAS.

    The computer with which I try to connect is a Macbook pro. I configured the VPN on the mac, and tried to connect. When I'm connected to the internet via my home WIFI, despite the VPN working I can't access any IP address in the office network (such as the configuration address of the router 192.168.1.1 or the address of the NAS or printer).

    On the other hand, when I am connected to the Internet via Hotspot USB/4G network of my iPhone, with the same VPN activated on the macbook, I can successfully access all the addresses mentioned above.

    Given the situation I imagine that the problem is not in the VPN configuration on the NAS, nor the VPN configuration on my laptop. Probably there is something that goes in conflicts when I connect via the home WIFI or in the WIFI settings of my laptop.

    Could you please help me? I really need to be able to connect.

    1 Router 2 Router

    • CraftyB
      CraftyB over 5 years
      Are the network ranges/subnets both the same at your office and home. Example: home network - 192.168.1.0/24, office network 192.168.1.0/24?
    • Redondo
      Redondo over 5 years
      @CraftyB I have added 2 screenshot on the topic so that you can have a look at the different ranges/subnets. And yes it seems they are the same ranges/subnets. How should I change them to make everything work? I would prefer to change the set up on the second router rather than the first one. Thank you for your reply!
  • Redondo
    Redondo over 5 years
    Thank you! It worked like a charm! Actually I did try already before writing this post, but it didn't work, and the reason I think is because after I changed the ranges I didn't deactivate and reactivate the wifi so that my computer could check the differences on the WIFI set up. In any case thank you!