# OpenVpn client - do not route all traffic via VPN server

**URL:** <https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682>\
**Category:** Router\
**Created:** [July 23, 2019, 9:24pm UTC](https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682 "2019-07-23T21:24:20Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![pepper](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@pepper](https://forum.gl-inet.com/u/pepper)\
**Post date:** [July 23, 2019, 9:24pm UTC](https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682/1 "2019-07-23T21:24:20Z")

</div>

I have MT300N-V2 with the latest firmware. I have an open vpn server where I generated ovpn file and uploaded this into MT300N. VPN works but it routes all the traffic via VPN. I only want to have a VPN tunnel to my openvpn server so I have an access to the openwrt’s shell in MT300N.  
How can I do this?

I tried entering this in ovpn but it did not help:  
`pull-filter ignore "redirect-gateway"`  
If I use the same ovpn file from my ubuntu box using command `ovpn vpn_connection.ovpn`, it works and my internet traffic goes via gateway defined before connecting openvpn.

---

<div class="post-metadata">

**Author:** ![kyson-lok](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/kyson-lok/32/185_2.png) [@kyson-lok](https://forum.gl-inet.com/u/kyson-lok)\
**Post date:** [July 24, 2019, 2:47am UTC](https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682/2 "2019-07-24T02:47:28Z")

</div>

If you use mt300n, it should be v2.x firmware, so you can unticked the option “Force all traffic to VPN”.

---

<div class="post-metadata">

**Author:** ![pepper](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@pepper](https://forum.gl-inet.com/u/pepper)\
**Post date:** [July 24, 2019, 8:14am UTC](https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682/3 "2019-07-24T08:14:22Z")

</div>

Is this in the normal GUI or in the “advanced” luci gui?

---

<div class="post-metadata">

**Author:** ![kyson-lok](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/kyson-lok/32/185_2.png) [@kyson-lok](https://forum.gl-inet.com/u/kyson-lok)\
**Post date:** [July 25, 2019, 2:59am UTC](https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682/4 "2019-07-25T02:59:30Z")

</div>

On OpenVPN client page, can you see? If not, please take a screenshot.

---

<div class="post-metadata">

**Author:** ![pepper](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@pepper](https://forum.gl-inet.com/u/pepper)\
**Post date:** [July 26, 2019, 8:18pm UTC](https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682/5 "2019-07-26T20:18:08Z")

</div>

It is not there. See my screenshots. And the firmware is up to date (v 3.012).

 ![2019-07-26_19-45](https://forum-static.gl-inet.com/original/2X/9/9b10727c029ee0c6b7edab575b7d194f7e7ef52e.png)

---

<div class="post-metadata">

**Author:** ![pepper](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@pepper](https://forum.gl-inet.com/u/pepper)\
**Post date:** [July 26, 2019, 8:18pm UTC](https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682/6 "2019-07-26T20:18:42Z")

</div>

![2019-07-26_19-45_1](https://forum-static.gl-inet.com/original/2X/a/a5eb25c6021524475925d049ab1e03ee22a0bf8c.png)

---

<div class="post-metadata">

**Author:** ![pepper](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@pepper](https://forum.gl-inet.com/u/pepper)\
**Post date:** [July 26, 2019, 8:19pm UTC](https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682/7 "2019-07-26T20:19:14Z")

</div>

![2019-07-26_19-46](https://forum-static.gl-inet.com/original/2X/9/97053f859923c02238e34a619753c575eb635881.png)

---

<div class="post-metadata">

**Author:** ![kyson-lok](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/kyson-lok/32/185_2.png) [@kyson-lok](https://forum.gl-inet.com/u/kyson-lok)\
**Post date:** [July 27, 2019, 7:02am UTC](https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682/8 "2019-07-27T07:02:00Z")

</div>

It is v3.x firmware.

Please refer to this thread. [Openvpn configuration to avoid the default redirection (all through the VPN) - #6 by kyson-lok](https://forum.gl-inet.com/t/openvpn-configuration-to-avoid-the-default-redirection-all-through-the-vpn/6519/6)

---

<div class="post-metadata">

**Author:** ![Andreiko](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/7993a0/32.png) [@Andreiko](https://forum.gl-inet.com/u/Andreiko)\
**Post date:** [January 7, 2021, 10:06am UTC](https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682/9 "2021-01-07T10:06:40Z")

</div>

Hello, I have the problem.

192.168.0.1 - ovpn server

192.168.1.0 - subnet of home router (in which is OVPN server (192.168.0.1 configured)

192.168.99.0 - subnet of PADAVAN router (OVPN CLIENT 192.168.0.2)

192.168.3.0 - subnet of GL-INET MIFI router (OVPN CLIENT 192.168.0.7)

- from server subnet (192.168.1.1 i can access subnet (192.168.99.0 - subnet of PADAVAN router).

- from 192.168.99.0 - subnet of PADAVAN router i can access 192.168.1.0 subnet.

- from 192.168.3.0 - subnet of GL-INET MIFI router i can access both subnets 192.168.1.0 and 192.168.99.0

- from subnets 192.168.1.0 and 192.168.99.0 I cannot access subnet (192.168.3.0) of GL-INET MIFI router.

- on PADAVAN router has these functions enabled:

> Restrict Access from VPN Server Site: **No (Site-to-Site), using NAT translation**

> Obtaining DNS from VPN Server: **Replace all existing**

> Route All Traffic through the VPN interface: **Yes**

How I can enable same functions as are in PADAVAN router on GL-INET MIFI router? as I understand it’s not working routing because of these functions. Please help me with this. Thank You.

---

<div class="post-metadata">

**Author:** ![Andreiko](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/7993a0/32.png) [@Andreiko](https://forum.gl-inet.com/u/Andreiko)\
**Post date:** [January 8, 2021, 3:51pm UTC](https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682/10 "2021-01-08T15:51:17Z")

</div>

Resolved by myself. If You need some information, can write me.

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [October 29, 2025, 4:12am UTC](https://forum.gl-inet.com/t/openvpn-client-do-not-route-all-traffic-via-vpn-server/7682/11 "2025-10-29T04:12:20Z")

</div>


