R
R
Roc272021-10-07 12:25:35
VPN
Roc27, 2021-10-07 12:25:35

How to identify a PC through a VPN?

I welcome everyone.
There is a local network in which pk1 and pk2.
Mikrotik network router (MT1).
Router MT1 connects via VPN to Mikrotik MT2.
The MT2 router is connected to two providers P1 and P2.
It is necessary to make it so that PC1 connects to the P1 provider via VPN, and PC2 connects to the P2 provider.
How can MT1 send information to MT2 about whose packets belong to whom, so that MT2 directs them to the correct provider?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hint000, 2021-10-07
@hint000

How can MT1 send information to MT2 about whose packets belong to whom
It does this by default, unless you enable SNAT/masquerading on MT1. What address PC1 had, with that source address, the packet will come to MT2. You only need to specify the routes correctly.

R
Rsa97, 2021-10-07
@Rsa97

If routing is configured correctly, then packets on MT2 will arrive with sender addresses pk1 and pk2.
On P1 and P2 - default gateway MT1.
On MT1, the default gateway is MT2. NAT is not needed.
On MT2 - the route to the network from PC1 and PC2 through MT1.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question