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