If you don't want SIP URI support, absolutely!
The problem is that almost a third of the hack attempts on our servers have been from within the U.S. These presumably are bots running on compromised Windows machines... of which there seem to be millions.
I was thinking of a whitelist as opposed to a blacklist.
? Is there something I'm not getting?"TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0)
#!/bin/bash
cd /var/log/asterisk
found = `cat full | awk '/failed / {print "1010"; exit}'`
if [ "$found" = "1010" ]; then
grep "failed " full | mail -s "PBX Failures logged" [EMAIL="[email protected]"][email protected][/EMAIL]
fi
The only reason I can see to poke holes in the firewall for sip traffic is from remote extensions. Limiting access has already been addressed.
...
So why ? Is there something I'm not getting?
JR,
Try this code, but I don't understand what you are looking for as /failed / will appear in the log for many reasons, such as
"TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0)
PhonebuffCode:#!/bin/bash cd /var/log/asterisk found = `cat full | awk '/failed / {print "1010"; exit}'` if [ "$found" = "1010" ]; then grep "failed " full | mail -s "PBX Failures logged" [EMAIL="[email protected]"][email protected][/EMAIL] fi
#!/bin/bash
cd /var/log/asterisk
found=`cat full | awk '/failed / {print "1010"; exit}'`
if [ "$found" = "1010" ]; then
grep "failed " full | mail -s HackAttempts [email protected]
fi
Link up your team and customers Phone System
Live Chat
Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.