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

    VPN traffic going through wrong WAN connection

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 789 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
      jcalhoun
      last edited by

      Hello,

      I have OpenVPN all set up and running. Road warrior setup.

      I am able to connect to the VPN, access the LAN, and internet.

      Problem is we have 2 WAN connections. The VPN is setup to receive connections from let's call it WAN1. Whenever I connect to the VPN and then access the internet all the traffic is going though WAN2.

      WAN1 is much faster and I would like all traffic to go back out of the same WAN it came in on.

      Anyone know how to accomplish this?

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • dotdashD
        dotdash
        last edited by

        Did you change the gateway in a firewall rule on the openvpn tab? If you didn't it should be using the default gw, which I would guess would be WAN, not WAN2.
        Personally, I don't see the point of redirecting internet traffic through the corporate vpn.

        1 Reply Last reply Reply Quote 0
        • J
          jcalhoun
          last edited by

          Thanks for the reply

          We have a bunch of servers and for security we limited access to them to a specific group of ip address. Our WAN ip addresses. They are not located in the same location as our PFSense box so we have to go over the internet to connect to them. So when people need to connect to them from home they have to connect to the VPN first.

          I didn't know that it went through the default gateway so that is good to know.

          I went ahead and added a rule to the openvpn tab as you suggested and I got the desired effect.

          My brain thanks you! You are the man!

          ![Screen Shot 2014-05-07 at 12.37.16 PM.png](/public/imported_attachments/1/Screen Shot 2014-05-07 at 12.37.16 PM.png)
          ![Screen Shot 2014-05-07 at 12.37.16 PM.png_thumb](/public/imported_attachments/1/Screen Shot 2014-05-07 at 12.37.16 PM.png_thumb)

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