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

    OpenVPN client thru non-default Gateway?

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 5 Posters 11.3k 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
      jamullian
      last edited by

      I have successfully set up OpenVPN between 2 pfSense 1.2 boxes. Everything works just fine EXCEPT:

      I use policy based routing to define which of WAN or WAN2 (OPT1) gateways is used based on ports, networks, etc (this all works fine too).

      But I want my OpenVPN client to go out over WAN2 not the default gateway, and I have been unable to figure out how to do this. I've tried the following rules:

      *  *  *  (destination server)  1194 (OpenVPN)  Gateway WAN2

          • (internetwork) *         Gateway WAN2
          • (destination network)     *               Gateway WAN2

      But the VPN always forms from the Default Gateway.

      Is there a magic command I can put in somewhere to force it to use the other gateway?

      1 Reply Last reply Reply Quote 0
      • R
        razor2000
        last edited by

        When using OpenVPN with your WAN2 link, make sure you are NOT using UDP as the protocol.  Change it over to TCP and you should notice your link working fine.  pfSense has issues with UDP access on the WAN2 (OPTx) ports.

        Good luck! :)

        1 Reply Last reply Reply Quote 0
        • W
          Wasca
          last edited by

          I'm having a similar issue. I got the clients connecting to my WAN2 via TCP 1194, but when they exit to the internet via the VPN they keep going out the WAN and not my WAN2.

          How can I force them to go out WAN2? IS there something in the server config?

          1 Reply Last reply Reply Quote 0
          • GruensFroeschliG
            GruensFroeschli
            last edited by

            http://forum.pfsense.org/index.php/topic,7001.0.html

            We do what we must, because we can.

            Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

            1 Reply Last reply Reply Quote 0
            • B
              baumhak
              last edited by

              I have the same problem,
              I try to use an static route with the server ip connection (openvpn) but when I
              go to system logs - openvpn, I see the gw of wan1,
              I don´t know how to use the gateway of wan2 with openvpn (client side).
              Somebody help?
              Sorry for my bad english…...

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