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

    Routing specific traffic to OpenVPN connection

    NAT
    2
    6
    710
    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.
    • T
      tabtab
      last edited by tabtab

      Hello there,
      I have set up a OpenVPN client in pfSense and I'd like to redirect all traffic from LAN to internet through this OpenVPN tunnel.
      To do this, I have followed :

      • This howto
      • This howto

      The two sites are giving almost the same configuration, but my setup don't work.

      When I go to ifconfig.co, I still had my ISP public IP in place of the VPN provider's public IP.

      My OpenVPN client tunnel is OK :
      f006737b-61e6-4918-95c2-068bcacb8b9c-image.png

      I have setup an interface as mentionned in the howto :
      a0b05091-42a1-4ea7-a6ae-8af839635b10-image.png

      I have setup a gateway :
      870ab867-173d-4a18-bcce-be93ee4eb2b8-image.png

      Created a firewall rule like this :

      0c4137f3-3be3-49c6-94ce-ac8b009cdc0e-image.png

      I rebooted pfSense to be sure, but same result.
      What should I check to make this work ?

      Thanks !

      T V 2 Replies Last reply Reply Quote 0
      • T
        tabtab @tabtab
        last edited by

        Forgot to mention the Outbound NAT rule :
        67bb5a74-6ac9-4874-8eac-48ed596a9519-image.png

        1 Reply Last reply Reply Quote 0
        • V
          viragomann @tabtab
          last edited by

          @tabtab
          Basically it should work with this rule as long as there is no floating rule overriding it.

          Maybe you had an already opened connection as you did the IP check?

          T 1 Reply Last reply Reply Quote 0
          • T
            tabtab @viragomann
            last edited by

            Hello @viragomann,
            I don't have any floating rule.
            To be very very sure, I restarted pfSense and my PC, same result...
            I really don't understand, it's no complex configuration...
            Thanks !

            V 1 Reply Last reply Reply Quote 0
            • V
              viragomann @tabtab
              last edited by

              @tabtab
              Check out Status > Gateways, fi the VPN gateway online.
              If it's not, the rule is omitted for sure.

              T 1 Reply Last reply Reply Quote 0
              • T
                tabtab @viragomann
                last edited by

                @viragomann You're totally right !

                The gateway was marked as down but ping to 1.1.1.1 from it works.
                I changed the monitor IP, the gateway goes to UP and the traffic is OK

                Many many thanks ;)

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