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

    2Wan , OpenVPN - static routes not working

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 3 Posters 1.2k Views
    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.
    • D
      drummer
      last edited by

      Hi all,
      i am fighting with openvpn configuration with pfsense. I have 2 WAN and 1 LAN interface configured.
      1.WAN1 -main
      2. WAN2 - will be used just for openvpn
      3. LAN
      I want to configure openvpn client to connect to a server via WAN2, but when i check packets, it is routed via WAN1 (default gateway).
      I have added static route in pfsense:
      VPNserverIP/32 gateway: WAN2;
      but still wants to connect via WAN1.
      Any ideas?

      Thanks very much

      1 Reply Last reply Reply Quote 0
      • D
        deltalord
        last edited by

        Have you checked under OpenVPN: Client the dropdown menu besides Interface? There you can specify which iface should be used to establish the OpenVPN Connection. From there, it's all a question of NAT and Firewall rules.

        1 Reply Last reply Reply Quote 0
        • C
          cmb
          last edited by

          Don't add static routes, pick the appropriate interface in the OpenVPN config.

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