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

    Detect WAN IP change?

    Scheduled Pinned Locked Moved Development
    4 Posts 3 Posters 1.7k 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.
    • S
      soul710
      last edited by

      Is it possible to have pfsense detect the change of the WAN IP and then invoke some custom shell script?

      Basically I'm trying to implement my own dynamic-dns service, because I dont want to mess around with the existing free alternatives. The shell script would change the IP adress for one of my webspace's subdomain dns entries.

      While I could do this on a regular basis with a simple cron job, I think it would be smarter and more reliable to fire this only when the IP actually changes.

      Is this possible?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Reinventing the wheel?

        /etc/rc.newwanip
        /etc/rc.newwanipv6

        1 Reply Last reply Reply Quote 0
        • S
          soul710
          last edited by

          Kind of. The problem is, my WAN IP will only change after a couple of month. After DynDNS was changed to a paid service, I was using noip, only to find out that the daily update I do using their client is not enough, because one still needs to login to noip every x weeks to keep the account alive.
          So instead of messing around with free dynamic dns services, I want to do this with my existing domain, it should be really simple.

          Can you please give more details for the /etc/rc.newwanip you posted? Because I'm really not too familiar with pfsense internals/packages/scripting, so I dont know what to do with this information. Is this a script which is executed to determine WAN IP changes, where I can hook my own shell script?

          1 Reply Last reply Reply Quote 0
          • H
            heper
            last edited by

            check http://freedns.afraid.org/

            no need to login every x weeks ; works with your own domain or ones that are available

            no need to create another "dyndns" as there are thousands allready

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