Community discussions

MikroTik App
 
torrington
just joined
Topic Author
Posts: 22
Joined: Mon Sep 04, 2017 7:05 pm

OpenVpn with split tunnel

Sun Sep 11, 2022 5:45 am

Hello, I am using ovpn to connect clients to mikrotik router on headquarters. My only concern is that once clients connect to the vpn, all internet traffic goes through the headquarters router and their public ip became the one from the headquarters. What I need to accomplish is that clients can use their own internet connection and keep their public ip while still accessing the vpn.

The configuration on the client openvpn is the following:

dev tun
proto tcp-client
remote "ip of headquarters"
port 1194
nobind
persist-key
persist-tun
tls-client
remote-cert-tls server
ca cert_export_CA.crt
cert cert_export_xxx.crt
key cert_export_xxx.key
verb 4
mute 10
cipher AES-256-CBC
auth SHA1
auth-user-pass
auth-nocache
redirect-gateway def1

Any help is deeply appreciated

Who is online

Users browsing this forum: Elvis1991, jaclaz and 39 guests