I
I
Ivan Bragin2014-11-23 01:55:36
Computer networks
Ivan Bragin, 2014-11-23 01:55:36

How to access the same ip from different subnets at the same time?

We have
Network A. ip 192.168.0.0/24. Win2003 router. open VPN server.
Network B. ip 192.168.0.0/24. Router CentOS 7. OpenVPN client.
The networks are in different places. Physically unrelated. No unification or intersection was ever planned. It just happened.
It is necessary
On the router of network B to have access to a device in network A, let's say with ip A-X. For this, OpenVPN was raised. The problem is that at the same time it is necessary to have access to a device in network B with the corresponding ip BX. It's not a problem one by one - I corrected the interface in the route and it's ready, but at the same time ...
Is this possible? or all the same, one network will have to move, say, to 192.168.1.0/24 (which would not be desirable).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Power, 2014-11-23
@aywan

Almost your case: habrahabr.ru/post/117320 . The main idea is to create an "alias" (network with different addresses) and use iptables NETMAP.
UPD: Although, if you think about it, iptables should be used on router A, and you have windows there, so I don’t even know ...

A
Armenian Radio, 2014-11-23
@gbg

If we are talking about exactly one device, it is easier to tunnel through ssh to it.
on windows machine:
plink -N -R *:5555:deviceip:deviceport remote-ip
now deviceport on deviceip device from network with windows machine can be connected from centos network to centos server address on port 5555

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question