Update Remote Address on GRE with DNS IP
-
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!
-
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
-
@stephenw10 And that value cant be edited on any file or something like that?
-
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.
-
@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
-
Ah the Cloudflare end? As long as Cloudflare updates the DNS entry the FQDN will resolve to that when it connects.
-
@stephenw10 Uh im just not understanding where i can put the FQDN on GRE address, can you guide me with that?
-
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.
-
@stephenw10 Since Im assigning local IPs to external public IP's (on proxmox vms's) what do you suggest?
-
Doesn't really matter what you have locally it's what you're connecting to. What is supported at the remote side?