L
L
leoders2019-03-28 18:41:18
linux
leoders, 2019-03-28 18:41:18

L2tp: centos-server + mikrotik-client. How to set up routing?

Good afternoon. There is a server on Centos 6, l2tp/ipsec+psk is running on it.
Local network address behind the server: 192.168.32.0/24. server address: 192.168.32.1
Tunnel network: 10.33.32.0/24.
And there is a Mikrotik with routeos 6, which should cling to Centos as a client and unite both networks. I configured the client (ppp - interfaces + l2tp client, entered the server address, login, password, key) clings, and I see its connection on the server. But, Mikrotik sees only 10.33.32.1. to ping to 192.168.32.1, Mikrotik replies with its external address that net unreachable, although there is an entry about the 192.168.32.0/24 network through the l2tp_vpn gateway in ip - routes. I tried to manually write
/ip address add address=192.168.32.0/24 interface=L2TP_VPN
The result is the same. 10.33.32.1 I see. 192.168.32.1 - I don't see it.
Where could I mess up with routing? Why does Mikrotik try to send network traffic 192.168.32.0/24 through its external gateway, and not through the raised l2tp interface?
Thank you.
upd: I'm sorry, the address from which I receive net unreachable is an address from my provider's network. but all the same, the essence is that Mikrotik is looking for the local centos through its external interface, and not through the tunnel

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question