linux openvpn client connected to mikrotik server - limit access?

Hello ,
I have setup Mikrotik router as OpenVPN server using this guide
https://www.medo64.com/2016/12/simple-openvpn-server-on-mikrotik/
and a linux computer as client
and it’s working
I can reach the client using the vpn

my question is - I want the linux computer to use the vpn only for the comuters on the vpn netwroks and not use the vpn as gateway
is it something to be change in the Mikrotik router or is the conf file on the linux ?
right now the client get 192.168.30.111/24 , the vpn server is 192.168.30.254/24
this is the client.conf file

client
dev tun

proto tcp
remote MyServerIP 1199

resolv-retry infinite
nobind

persist-key
persist-tun

# Path to your certificates (ca.crt, client.crt, and client.key)
ca /home/pi/Documents/CRT/ca.crt
cert /home/pi/Documents/CRT/client.crt
key /home/pi/Documents/CRT/client.key

remote-cert-tls server
cipher AES-128-CBC
auth SHA1
auth-user-pass
redirect-gateway def1
verb 3

The “redirect-gateway” sounds like what you’re looking for to get rid of.

change it to what ?
ot leave it as it is ?
what if I want to give 2-3 netwroks access from the vpn?

Thanks ,

I’d remove it. And if you want some routes through vpn, you can add them like this:

route 10.0.2.0 255.255.255.0
route 192.168.8.0 255.255.248.0
...

Thanks I will try it