Community discussions

MikroTik App
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Topic Author
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Same private network on each side of a VPN. It's posible?

Tue May 25, 2010 1:26 pm

Hello,

I want to make a PPTP or L2TP VPN between 4 hotels and I want to keep the private network with 192.168.1.0/24 in all the hotels.

Can I make it?

The reason is that our ISP has the default IP address 192.168.1.1, and we need that if they change one router because is dead.. we don't need to change nothing in this router configuration to give connectivity to all computers and work via VPN.

There is something like address translation? I would have a routeros on each side with static public IP in the ADSL router, directly connected to my routeros.


Thanks,
 
JorgeAmaral
Trainer
Trainer
Posts: 199
Joined: Wed Mar 04, 2009 11:53 pm
Location: /ip route add type=blackhole

Re: Same private network on each side of a VPN. It's posible

Tue May 25, 2010 3:17 pm

Hi Martin,

You need proxy-arp.

Kindly regards,

Jorge
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Topic Author
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: Same private network on each side of a VPN. It's posible

Tue May 25, 2010 5:05 pm

Hi,

If I have 192.168.1.34 in the hotel1 and the same IP in the hotel2, I will have problems? It's what I need.. Try to avoid make changes there.. I want to know if I can create a "virtual" IP ranges without change the real private IPs.
 
-headstrong-
Member
Member
Posts: 377
Joined: Thu Jun 05, 2008 8:04 pm
Location: South Africa

Re: Same private network on each side of a VPN. It's posible

Tue May 25, 2010 5:49 pm

Create a masquerade rule, out the VPN interface, but with the source IP of 192.168.1.34.....?
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Topic Author
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: Same private network on each side of a VPN. It's posible

Tue May 25, 2010 6:25 pm

Must use masquerade 192.168.1.0/24.

This will work? I didn't make something like this.. never..
 
-headstrong-
Member
Member
Posts: 377
Joined: Thu Jun 05, 2008 8:04 pm
Location: South Africa

Re: Same private network on each side of a VPN. It's posible

Tue May 25, 2010 8:21 pm

Well what are your routing requirements?

Does 192.168.1.34 at hotel 1 need to access 192.168.1.34 at hotel 2? That will be an issue..

You could create a "virtual" ip range and do port forwarding at each router...eg

private IP: 192.168.1.34

Hotel1: lobridge IP 192.168.2.34 but DNAT to 192.168.1.34
Hotel2: lobridge IP 192.168.3.34 but DNAT to 192.168.1.34
Hotel3: lobridge IP 192.168.4.34 but DNAT to 192.168.1.34
Hotel4: lobridge IP 192.168.5.34 but DNAT to 192.168.1.34

Then 192.168.1.34 at hotel1 can access 192.168.1.34 at hotel2. Hotel1 would ping 192.168.3.34 which would ping 192.168.1.34 at hotel2

Make sense? Not sure if the above will work tho
 
-headstrong-
Member
Member
Posts: 377
Joined: Thu Jun 05, 2008 8:04 pm
Location: South Africa

Re: Same private network on each side of a VPN. It's posible

Tue May 25, 2010 8:23 pm

proxy arp might do the trick tho, depending on your needs

Who is online

Users browsing this forum: No registered users and 8 guests