giurti
May 31, 2023, 12:32pm
1
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.
Version:
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.
Why
egc
May 31, 2023, 1:43pm
2
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
3 Likes
Thanks.
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.
egc
June 1, 2023, 8:03am
4
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).
2 Likes
Solved.
UDP port forwarding needs your configurazione.
Thanks
1 Like
system
Closed
June 11, 2023, 1:24pm
8
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.