Community discussions

MikroTik App
 
m4g1c14n
just joined
Topic Author
Posts: 6
Joined: Thu May 03, 2012 7:46 pm

Is it possible for VPN Server assign Remote Address from Local Subnet For Road Warrior VPN Client

Sat Apr 24, 2021 9:43 am

Normally VPN will create new SUBNET for VPN Road Warrior Client ( Not Mikrotik-to-Mikrotik but Client-to-Mikrotik )

RouterBoard :
WAN IP : 1.2.3.4
LAN1 : 192.168.1.1 ( also act as Gateway & DHCP for all locally connected to all 192.168.1.0/24 devices )
LAN-VPN : 192.168.2.1 ( and it will give out the 192.168.2.0/24 subnet address for any Client connecting to this VPN )

RoadWarrior Windows VPN Client :
LAN1 : 192.168.0.2 ( connect to 192.168.0.1 TPLINK Router as GATEWAY to WAN IP 2.3.4.5, and also connected to all 192.168.0.0/24 devices )
LAN-VPN : 192.168.2.2 ( and of course I can easily access all network on 192.168.1.1 by setting the routing table that route all 192.168.1.0/24 to 192.168.2.1 )

If I want to achieve the following, is this possible?

RouterBoard :
WAN IP : 1.2.3.4
LAN1 : 192.168.1.1 ( also act as Gateway & DHCP for all locally connected to all 192.168.1.100-192.168.1.200 devices )
LAN-VPN : 192.168.1.1 ( it will give out the 192.168.1.50-192.168.1.99 address for any Client connecting to this VPN )

RoadWarrior Windows VPN Client :
LAN1 : 192.168.0.2 ( connect to 192.168.0.1 TPLINK Router as GATEWAY to WAN IP 2.3.4.5, and also connected to all 192.168.0.0/24 devices )
LAN-VPN : 192.168.1.50

So this way every single locally connected devices 192.168.1.100-192.168.1.200 can connect to every single remotely connected devices 192.168.1.50-192.168.1.99, and also the other way around without needing any ADDITIONAL routing table because all devices ( local / remote ) access the same Gateway IP for 192.168.1.1 by default

Who is online

Users browsing this forum: Bing [Bot] and 46 guests