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

    DynDNS blocked me

    Scheduled Pinned Locked Moved DHCP and DNS
    61 Posts 7 Posters 27.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.
    • M
      mickeybyte
      last edited by

      Well, it did last a day longer than before, but there it was again in my mailbox today:
      –---Original Message-----
      From: DynDNS Support [mailto:support@dyndns.com]
      Sent: Thursday, December 15, 2005 3:31 AM
      To: <my email="">Subject: Hostname Blocked Due To Abuse

      Dear Valued Customer:

      The hostname, myaccount.homedns.org, in account myaccount, has been blocked for
      abuse. This action has been taken due to the receipt of multiple updates
      originating from the same IP address.

      Please note, updates which result in the IP address associated with a host
      changing are NOT considered abusive. Only those updates which result in no
      change to the host are abusive. Please take a moment to review our Update
      Abuse Policy here:

      http://www.dyndns.com/support/abuse.html

      :'(</my>

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

        Show us your system logs.

        Also show us /etc/crontab

        1 Reply Last reply Reply Quote 0
        • M
          mickeybyte
          last edited by

          /etc/crontab:
          $ less /etc/crontab
          SHELL=/bin/sh
          PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
          HOME=/var/log
          #minute hour    mday    month  wday    who            command
          0 * * * * root         /usr/bin/nice -n20 newsyslog
          1,31 0-5 * * * root         /usr/bin/nice -n20 adjkerntz -a
          1 * 1 * * root         /usr/bin/nice -n20 /etc/rc.update_bogons.sh
          */60 * * * * root         /usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 sshlockout
          1 0-1 * * * root /usr/bin/nice -n20 /etc/rc.dyndns.update

          Systemlogs are more difficult, unless you can tell me where I can find them on pfSense (not the webinterface, but the files itself)? Problem is I sent all syslogs tot a syslog daemon, but last night my switch gave up, and I've just repaired the problem, so I don't have any logs in my syslog daemon since late last night. I'll see if I can already find something in there.

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

            From a shell:

            cat /var/log/system.log | grep Dyn

            1 Reply Last reply Reply Quote 0
            • M
              mickeybyte
              last edited by

              looking at the crontab, I've noticed the dyndns line stating
              1  0-1 * * * …
              what exactly does it mean? when does it run.

              I'can only find logfiles on the firewall since I've rebooted it a few hours ago, and there I noticed it updated it every 10 seconds?
              In my syslog daemon, I can only find logs until 12 o'clock last night and there it shows up every once an hour, but still not blocked.
              The mail that said I was blocked again came around 3h30 this morning

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

                The first 1 is first minute.  I thought 0-1 is a randomized midnight to 1 am.

                I'll change it to run at 1:01 am

                Run update_file.sh /etc/crontab again

                1 Reply Last reply Reply Quote 0
                • M
                  mickeybyte
                  last edited by

                  Scott,

                  If you ask me, that's not the best solution.
                  say, my Ip changes at 4am, it will take until next day 1h01, until my dyndns will get updated? or am I getting it wrong here?

                  Still can't resist to bring up the CachedIP problem again. That's where the problem is according to me, if it can correctly compare cachedIP and current IP, and only contact dyndns if that's different, what actually does at this time, but cachedIP is always 0.0.0.0.

                  I'll take a look at the dyndns.class file to see if I can find anything there (not that I'm a freebsd geek, but I do have some programming skills and some linux knowledge)

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

                    @mickeybyte:

                    Scott,

                    If you ask me, that's not the best solution.
                    say, my Ip changes at 4am, it will take until next day 1h01, until my dyndns will get updated? or am I getting it wrong here?

                    Still can't resist to bring up the CachedIP problem again. That's where the problem is according to me, if it can correctly compare cachedIP and current IP, and only contact dyndns if that's different, what actually does at this time, but cachedIP is always 0.0.0.0.

                    I'll take a look at the dyndns.class file to see if I can find anything there (not that I'm a freebsd geek, but I do have some programming skills and some linux knowledge)

                    The dynamic dns client is run after ANY ip change.  The only reason for the once a day check is to check back in after 28 days to keep the item from expiring.

                    1 Reply Last reply Reply Quote 0
                    • M
                      mickeybyte
                      last edited by

                      This is what I found in /var/etc/dyndns.debug:
                      12-11-05 09:14:42 - (6919068) - [dyndns] - 0.0.0.0/1134330236
                      12-11-05 10:14:42 - (5357457) - [dyndns] - 0.0.0.0/1134330236
                      12-11-05 11:14:43 - (2891556) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 12:14:42 - (4651791) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 01:01:02 - (2923375) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 01:14:42 - (4669015) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 02:01:02 - (7177439) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 02:14:42 - (3299583) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 03:14:41 - (4731010) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 04:14:45 - (8340914) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 05:14:44 - (3307104) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 06:14:45 - (9571554) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 06:44:44 - (5194273) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 07:44:43 - (5387404) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 08:44:43 - (5649611) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 09:44:42 - (6107681) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 10:44:48 - (7788679) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 11:44:47 - (4119622) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 12:44:47 - (4233917) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 01:44:47 - (7404288) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 02:44:47 - (6548574) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 03:44:47 - (5386367) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 04:44:47 - (8115236) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 04:44:48 - (8115236) - [dyndns] - abuse
                      12-12-05 05:44:46 - (9107850) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 05:44:47 - (9107850) - [dyndns] - abuse
                      12-12-05 06:44:46 - (6465648) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 06:44:47 - (6465648) - [dyndns] - abuse
                      12-12-05 07:44:51 - (4552343) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 07:44:52 - (4552343) - [dyndns] - abuse
                      12-12-05 08:44:51 - (4040148) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 08:44:52 - (4040148) - [dyndns] - abuse
                      12-12-05 09:44:51 - (4279538) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 09:44:52 - (4279538) - [dyndns] - abuse
                      12-12-05 10:21:09 - (5411452) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 10:21:10 - (5411452) - [dyndns] - abuse
                      12-12-05 10:21:31 - (3706664) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 10:21:34 - (3706664) - [dyndns] - abuse
                      12-12-05 10:21:34 - (8356999) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 10:21:36 - (8356999) - [dyndns] - abuse
                      12-12-05 10:22:13 - (3049021) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 10:22:13 - (3049021) - [dyndns] - abuse
                      12-12-05 10:22:23 - (1328388) - [dyndns] - 0.0.0.0/1134330236
                      12-12-05 10:22:24 - (1328388) - [dyndns] - abuse
                      12-12-05 11:03:22 - (1159591) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 12:01:02 - (3816026) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 12:03:23 - (9821675) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 12:33:22 - (6804676) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 01:01:02 - (2003913) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 01:33:22 - (8397757) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 02:33:21 - (1765254) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 03:33:22 - (2963531) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 04:33:26 - (9327919) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 05:33:26 - (5784744) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 06:33:25 - (2334690) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 07:33:24 - (1719783) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 08:33:25 - (7267097) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 09:03:24 - (1136798) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 10:03:26 - (8225073) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 11:03:26 - (9846324) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 12:03:25 - (7372019) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 12:33:24 - (7141727) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 01:33:29 - (5183041) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 02:33:29 - (5446201) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 03:33:28 - (4943944) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 04:33:28 - (9974256) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 05:03:28 - (3564105) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 06:03:27 - (5400248) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 07:03:27 - (7203522) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 08:03:28 - (7083926) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 08:03:29 - (7083926) - [dyndns] - abuse
                      12-13-05 08:33:33 - (8607025) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 08:33:37 - (8607025) - [dyndns] - abuse
                      12-13-05 09:33:32 - (3387273) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 09:33:33 - (3387273) - [dyndns] - abuse
                      12-13-05 10:27:00 - (7111110) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 10:27:02 - (7111110) - [dyndns] - abuse
                      12-13-05 10:27:26 - (3591037) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 10:27:26 - (3591037) - [dyndns] - abuse
                      12-13-05 10:27:29 - (4293309) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 10:27:32 - (4293309) - [dyndns] - abuse
                      12-13-05 10:28:07 - (7443118) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 10:28:08 - (7443118) - [dyndns] - abuse
                      12-13-05 11:00:37 - (9708846) - [dyndns] - 0.0.0.0/1134330236
                      12-13-05 11:00:38 - (9708846) - [dyndns] - abuse
                      12-14-05 12:00:36 - (9085216) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 12:00:37 - (9085216) - [dyndns] - abuse
                      12-14-05 12:01:02 - (8895196) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 12:01:03 - (8895196) - [dyndns] - abuse
                      12-14-05 01:00:36 - (7739452) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 01:00:37 - (7739452) - [dyndns] - abuse
                      12-14-05 01:01:03 - (5872394) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 01:01:03 - (5872394) - [dyndns] - abuse
                      12-14-05 02:00:40 - (4460649) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 02:00:42 - (4460649) - [dyndns] - abuse
                      12-14-05 03:00:40 - (8074266) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 03:00:41 - (8074266) - [dyndns] - abuse
                      12-14-05 03:30:41 - (7841892) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 03:30:42 - (7841892) - [dyndns] - abuse
                      12-14-05 04:30:40 - (5952109) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 04:30:41 - (5952109) - [dyndns] - abuse
                      12-14-05 05:30:40 - (7029667) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 05:30:41 - (7029667) - [dyndns] - abuse
                      12-14-05 06:00:39 - (2398307) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 07:00:40 - (3043041) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 08:00:39 - (5506055) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 09:00:40 - (3014221) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 10:00:37 - (1297223) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 11:00:42 - (5587871) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 12:00:42 - (7815354) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 01:00:41 - (8702000) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 02:00:41 - (6367796) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 03:00:41 - (8783922) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 03:30:41 - (9664607) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 04:30:40 - (6759643) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 05:30:40 - (7330136) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 06:30:46 - (8976396) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 07:30:46 - (6721446) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 08:30:46 - (3731522) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 09:30:51 - (8441664) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 10:30:36 - (2122589) - [dyndns] - 0.0.0.0/1134330236
                      12-14-05 11:30:35 - (7019757) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 12:01:03 - (2048596) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 12:30:36 - (9360039) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 01:01:03 - (6270883) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 01:30:35 - (9418419) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 02:30:34 - (6853193) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 03:30:37 - (8088756) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 04:30:38 - (1488027) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 04:30:39 - (1488027) - [dyndns] - abuse
                      12-15-05 05:30:37 - (1156730) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 05:30:38 - (1156730) - [dyndns] - abuse
                      12-15-05 06:30:35 - (1208572) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:30:36 - (1208572) - [dyndns] - abuse
                      12-15-05 07:30:39 - (8267492) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 07:30:40 - (8267492) - [dyndns] - abuse
                      12-15-05 08:30:38 - (7514137) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 08:30:41 - (7514137) - [dyndns] - abuse
                      12-15-05 09:30:39 - (5583750) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 09:30:40 - (5583750) - [dyndns] - abuse
                      12-15-05 10:30:38 - (7945971) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 10:30:38 - (7945971) - [dyndns] - abuse
                      12-15-05 11:30:36 - (2149134) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 11:30:37 - (2149134) - [dyndns] - abuse
                      12-15-05 12:30:40 - (6524642) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 12:30:41 - (6524642) - [dyndns] - abuse
                      12-15-05 01:30:39 - (7896830) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 01:30:40 - (7896830) - [dyndns] - abuse
                      12-15-05 02:30:38 - (3340408) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 02:30:39 - (3340408) - [dyndns] - abuse
                      12-15-05 03:30:42 - (7449804) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 03:30:43 - (7449804) - [dyndns] - abuse
                      12-15-05 04:30:46 - (6812999) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 04:30:47 - (6812999) - [dyndns] - abuse
                      12-15-05 05:30:45 - (9706623) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 05:30:46 - (9706623) - [dyndns] - abuse
                      12-15-05 06:08:25 - (3152146) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:08:27 - (3152146) - [dyndns] - abuse
                      12-15-05 06:08:29 - (6411514) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:08:40 - (6411514) - [dyndns] - abuse
                      12-15-05 06:08:43 - (6894303) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:08:44 - (6894303) - [dyndns] - abuse
                      12-15-05 06:09:01 - (3310163) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:09:01 - (3310163) - [dyndns] - abuse
                      12-15-05 06:23:29 - (2898009) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:23:31 - (2898009) - [dyndns] - abuse
                      12-15-05 06:24:18 - (1482317) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:24:21 - (1482317) - [dyndns] - abuse
                      12-15-05 06:40:59 - (8417336) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:41:00 - (8417336) - [dyndns] - abuse
                      12-15-05 06:41:31 - (7819280) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:41:32 - (7819280) - [dyndns] - abuse
                      12-15-05 06:48:29 - (3020094) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:48:29 - (3020094) - [dyndns] -
                      12-15-05 06:48:40 - (4232711) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:48:40 - (4232711) - [dyndns] -
                      12-15-05 06:48:51 - (1028691) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:48:51 - (1028691) - [dyndns] -
                      12-15-05 06:49:03 - (7385844) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 06:49:03 - (7385844) - [dyndns] -
                      12-15-05 07:45:05 - (2353015) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 07:45:06 - (2353015) - [dyndns] -
                      12-15-05 07:50:22 - (2752449) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 07:50:24 - (2752449) - [dyndns] - abuse
                      12-15-05 07:50:26 - (6615088) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 07:50:26 - (6615088) - [dyndns] - abuse
                      12-15-05 07:50:46 - (3027218) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 07:50:47 - (3027218) - [dyndns] - abuse
                      12-15-05 07:50:56 - (5291978) - [dyndns] - 0.0.0.0/1134330236
                      12-15-05 07:50:56 - (5291978) - [dyndns] - abuse

                      seems like it is updatin every hour, of half an our. This could be related to my DHCP renewal time. Sometimes it's 1800 seconds, other times it's 3600 seconds.
                      however, I seem to always get the same IP address on every renewal.

                      I'll look further into the script.

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

                        You're cache file still reads 0.0.0.0?

                        Did it ever succeed?

                        1 Reply Last reply Reply Quote 0
                        • M
                          mickeybyte
                          last edited by

                          nope, cachedIP is always 0.0.0.0, so when it compares wanip with cacheIP, it's always different

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

                            That's wild.  Try unblocking yourself and watching the first run of the dyndns client, if the provider gives a ok message it should update the cache file.

                            1 Reply Last reply Reply Quote 0
                            • M
                              mickeybyte
                              last edited by

                              Let's look at the function DetectChange:
                              function _detectChange() {

                              log_error("DynDns: _detectChange() starting.");

                              $currentTime = time();

                              $wan_ip = get_current_wan_address();
                                                      $this->_dnsIP = $wan_ip;
                                                      log_error("DynDns: Current WAN IP: {$wan_ip}");

                              if (file_exists($this->_cacheFile)) {
                                                              if(file_exists($this->_cacheFile))
                                                                      $contents = file_get_contents($this->_cacheFile);
                                                              else
                                                                      $contents = "";
                                                              list($cacheIP,$cacheTime) = split(':', $contents);
                                                              $this->_debug($cacheIP.'/'.$cacheTime);
                                                              $initial = false;
                                                              log_error("DynDns: Cached IP: {$cacheIP}");
                                                      } else {
                                                              conf_mount_rw();
                                                              $file = fopen($this->_cacheFile, 'w');
                                                              fwrite($file, '0.0.0.0:'.$currentTime);
                                                              fclose($file);
                                                              conf_mount_ro();
                                                              $cacheIP = '0.0.0.0';
                                                              $cacheTime = $currentTime;
                                                              $initial = true;
                                                              log_error("DynDns: No Cached IP found.");
                                                      }

                              /*  use 2419200 for dyndns, dhs, easydns, noip, hn
                                                      *  zoneedit, dyns, ods
                                                      */
                                                      $time = '2419200';

                              $needs_updating = FALSE;
                                                      /* lets deterimine if the item needs updating /
                                                      if ($cacheIP != $wan_ip) {
                                                              $needs_updating = TRUE;
                                                              log_error("DynDns: cacheIP != wan_ip.  Updating.");
                                                      }
                                                      $update_reason = "Cached IP: {$cacheIP} WAN IP: {$wan_ip} ";
                                                      if (($currentTime - $cacheTime) > $time ) {
                                                              $needs_updating = TRUE;
                                                              log_error("DynDns: More than 28 days.  Updating.");
                                                      }
                                                      $update_reason .= "{$currentTime} - {$cacheTime} > {$time} ";
                                                      if ($initial == TRUE) {
                                                              $needs_updating = TRUE;
                                                              $update_reason .= "Inital update. ";
                                                              log_error("DynDns: Initial run.  Updating.");
                                                      }
                                                      /
                                finally if we need updating then store the
                                                      *  new cache value and return true
                                                      */
                                                      if($needs_updating == TRUE) {
                                                              return TRUE;
                                                      } else {
                                                              return FALSE;
                                                      }

                              log_error("DynDns debug information: {$update_reason}");

                              }

                              especially the last part here
                              in comments, it says:
                              /*  finally if we need updating then store the
                                                      *  new cache value and return true
                                                      */
                                                      if($needs_updating == TRUE) {
                                                              return TRUE;
                                                      } else {
                                                              return FALSE;
                                                      }

                              but I don't see anywhere in the script some code that realy updates the cache file?

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

                                Look further up:

                                if ($this->_detectChange() == FALSE) {
                                $this->_error(10);
                                } else {
                                if ($this->_dnsService == 'dyndns' ||
                                $this->_dnsService == 'dyndns-static' ||
                                $this->_dnsService == 'dyndns-custom' ||
                                $this->_dnsService == 'dhs' ||
                                $this->_dnsService == 'noip' ||
                                $this->_dnsService == 'easydns' ||
                                $this->_dnsService == 'hn' ||
                                $this->_dnsService == 'zoneedit' ||
                                $this->_dnsService == 'dyns' ||
                                $this->_dnsService == 'ods')
                                {
                                $this->_update();
                                } else {
                                $this->_error(6);
                                }
                                }

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mickeybyte
                                  last edited by

                                  Sorry,

                                  there is in function CheckStatus at the end:

                                  if($successful_update == true) {
                                                                  /* Write WAN IP to cache file */
                                                                  conf_mount_rw();
                                                                  $file = fopen($this->_cacheFile, 'w');
                                                                  fwrite($file, $wan_ip.':'.$currentTime);
                                                                  fclose($file);
                                                                  conf_mount_ro();
                                                          }

                                  but it doesn't seem to do it I guess.

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

                                    I have reports from many people that it does work, so I am at a loss.

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      mickeybyte
                                      last edited by

                                      Scott,

                                      I've changed the Cachefile to update it with my current IP. then reactivated the dyndns service, and this is what I get in logs:
                                      Dec 15 23:40:50 php: /services_dyndns.php: phpDynDNS: No Change In My IP Address and/or 28 Days Has Not Past. Not Updating Dynamic DNS Entry.
                                      Dec 15 23:40:50 php: /services_dyndns.php: DynDns: Cached IP: <cache ip="">Dec 15 23:40:50 php: /services_dyndns.php: DynDns: Current WAN IP: <current ip="">Dec 15 23:40:50 php: /services_dyndns.php: DynDns: _detectChange() starting.
                                      Dec 15 23:40:50 php: /services_dyndns.php: DynDns: updatedns() starting
                                      Dec 15 23:40:50 php: /services_dyndns.php: DynDns: Running updatedns()

                                      So that part is working!
                                      Still have no clue why the cache file didn't get updated, so'll do some testing now, trying to get my wan ip changed, or to manually change cache file to something else and see what it does</current></cache>

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

                                        update_file.sh /etc/inc/dyndns.class

                                        I've added a logging portion to log when the cache file is updated.

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          mickeybyte
                                          last edited by

                                          OK, this is what happened:
                                          I've created a new dyndns dynamic host, to do the test, cause it takes some hours to unblock one

                                          I've added in the cache file 192.168.1.1
                                          I've release and renewed my WAN ip to trigger the dyndns service:
                                          in logs:
                                          Dec 15 23:56:02 php: /services_dyndns.php: phpDynDNS: (Success) IP Address Changed Successfully! (<my wan="" ip="">)
                                          Dec 15 23:56:02 php: /services_dyndns.php: phpDynDNS: updating cache file /cf/conf/dyndns.cache:
                                          Dec 15 23:56:02 php: /services_dyndns.php: DynDns: Current Service: dyndns
                                          Dec 15 23:56:02 php: /services_dyndns.php: DynDns: DynDns _checkStatus() starting.
                                          Dec 15 23:56:01 php: /services_dyndns.php: DynDns: DynDns _update() starting.
                                          Dec 15 23:56:01 php: /services_dyndns.php: DynDns: cacheIP != wan_ip. Updating.
                                          Dec 15 23:56:01 php: /services_dyndns.php: DynDns: Cached IP: 192.168.1.1
                                          Dec 15 23:56:01 php: /services_dyndns.php: DynDns: Current WAN IP: <my wan="" ip="">Dec 15 23:56:01 php: /services_dyndns.php: DynDns: _detectChange() starting.
                                          Dec 15 23:56:01 php: /services_dyndns.php: DynDns: updatedns() starting
                                          Dec 15 23:56:01 php: /services_dyndns.php: DynDns: Running updatedns()

                                          When I check Dyndns website, my account is updated with the new address (I've put 192.168.1.1 in it when creating, now it shows me my current WAN IP )
                                          I check the cache file on pfSense, and what do I see? only ":" (without the quotes), so there's no IP or timestamp in it?
                                          I do again a release and renew of WAN interface:
                                          Dec 15 23:57:20 php: : phpDynDNS: (Success) No Change In IP Address
                                          Dec 15 23:57:20 php: : DynDns: Current Service: dyndns
                                          Dec 15 23:57:20 php: : DynDns: DynDns _checkStatus() starting.
                                          Dec 15 23:57:18 php: : DynDns: DynDns _update() starting.
                                          Dec 15 23:57:18 php: : DynDns: More than 28 days. Updating.
                                          Dec 15 23:57:18 php: : DynDns: cacheIP != wan_ip. Updating.
                                          Dec 15 23:57:18 php: : DynDns: Cached IP:
                                          Dec 15 23:57:18 php: : DynDns: Current WAN IP: <my wan="" ip="">Dec 15 23:57:18 php: : DynDns: _detectChange() starting.
                                          Dec 15 23:57:18 php: : DynDns: updatedns() starting
                                          Dec 15 23:57:18 php: : DynDns: Running updatedns()

                                          in the logs it also says me now the cache is empty, so not even 0.0.0.0 any more!?
                                          I also see in the first successful update, the extra logging you added. But should there also not be the ip you put in the cache?</my></my></my>

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

                                            Ummmmf.

                                            That appears to be a regression from moving the cache update block.

                                            update_file.sh /etc/inc/dyndns.class

                                            I've made a change to set $wan_Ip

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