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

    Update Remote Address on GRE with DNS IP

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 2 Posters 371 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.
    • G
      G_Costa
      last edited by G_Costa

      Hey!

      For some reason my ISP is allways chaning my public IP what makes my GRE tunnel allways stop working.
      I already got an way to change my main DNS IP to the new public ip grabbing it on a VM and changing on cloudflare with curl but i also need to change the Remote Address on GRE Interface.
      Is there any file I can edit or any easiest way to do it?

      Thank you all in advance!

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Not easily, the GRE config requires a fixed IP address.

        If you used IPSec or OpenVPN you could just use an FQDN for the endpoint and pfSense will resolve it.

        Steve

        G 1 Reply Last reply Reply Quote 0
        • G
          G_Costa @stephenw10
          last edited by

          @stephenw10 And that value cant be edited on any file or something like that?

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            You can just enter it as an FQDN and it will be resolved when the tunnel connects. So if that is a dyndns address it will be updated when the dyndns entry is.

            G 1 Reply Last reply Reply Quote 0
            • G
              G_Costa @stephenw10
              last edited by

              @stephenw10 Its not dydns, its a normal dns on cloudflare but on GRE remote address only allow numeric ip's, that's why I asked if there's a file to edit that value

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Ah the Cloudflare end? As long as Cloudflare updates the DNS entry the FQDN will resolve to that when it connects.

                G 1 Reply Last reply Reply Quote 0
                • G
                  G_Costa @stephenw10
                  last edited by

                  @stephenw10 Uh im just not understanding where i can put the FQDN on GRE address, can you guide me with that?

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    You can't; GRE requires a fixed IP address.

                    I suggested using IPSec or OpenVPN instead because those can use an FQDN to connect to.

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      G_Costa @stephenw10
                      last edited by

                      @stephenw10 Since Im assigning local IPs to external public IP's (on proxmox vms's) what do you suggest?

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Doesn't really matter what you have locally it's what you're connecting to. What is supported at the remote side?

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