My asterisk is on the Internet and I keep getting wild attempts to log in.
I use port 5070 instead of the default and my IP is dynamic changing at least once a day. As a result, hackers manage to discover my asterisk only about once a week. But it is still a nuisance.
I would like to counter with two steps:
- Slow the response to a wrong password attempt to, say, two seconds.
- Make a failed login to trigger a script to notify me so that I can refresh my DHCP lease to get a new IP address as soon as I get to know it.
Are both of the above possible?