Just in case anyone wants to get the script working with a freedns direct update url instead of updating freedns through a dnsomatic account...
script goes in /var/db/scripts/event/ like the instructions say.
The event-options part is just like everyone else says, and it goes in the base of the heirarchy:
event-options {
policy dyn-dns-updater {
events SYSTEM;
attributes-match {
SYSTEM.message matches "EVENT Add";
}
then {
event-script dyn-dns-update.xslt;
}
}
event-script {
file dyn-dns-update.xslt;
}
}
And the freedns part that works for me looks like this, just the type and url parameters are all that's needed, and you can even use https instead of the http direct urls that freedns gives you:
under the system / services heirarchy:
apply-macro dyndns-client1 {
type freedns;
url "https://freedns.afraid.org/dynamic/update.php?<the secret part>";
}
To test it, just disable/commit enable/commit your outside dhcp interface. And if you have ppoe then see some other threads about the script to make sure you match the correct message.
And FYI, the script seems to only log "ERROR: Address xxx.xxx.xxx.xxx has not changed." in the dyndns.log file. Looks like there may be missing logic to log the actual result but I haven't dug into it yet. Maybe someone can post an updated version of the script that logs freedns correctly?
Oh, and I'm doing this on a J2320, not an SRX...
Jay.