Community discussions

MikroTik App
 
User avatar
vader7071
newbie
Topic Author
Posts: 39
Joined: Tue Jan 07, 2014 9:44 pm

L2TP/IPSec VPN - No access from inside the network

Fri Dec 28, 2018 5:51 pm

My son has a Samsung Tab A tablet with Cell-Data/WiFi. My end goal is that when my son has his tablet away from the house, his tablet connects to my home CR109 via an L2TP/IPSec VPN (I am doing this because we have some specific filters set up for him and I want to keep them active at all times). I have the Samsung tablet set to have the VPN "always on".

I have the VPN setup and it works perfect when he is not on our home wifi network. But when he connects to the network in the house, the VPN connection fails, and he cannot access the internet.

I am not sure what configuration settings you may need to see, but I will provide any information needed to help with this.

My network setup is 192.168.15.xxx. When the tablet connects inside the network, the DCHP server sets the IP address to 192.168.15.62. When the tablet connects via the VPN, the remote address is set to 192.168.15.29.

What am I doing wrong? Thank you in advance for your help!
 
User avatar
leoservices
Trainer
Trainer
Posts: 169
Joined: Fri Jan 13, 2012 2:20 am
Location: Belo Horizonte - MG - Brazil
Contact:

Re: L2TP/IPSec VPN - No access from inside the network

Fri Dec 28, 2018 8:00 pm

Do the following test:

-> PPP -> Secret - Set the IP of the tunnel to another for example Local 192.168.20.1 Remote 192.168.20.2
 
User avatar
vader7071
newbie
Topic Author
Posts: 39
Joined: Tue Jan 07, 2014 9:44 pm

Re: L2TP/IPSec VPN - No access from inside the network

Sat Dec 29, 2018 11:19 pm

Thank you.

Here is what I have, and the results:
/ip dchp-server leases mac-address=11:22:33:44:55:66 make-static=yes address=192.168.15.62

/ppp secret name=taba service=l2tp profile=default-encryption local-address=192.168.20.60 remote-address=192.168.20.61

/ppp profiles name=default-encryption local-address=192.168.15.26 remote-address=vpn-pool dns-server=8.8.8.8

/ip pool name=vpn-pool addresses=192.168.15.30-192.168.15.39 next-pool=none
I have the tablet connected to my wifi, and the VPN still says unsucessfull, and without the VPN, the tablet will not connect to the internet.

The fact that no VPN means no internet on the tablet, I am good with. However, I just need the tablet to be able to connect to the VPN when the tablet is on my wifi in the house.
 
User avatar
vader7071
newbie
Topic Author
Posts: 39
Joined: Tue Jan 07, 2014 9:44 pm

Re: L2TP/IPSec VPN - No access from inside the network

Tue Jan 22, 2019 2:50 am

@leoservices , have you had a chance to look at my setup? I'm hoping to get this resolved soon. Thank you for your help.

Who is online

Users browsing this forum: No registered users and 5 guests