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

    Policy routing through separate gateway painfully slow

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 1 Posters 735 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.
    • J Offline
      jasonlitka
      last edited by

      I've been trying to separate the OpenVPN connections from my main pfSense box out to a separate virtual and it isn't going well.  If I policy route through the OpenVPN connection on the main box, everything performs well. If I connect to the vLAN on the virtual and policy route through the OpenVPN connection there, everything performs well.  If I connect to the main box, route through a gateway on a vLAN connected to the virtual, and then policy route through the OpenVPN connection there, I get 85-90% of the normal downstream and literally a couple kbit/s upstream.

      Here's a rough idea of how things are setup.

      Main pfSense
      LAN - vLAN 1, 192.168.218.1/24, no gateway (but a few static routes to my L3 switch for other vLANs which don't need to be filtered)
      WAN - DHCP, Verizon FiOS
      TRAN_101 - vLAN 101, 10.21.101.2/29, gateway of 10.21.101.1, this vLAN is not routed on the L3 switch
      VPNNEWARK - OpenVPN connection to a server I control in Newark, NJ

      VPN pfSense
      WAN - 10.21.96.22/24, gateway of 10.21.96.254 (this is the L3 switch mentioned above), web admin accessible
      TRAN_101 - 10.21.101.1/29, no gateway, this vLAN is not routed on the L3 switch
      VPNNEWARK - OpenVPN connection to a server I control in Newark, NJ

      There are a few other VPN connections I also want to move in this manner (each getting a vLAN for transit network, with a single rule on the second pfSense to policy route through the VPN tunnel) but they're not listed above since I haven't even gotten the first working correctly.

      Any thoughts?

      I can break anything.

      1 Reply Last reply Reply Quote 0
      • J Offline
        jasonlitka
        last edited by

        Ok, If I Double NAT the performance issue goes away.  I guess that means it is an asymmetric routing problem.  I explicitly added a gateway to the VPNNEWARK rule, forcing traffic back to 10.21.101.2, but it didn't make a difference and everything still didn't work.

        I can break anything.

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