S
S
Shamil2016-01-08 18:25:53
network hardware
Shamil, 2016-01-08 18:25:53

How to do routing in Mikrotik?

In general, there are 2 offices with external ip, a pptp server has been set up on them.
I bought a hex lite at home today, for general development., but so far, nothing in any))
VPN rises from me to the office, but I can’t ping the internal ip of microtics (only ip vpn is pinged - i.e. vpn ip - 10.1 .1.1 internal 192.168.0.121).
If you run a vpn connection in Windows, then everything starts normally, and I see all local resources, but through Mikrotik I can’t get into any (I ping in Mikrotik itself).
I feel that the problem is in the routes, because when tracing the address 192.168.0.121 - my traffic goes through my provider, and then stupidly dies.
can someone tell me, otherwise I don’t even have ideas

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergei E., 2016-01-08
@jawakharlal

Firstly, you need to register a route to the office, PPTP cannot issue them dynamically, so you need to add them manually:

# имя интерфейса может отличатся
/ip route add dst-address=192.168.0.0/24 gateway=pptp-out1

after which the remote router and devices behind it should ping.
Secondly, in order for devices sitting behind hEX lite to gain access to the office network without interfering with the configuration of the remote side's router, you need to configure NAT:
# имя интерфейса может отличатся
/ip firewall nat
add action=masquerade chain=srcnat dst-address-list=192.168.0.0/24 out-interface=pptp-out1

For the second connection - similarly.

M
Maksim, 2016-01-08
@chumayu

So the thoughts are right - routing, try to figure it out yourself (for general development)
In short:
Each of the parties must know each other's networks (if NAT is not used)
Plus advice draw for yourself (first of all) the topology of what you want to do ... and there and the answer is almost ready

S
Shamil, 2016-01-08
@jawakharlal

30d6ce36b60a4ff6b80f096e35276068.jpg
I am attaching a diagram to make it clearer
Maksim

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question