Hi,
I have a security problem with PJSIP channel.
I configured a trunk identified by IP.
With ‘show endpoints’ I can see that match correctely the ip address and no ‘auth’ are used.
When I try to do a INVITE session from another IP address than matched but with the same name of endpoints, the session is authorized and not rejected.
Did I make a configuration error or is it a big security issue?
This is Asterisk 13.13 but I try Asterisk 14 and is the same.
Thanks for your reply.
Best regards.
Stefano
The config:
[105011001]
type=aor
contact=sip:212.97.59.76
[105011001]
type=endpoint
context=user
disallow=all
allow=ulaw
aors=105011001
[105011001]
type=identify
endpoint=105011001
match=212.97.59.76/32
This is show endpoints:
Endpoint: 105011001 Not in use 0 of inf
Aor: 105011001 0
Contact: 105011001/sip:212.97.59.76 b41d8ed5f0 Created 0.000
Identify: 105011001/105011001
Match: 212.97.59.76/32
And This the SIP Messages:
PJSIP Logging enabled
<— Received SIP request (816 bytes) from UDP:93.70.14.88:45020 —>
INVITE sip:999@78.47.227.81:6000;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.9.0.25:45020;branch=z9hG4bK-524287-1—d1443119d97b8c0a;rport
Max-Forwards: 70
Contact: sip:105011001@10.9.0.25:45020;transport=UDP
To: sip:999@78.47.227.81:6000;transport=UDP
From: sip:105011001@78.47.227.81:6000;transport=UDP;tag=7b678358
Call-ID: EHDlM8–H9t9R0NAbFDMbw…
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
User-Agent: Zoiper rd82a609
Allow-Events: presence, kpml, talk
Content-Length: 235
v=0
o=Zoiper 0 0 IN IP4 10.9.0.25
s=Zoiper
c=IN IP4 10.9.0.25
t=0 0
m=audio 62332 RTP/AVP 3 0 8 101
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv
<— Transmitting SIP response (324 bytes) to UDP:93.70.14.88:45020 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.9.0.25:45020;rport=45020;received=93.70.14.88;branch=z9hG4bK-524287-1—d1443119d97b8c0a
Call-ID: EHDlM8–H9t9R0NAbFDMbw…
From: sip:105011001@78.47.227.81;tag=7b678358
To: sip:999@78.47.227.81
CSeq: 1 INVITE
Server: Asterisk PBX certified/13.13-cert4
Content-Length: 0
<— Transmitting SIP response (807 bytes) to UDP:93.70.14.88:45020 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.9.0.25:45020;rport=45020;received=93.70.14.88;branch=z9hG4bK-524287-1—d1443119d97b8c0a
Call-ID: EHDlM8–H9t9R0NAbFDMbw…
From: sip:105011001@78.47.227.81;tag=7b678358
To: sip:999@78.47.227.81;tag=32dd72e9-52a5-4a31-9d13-9cf62681fd98
CSeq: 1 INVITE
Server: Asterisk PBX certified/13.13-cert4
Contact: sip:78.47.227.81:6000
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 219
v=0
o=- 0 2 IN IP4 172.31.1.100
s=Asterisk
c=IN IP4 78.47.227.81
t=0 0
m=audio 18056 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
<— Received SIP request (408 bytes) from UDP:93.70.14.88:45020 —>
ACK sip:78.47.227.81:6000 SIP/2.0
Via: SIP/2.0/UDP 10.9.0.25:45020;branch=z9hG4bK-524287-1—97ee6aeb49fe1070;rport
Max-Forwards: 70
Contact: sip:105011001@10.9.0.25:45020;transport=UDP
To: sip:999@78.47.227.81;tag=32dd72e9-52a5-4a31-9d13-9cf62681fd98
From: sip:105011001@78.47.227.81;tag=7b678358
Call-ID: EHDlM8–H9t9R0NAbFDMbw…
CSeq: 1 ACK
User-Agent: Zoiper rd82a609
Content-Length: 0