# GL-AR300M port forwarding from Wan to Lan when VPN is on DOESN'T WORK

**URL:** <https://forum.gl-inet.com/t/gl-ar300m-port-forwarding-from-wan-to-lan-when-vpn-is-on-doesnt-work/11127>\
**Category:** Router\
**Created:** [June 13, 2020, 11:21am UTC](https://forum.gl-inet.com/t/gl-ar300m-port-forwarding-from-wan-to-lan-when-vpn-is-on-doesnt-work/11127 "2020-06-13T11:21:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![polarstar11](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/p/838e76/32.png) [@polarstar11](https://forum.gl-inet.com/u/polarstar11)\
**Post date:** [June 13, 2020, 11:21am UTC](https://forum.gl-inet.com/t/gl-ar300m-port-forwarding-from-wan-to-lan-when-vpn-is-on-doesnt-work/11127/1 "2020-06-13T11:21:06Z")

</div>

need to reach lan ip from wan when ovpn is active

I created a port forward from wan to lan for a specific port/ip. It works when ovpn is not active. When ovpn is active does not work. Of course is needed an additional setup. I made many different setup but none of it works

---

<div class="post-metadata">

**Author:** ![robotluo](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/robotluo/32/17434_2.png) [@robotluo](https://forum.gl-inet.com/u/robotluo)\
**Post date:** [June 15, 2020, 7:26am UTC](https://forum.gl-inet.com/t/gl-ar300m-port-forwarding-from-wan-to-lan-when-vpn-is-on-doesnt-work/11127/2 "2020-06-15T07:26:16Z")

</div>

You can try adding the following firewall rules.

```auto
iptables -I FORWARD -m conntrack --ctstate DNAT -j ACCEPT

```

---

<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:10am UTC](https://forum.gl-inet.com/t/gl-ar300m-port-forwarding-from-wan-to-lan-when-vpn-is-on-doesnt-work/11127/3 "2025-10-29T04:10:47Z")

</div>


