• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Mar 15, 2022, 2:38 PM Mar 15, 2022, 2:32 PM

    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 :
    login-to-view

    I have setup an interface as mentionned in the howto :
    login-to-view

    I have setup a gateway :
    login-to-view

    Created a firewall rule like this :

    login-to-view

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

    Thanks !

    T V 2 Replies Last reply Mar 15, 2022, 4:00 PM Reply Quote 0
    • T
      tabtab @tabtab
      last edited by Mar 15, 2022, 4:00 PM

      Forgot to mention the Outbound NAT rule :
      login-to-view

      1 Reply Last reply Reply Quote 0
      • V
        viragomann @tabtab
        last edited by Mar 15, 2022, 5:53 PM

        @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 Mar 15, 2022, 6:36 PM Reply Quote 0
        • T
          tabtab @viragomann
          last edited by Mar 15, 2022, 6:36 PM

          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 Mar 15, 2022, 6:43 PM Reply Quote 0
          • V
            viragomann @tabtab
            last edited by Mar 15, 2022, 6:43 PM

            @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 Mar 15, 2022, 6:49 PM Reply Quote 0
            • T
              tabtab @viragomann
              last edited by Mar 15, 2022, 6:49 PM

              @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
              2 out of 6
              • First post
                2/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.