Openwrt, openvpn and udp port forwarding not working

I'm try configuring port forwarding from wan to openvpn. It works fine with TCP mode, but do not works whit UDP mode.

It works fine whitout port forwording; I try configuring traffic rule to allow UDP traffic from 1194 WAN port to 1194 device port: it works fine.

OpenWrt 22.03.3 r20028-43d71ad93e / LuCI openwrt-22.03 branch git-23.039.29681-007c243. Router Netgear WNDR3700 v2.

Before of this version, I had old version openwrt-15.05.1: UDP port forwarding worked fine with that old version.


Not sure how you have setup.

If you have the OpenVPN server running on the router itself you need a Traffic Rule to allow port 1194.

If the OpenVPN server runs on another client in your LAN then you have to port forward to that client.

I have an OpenVPN server running on my router and have this traffic rule:

Furthermore the OpenVPN interface is added to the LAN zone to allow traffic


My openvpn runs on my router. If I try your same traffic rule setting, it works fine. But I need to change the inbound port on wan inteface. If I try to configure a port forward rule from 53 wan port to 1194 lan port, it works fine in tcp mode, but do not works in UDP mode.

You can choose most any port you want for the OpenVPN server in the OpenVPN config so that you do not need a port forward but can use a Traffic rule.

Port 53 might not be a good choice as that can already be in use for DNS.

1 Like

I try many ports, (ex. 8081): udp forwarding do not work never.
I need 53 udp port because that is only port not blocket from my office's firewall.

Try a redirect to the wan port (without specifying destination zone and internal ip address).



UDP port forwarding needs your configurazione.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.