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

    My openVPN not redirect all traffic by the gateway that is defined

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 380 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.
    • P
      pedrof
      last edited by

      Hello everyone.

      I'm trying to administer a pfsense that was already set up and there are some things I'm having trouble with.

      we are defining a vpn and I don't understand why the traffic doesn't all go through the defined gateway.

      with the vpn turned on I get an ip from the range defined in the configuration and my public ip appears the static ip of our company but when I tail our haproxy log file to the fqdn that we want access the website it uses the ip of my router at home like ("haproxy_clientIP":"#.##.##.##")

      then in the acls defined in haproxy even if you put the pfsense gateway it does not make the exception for you to access the fqdn, but I can access it if I first put the server ip with the service port followed by the fqdn (http://## .###.##.##:9000/fqdn.xpto)
      but without the vpn connected I can access using fqdn.xpto
      In the vpn options I have the option selected:
      (Redirect IPv4 GatewayForce all client-generated IPv4 traffic through the tunnel.)

      can you help?
      I've already wasted many hours on tests and I don't understand what's wrong.

      grateful for the attention

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

        @pedrof said in My openVPN not redirect all traffic by the gateway that is defined:

        with the vpn turned on I get an ip from the range defined in the configuration and my public ip appears the static ip of our company but when I tail our haproxy log file to the fqdn that we want access the website it uses the ip of my router at home like ("haproxy_clientIP":"#.##.##.##")
        (Redirect IPv4 GatewayForce all client-generated IPv4 traffic through the tunnel.)

        This can happen if the VPN server IP is the same as the web service IP due to understandable reasons.
        The VPN server IP cannot be routed through the tunnel naturally.

        P 1 Reply Last reply Reply Quote 0
        • P
          pedrof @viragomann
          last edited by

          @viragomann is not the same ip.
          i can't understand why if i put the internal ip from the server 000.000.00.:9000 the site open but if i put only the fqdn it don't works

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