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

GRE Tunnel using Proxy ARP

Scheduled Pinned Locked Moved General pfSense Questions
14 Posts 3 Posters 1.1k 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.
  • X
    Xuap @stephenw10
    last edited by Apr 9, 2024, 4:59 PM

    @stephenw10 How would it work by making it go over a complete layer 2 using OpenVPN in TAP mode?

    Yes, it basically considers the gateway as non-local but doesn't work.

    We've tried using Wireguard before but it just went deprecated, so any idea on the OpenVPN? I would need to close the GRE tunnels and make everything go through the vpn?

    Best regards

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Apr 9, 2024, 5:58 PM

      Wireguard is not deprecated but it is layer 3. It won't help here.

      To use OpenVPN create the tunnel with both ends configured in TAP mode. Then bridge the remote end to the WAN and the local end to the LAN. The local LAN will then be in the same layer 2 segment as the VPC side WAN so devices will see each other and everything will use the VPC side gateway directly. The local LAN could use one of the available IPs you have or have no IP address if the local pfSense does not require access to the subnet directly.

      https://docs.netgate.com/pfsense/en/latest/recipes/openvpn-bridged.html

      X 1 Reply Last reply Apr 10, 2024, 1:51 PM Reply Quote 0
      • X
        Xuap @stephenw10
        last edited by Apr 10, 2024, 1:51 PM

        @stephenw10 Ok, so if I'm getting this right, my local pfsense should connect to the OpenVPN as a TAP client and get the openvpn interface assigned to the lan 185.113.141.0/24 network?

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by stephenw10 Apr 10, 2024, 2:23 PM Apr 10, 2024, 2:22 PM

          It doesn't matter which end is client but I would probably choose the local end, yes.

          The OpenVPN interface is not assigned as LAN. You have to bridge it to the LAN by creating a bridge and adding both LAN and OpenVPN to it. At the other end it's bridged to the WAN.

          How much latency is there between the pfSense instances? High latency across a layer 2 link can cause problems.

          X 1 Reply Last reply Apr 12, 2024, 10:32 PM Reply Quote 0
          • X
            Xuap @stephenw10
            last edited by Apr 12, 2024, 10:32 PM

            @stephenw10 Whenever I start the OpenVPN interface, after a few seconds it just stops my connection to pfsense, any idea why?

            The latency is 9ms. It always worked fine, without any issues...

            X 1 Reply Last reply Apr 12, 2024, 10:36 PM Reply Quote 0
            • X
              Xuap @Xuap
              last edited by Apr 12, 2024, 10:36 PM

              @Xuap Just forget the part where it stops my connection. It was lacking the port 80 pass rule loool

              X 1 Reply Last reply Apr 12, 2024, 10:58 PM Reply Quote 0
              • X
                Xuap @Xuap
                last edited by Apr 12, 2024, 10:58 PM

                @Xuap Ok.. so I tried creating the tunnel as follows:

                Remote

                a0964edd-bae5-48ed-b02f-58a35726756b-imagem.png
                Screenshot 2024-04-12 at 23.51.19.png
                Screenshot 2024-04-12 at 23.51.31.png
                Screenshot 2024-04-12 at 23.51.54.png
                Screenshot 2024-04-12 at 23.52.07.png
                Screenshot 2024-04-12 at 23.52.15.png
                Screenshot 2024-04-12 at 23.52.23.png


                Local

                Screenshot 2024-04-12 at 23.52.57.png

                Screenshot 2024-04-12 at 23.53.08.png

                Screenshot 2024-04-12 at 23.53.14.png

                ..

                ..

                ..


                Local pfsense rules:
                Screenshot 2024-04-12 at 23.56.48.png
                Screenshot 2024-04-12 at 23.57.16.png

                Remote pfsense rules:
                Screenshot 2024-04-12 at 23.57.29.png
                Screenshot 2024-04-12 at 23.57.43.png

                Any error here?

                Because the status is just that it don't connect...

                Screenshot 2024-04-12 at 23.57.58.png
                Screenshot 2024-04-12 at 23.58.11.png

                X T 2 Replies Last reply Apr 16, 2024, 2:28 PM Reply Quote 0
                • X
                  Xuap @Xuap
                  last edited by Apr 16, 2024, 2:28 PM

                  @stephenw10 Any idea?

                  1 Reply Last reply Reply Quote 0
                  • T
                    TwentyTwo @Xuap
                    last edited by Apr 17, 2024, 7:45 PM

                    @Xuap I tried the same setup as you and got the same problem.

                    S 1 Reply Last reply May 7, 2024, 12:55 AM Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator @TwentyTwo
                      last edited by May 7, 2024, 12:55 AM

                      Sorry missed the replies here.

                      It looks like you're using the webgui cert as the server cert? It has to be a cert created against the server CA.

                      It also looks like the TLS key is different. Both ends must have the sane TLS key.

                      You also still have a bunch of routed tunnel settings like pushing routes and adding gateways. But I'd fix up the cert/key first before looking at that.

                      Steve

                      1 Reply Last reply Reply Quote 0
                      • S stephenw10 referenced this topic on Aug 5, 2024, 10:45 AM
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received