Vpn between same ip-range

I have to set up a vpn connection to a server with the same ip-range as my own network.(192.168.1.X)
After the vpn connection is made i have to point to a internal website by ipaddress.
At this moment this is not possible. What is the best solution to get this work. It is no option to change one of the two ip-ranges. So i have to work with routes (if that is possible at all) or connecting the vpn through another device.
Can anyone give me advice in this matter
LVL 1
RemijAsked:
Who is Participating?
 
Rob WilliamsCommented:
You cannot have the same subnets at either end of the tunnel. This is a basic VPN/routing rule. Packets are forwarded based on the subnet to which they belong. If they are the same at either end of the tunnel, the routing devices will keep the packets within the local network segment and not forward them. You must make changes. You could split the local subnets to something like 192.168.1.0/26 (subnet mask 255.255.128) which would allow 192.168.1.0-127 at one site and 192.168.1.128-255 at the other, but this is as much work as changing the local subnet to something completely different.  This is why when setting up a network it is a good idea to avoid the common/default subnets like 192.168.0-2.0, 192.168.100.0, 10.0.0.0, 10.10.10.0, and 172.16.0.0

Having said all of that I have seen it done with high end Cisco routers.

If it is a single IP you could also try adding a route. Assume for example the remote server IP is 192.168.1.123 and the VPN gateway IP is 192.168.1.254:
route add -p 192.168.1.123 mask 255.255.255.255 192.168.1.254
You would also have to add a matching return route to the remote device (192.168.1.123) pointing to the device on which you applied the route.
0
 
JohnBusiness Consultant (Owner)Commented:
Why is it not possible to change your home IP range? Very easy to do in any home system I have ever seen. I do understand the issue at the server end. VPN's do not like the same subnet, so by a wide margin, the simplest answer is to change the home IP range.
... Thinkpads_User
0
 
RemijAuthor Commented:
Both ranges are in server environments so changing them is not an option
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.