Quantcast
Channel: All SRX Services Gateway posts
Viewing all articles
Browse latest Browse all 17645

Re: Is it possible to use no-ip for Dynamic DNS?

$
0
0

Hey Aaron,

 

Thanks for the reply, I think I got it!

I have tested and seems to be all good with both event triggers working together.

 

I now have an OR statement to kick off the update "[ snmp_trap_link_up every-month ]". I created the event 'every-month' which triggers every 2419200seconds = 28days.

 

event-options {
    generate-event {
        every-month time-interval 2419200;
    }
    policy dyn-dns-updater-2 {
        events [ snmp_trap_link_up every-month ];
        attributes-match {
            snmp_trap_link_up.interface-name matches pp0.0;
        }
        then {
            execute-commands {
                commands {
                    "file delete /var/tmp/dyndnsupdate.log";
                    "ping 1 count 20 interval 1 wait 1";
                    "file copy http://<USERNAME>:<PASSWORD>@dynupdate.no-ip.com/nic/update?hostname=<DNS-NAME> /var/tmp/dyndnsupdate.log";
                }
                output-format text;
            }
        }
    }
    traceoptions {
        file eventd size 1m world-readable;
        flag all;
    }
}

Viewing all articles
Browse latest Browse all 17645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>