Community discussions

MikroTik App
 
vellanix
just joined
Topic Author
Posts: 2
Joined: Wed May 20, 2020 3:19 pm

How to reach address in routerOS openvon client

Thu May 21, 2020 3:47 pm

I have a lte router with openvpn client connected to my opevpn server.
The tunnel is 10.8.0.0/24 wit the server (CentOS 7) as 10.8.0.1 and the mikrotik 10.8.0.2.

How can I reach the other addresses on the router 192.168.1.0/24 from the Openvpn server?

Thank you
Carlo
 
User avatar
mutluit
Long time Member
Long time Member
Posts: 505
Joined: Wed Mar 25, 2020 4:04 am

Re: How to reach address in routerOS openvon client

Thu May 21, 2020 7:15 pm

What does "/ip route print" say?
Have you tried adding static routes either via CLI or in GUI?
A simple drawing of the network topology would be useful.
 
sindy
Forum Guru
Forum Guru
Posts: 5099
Joined: Mon Dec 04, 2017 9:19 pm

Re: How to reach address in routerOS openvon client

Thu May 21, 2020 7:23 pm

Look at the server implementation of OpenVPN as at a separate router. Adding a route to the client's LAN subnet to the server's kernel routing table via an OpenVPN virtual interface just tells the kernel to send the packets for these addresses to OpenVPN, but you have to tell OpenVPN itself which subnet(s) are reachable through which tunnels (clients). Check the role of the iroute option in OpenVPN's client configuration file.
Instead of writing novels, post /export hide-sensitive. Use find&replace in your favourite text editor to systematically replace all occurrences of each public IP address potentially identifying you by a distinctive pattern such as my.public.ip.1.

Who is online

Users browsing this forum: Maggiore81, td32 and 86 guests