astipupdate script, detects public ip and sip peer ip change , blocks unwanted sip traffic.
script start parameter will permit sip traffic only for trusted hosts via iptables,
can also update them with updatepeer parameter if ip changes.
updatepublic parameter reloads asterisk on public ip change (in case you have too long register intervals).
copy this script to /etc/init.d and activate it with update-rc.d astipupdate defaults
enable in cron like: */5 * * * * root /etc/init.d/astipupdate updateboth &> /dev/null
Now includes also an ddnsupdater which uses a simple wget to update if host cmd detects a change.
Follow Asterisk IP updater & SIP blocker
Other Useful Business Software
MongoDB 8.0 on Atlas | Run anywhere
MongoDB 8.0 brings enhanced performance and flexibility to Atlas—with expanded availability across 125+ regions globally. Build modern apps anywhere your users are, with the power of a modern database behind you.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Asterisk IP updater & SIP blocker!