V
V
VampiRUS2021-09-16 04:45:22
openvpn
VampiRUS, 2021-09-16 04:45:22

How to set up routing in openvpn from a client?

Good afternoon.
Given win10 pro. Connection via openvpn. After connecting, all traffic wants to go through vpn. I need only requests to 10.0.0.0/8 to go through vpn.
after connecting, the routes become like this

Сетевой адрес           Маска сети      Адрес шлюза       Интерфейс  Метрика
          0.0.0.0          0.0.0.0      192.168.1.1     192.168.1.94     50
          0.0.0.0        128.0.0.0    10.179.57.137    10.179.57.138    291
         10.0.0.0        255.0.0.0    10.179.57.137    10.179.57.138    291

Can this be configured from the client?
configuration
client
dev tun
proto tcp
 
remote server2 443
remote server1 443
nobind
 
cipher AES-256-CBC
auth SHA256
 
remote-cert-tls server
pkcs11-cert-private 1


auth-user-pass
 
verb 5

reneg-sec 0
 
<ca>
</ca>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Barbolin, 2021-09-16
@VampiRUS

route-nopull
route 10.0.0.0 255.0.0.0
#pull-filter ignore "route-gateway" # if the first two lines don't help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question