I have a hosted PBX. Its a brand new install and running freepbx distro 14 with all module updates and yum updates installed. I have no sip trunks and no extensions. The firewall is enabled, my interface is set to “internet”. In the firewall the only IP’s white listed is the one for my connection (/32). When I enable responsive firewall (chan_sip and pjsip), I immediately see attempts to make calls, if I turn off responsive they stop. If I leave it enabled there are several call attempts per second and nothing is getting banned? I have the intrusion detection set pretty strict with
BAN time 3600
max retry 3
find time 300
I am concerned that if I add sip trunks or extensions they will be able to make active calls. Right now without any trunks I see the call fail (congestion).
sample CDR (My IP address removed on links)
Call Date | Recording | System | CallerID | Outbound CallerID | DID | App | Destination | Disposition | Duration | Userfield | Account | ![]() |
![]() |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Fri, 24 Jan 2020 1:18 | 1579846722.858 | 250250 | Congestion | s [from-sip-external] | ANSWERED | 00:12 | |||||||
Fri, 24 Jan 2020 1:18 | 1579846713.857 | 738001 | Congestion | s [from-sip-external] | ANSWERED | 00:12 | |||||||
Fri, 24 Jan 2020 1:18 | 1579846709.856 | 250250 | Congestion | s [from-sip-external] | ANSWERED | 00:12 | |||||||
Fri, 24 Jan 2020 1:18 | 1579846706.855 | 250250 | Congestion | s [from-sip-external] | ANSWERED | 00:12 | |||||||
Fri, 24 Jan 2020 1:18 | 1579846706.854 | 250250 | Congestion | s [from-sip-external] | ANSWERED | 00:12 |
sample call events
Date | Caller | Dialed | Duration | Play | Details |
---|---|---|---|---|---|
Fri, Jan 24, 2020 1:19 AM | 250250 | 6673101148483829010 | 13 | - | show |
Fri, Jan 24, 2020 1:19 AM | 738002 | 011441923937034 | 13 | - | show |
Fri, Jan 24, 2020 1:19 AM | 250250 | 907201148122518017 | 13 | - |
Call Detail for 1st call
log file
[2020-01-24 01:44:03] VERBOSE[28007][C-00000476] pbx.c: Executing [s@from-sip-external:6] Set(“PJSIP/anonymous-00000476”, “receveip=pjsip,remote_addr”) in new stack
[2020-01-24 01:44:03] VERBOSE[28007][C-00000476] pbx.c: Executing [s@from-sip-external:7] Log(“PJSIP/anonymous-00000476”, "WARNING,“Rejecting unknown SIP connection from 134.119.221.174:51503"”) in new stack
[2020-01-24 01:44:03] WARNING[28007][C-00000476] Ext. s: “Rejecting unknown SIP connection from 134.119.221.174:51503”
[2020-01-24 01:44:03] VERBOSE[28007][C-00000476] pbx.c: Executing [s@from-sip-external:8] Answer(“PJSIP/anonymous-00000476”, “”) in new stack
[2020-01-24 01:44:04] VERBOSE[28007][C-00000476] pbx.c: Executing [s@from-sip-external:9] Wait(“PJSIP/anonymous-00000476”, “2”) in new stack
[2020-01-24 01:44:04] VERBOSE[27952][C-00000475] pbx.c: Spawn extension (from-sip-external, s, 12) exited non-zero on ‘PJSIP/anonymous-00000475’
[2020-01-24 01:44:04] VERBOSE[27952][C-00000475] pbx.c: Executing [h@from-sip-external:1] Hangup(“PJSIP/anonymous-00000475”, “”) in new stack
[2020-01-24 01:44:04] VERBOSE[27952][C-00000475] pbx.c: Spawn extension (from-sip-external, h, 1) exited non-zero on ‘PJSIP/anonymous-00000475’
[2020-01-24 01:44:06] VERBOSE[28007][C-00000476] pbx.c: Executing [s@from-sip-external:10] Playback(“PJSIP/anonymous-00000476”, “ss-noservice”) in new stack
[2020-01-24 01:44:06] VERBOSE[28007][C-00000476] file.c: <PJSIP/anonymous-00000476> Playing ‘ss-noservice.ulaw’ (language ‘en’)
[2020-01-24 01:44:08] VERBOSE[9894] pbx_variables.c: Setting global variable ‘SIPDOMAIN’ to ‘xx.xx.xx.xx’
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx.c: Executing [3248601148221530435@from-sip-external:1] NoOp(“PJSIP/anonymous-00000477”, “Received incoming SIP connection from unknown peer to 3248601148221530435”) in new stack
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx.c: Executing [3248601148221530435@from-sip-external:2] Set(“PJSIP/anonymous-00000477”, “DID=3248601148221530435”) in new stack
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx.c: Executing [3248601148221530435@from-sip-external:3] Goto(“PJSIP/anonymous-00000477”, “s,1”) in new stack
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx_builtins.c: Goto (from-sip-external,s,1)
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx.c: Executing [s@from-sip-external:1] GotoIf(“PJSIP/anonymous-00000477”, “1?setlanguage:checkanon”) in new stack
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx_builtins.c: Goto (from-sip-external,s,2)
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx.c: Executing [s@from-sip-external:2] Set(“PJSIP/anonymous-00000477”, “CHANNEL(language)=en”) in new stack
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx.c: Executing [s@from-sip-external:3] GotoIf(“PJSIP/anonymous-00000477”, “1?noanonymous”) in new stack
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx_builtins.c: Goto (from-sip-external,s,5)
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx.c: Executing [s@from-sip-external:5] Set(“PJSIP/anonymous-00000477”, “TIMEOUT(absolute)=15”) in new stack
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] func_timeout.c: Channel will hangup at 2020-01-24 01:44:23.712 EST.
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx.c: Executing [s@from-sip-external:6] Set(“PJSIP/anonymous-00000477”, “receveip=pjsip,remote_addr”) in new stack
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx.c: Executing [s@from-sip-external:7] Log(“PJSIP/anonymous-00000477”, "WARNING,“Rejecting unknown SIP connection from 134.119.217.190:59510"”) in new stack
[2020-01-24 01:44:08] WARNING[28008][C-00000477] Ext. s: “Rejecting unknown SIP connection from 134.119.217.190:59510”
[2020-01-24 01:44:08] VERBOSE[28008][C-00000477] pbx.c: Executing [s@from-sip-external:8] Answer(“PJSIP/anonymous-00000477”, “”) in new stack
[2020-01-24 01:44:09] VERBOSE[28008][C-00000477] pbx.c: Executing [s@from-sip-external:9] Wait(“PJSIP/anonymous-00000477”, “2”) in new stack
[2020-01-24 01:44:11] VERBOSE[28007][C-00000476] pbx.c: Executing [s@from-sip-external:11] PlayTones(“PJSIP/anonymous-00000476”, “congestion”) in new stack
[2020-01-24 01:44:11] VERBOSE[28007][C-00000476] pbx.c: Executing [s@from-sip-external:12] Congestion(“PJSIP/anonymous-00000476”, “5”) in new stack
[2020-01-24 01:44:11] VERBOSE[28008][C-00000477] pbx.c: Executing [s@from-sip-external:10] Playback(“PJSIP/anonymous-00000477”, “ss-noservice”) in new stack
[2020-01-24 01:44:11] VERBOSE[28008][C-00000477] file.c: <PJSIP/anonymous-00000477> Playing ‘ss-noservice.ulaw’ (language ‘en’)
What can I do to make this more secure??? What did I miss? I took asterisk advanced administration class at Sangoma and they said, sure use responsive, no problem? This looks like a problem to me.