# Openvpn configuration to avoid the default redirection (all through the VPN)

**URL:** <https://forum.gl-inet.com/t/openvpn-configuration-to-avoid-the-default-redirection-all-through-the-vpn/6519>\
**Category:** Router\
**Created:** [March 27, 2019, 7:41pm UTC](https://forum.gl-inet.com/t/openvpn-configuration-to-avoid-the-default-redirection-all-through-the-vpn/6519 "2019-03-27T19:41:56Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [April 1, 2019, 8:35am UTC](https://forum.gl-inet.com/t/openvpn-configuration-to-avoid-the-default-redirection-all-through-the-vpn/6519/6 "2019-04-01T08:35:38Z")

</div>

We had disabled LAN forward to WAN when OpenVPN is started, to avoid data leakage. In your usage scenario, you have to ssh to the router, and edit the file **/etc/init.d/startvpn** and **/etc/vpn.user**. Please delete or comment on those lines, and restart the VPN client, but it might has potential data leakage.

![image](https://forum-static.gl-inet.com/original/2X/3/3263ac3c9af57edd09a96daffd5446ac954bba63.png)

 ![image](https://forum-static.gl-inet.com/original/2X/e/e98f4bff2523a609340f2bfa12b19774f5688bc7.png)

---

_[View the full topic](https://forum.gl-inet.com/t/openvpn-configuration-to-avoid-the-default-redirection-all-through-the-vpn/6519)._
