Answer the question
In order to leave comments, you need to log in
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
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
# имя интерфейса может отличатся
/ip firewall nat
add action=masquerade chain=srcnat dst-address-list=192.168.0.0/24 out-interface=pptp-out1
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question