Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Openvpn client access Rustdesk server

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 48 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      Farh
      last edited by

      Hi
      i have a very strange problem with openvpn and rustdesk (a remote desktop software like anydesk) if you familiar with.
      we have a internal rustdesk server in company that is not on the same PCs subnet. i know it's dockerized and a firewall is between subnets but i don't have access to it..
      i want to access resources like shares, VOIP, rustdesk, etc outside of company.
      i setup a pfsense in proxmox with a free static public ip address as WAN and a free static IP inside PCs network as LAN and created a openvpn server on both UDP and TCP v4 on different port.
      then add rustdesk range ip via openvpn push route on both servers.and allow it via firewall rules.
      finally i created a outbound nat that set every packet leave LAN frem OPENVPN networks get LAN IP so rustdesk server see it exactly like PCs.

      i tested it on android, Windows and linux on both UDP and TCP server and see exactly same behavior on all of them:
      VPN connection established successfully.
      client get route correctly.
      if my client internet id like FTTH or ADSL everything works fine but if i connect to internet using mobile networks like phone hotspot or LTE irustdesk says "failed to connect to relay server" while other resources like VOIP and shares work correctly.
      it getting more strange when i noticed if i switch from fiber internet to mobile hostspot without disconnecting from VPN it continue to working correctly but when i disconnect and reconnect error appeared..
      i use telnet to check and it's successfuly establish connections to rustdesk ports..
      i checked packet capture and connections are sent and getting response.
      unlike rustdesk documentation relay server use TCP and NOT UDP when it works and when it getting error.
      my search over internet and asking chatgpt has no success. it only tells me about CGNAT but how it can affect while tunnel are encrypted and other resources worked and even telnet is successful.
      i really confused and i work on it for several days now with no success.
      any suggestion?
      thanks

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.