Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Brekeke does not treat CGNAT address as external IP
Author Message
voip204
Brekeke Newbie


Joined: 09 Jul 2024
Posts: 2
Location: UK

PostPosted: Tue Jul 09, 2024 3:26 am    Post subject: Brekeke does not treat CGNAT address as external IP Reply with quote

1. Brekeke Product Name and Version: Brekeke SIP Server Advanced Edition v3.16.4.9/576.2

2. Java version: 11.0.0.1

3. OS type and the version: Ubuntu 24.04 LTS

4. UA (phone), gateway or other hardware/software involved: Yealink T42G

5. Your problem:
I am connecting to a remote BSS server from a Yealink T42G. My router is assigned with a CGNAT IP address (100.64.x.x) from the ISP.

The problem is BSS is treating this CGNAT IP as an internal IP address and as a result it switches to using the private IP address of the phone. The inbound call fails as BSS can not communicate directly to the phone's LAN IP.

The only workaround I have found so far is by using the 'External IP address pattern' value in the Configuration->System page. Here I add regex to match CGNAT address space. I am worried this may not work in all scenarios and there could be an official way of resolving this. Perhaps it could be a bug. Has anyone else come across this? I know more and more ISPs are using CGNAT due to the limited IPv4 address space available.

I saw an old post on here from 2014 by Laurie where they use the IP address pattern function to resolve it, but I am not sure if this is still required for the newer version:
https://www.brekeke-sip.com/bbs/viewtopic.php?t=7516&highlight=nat

Thanks.
Back to top
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 289
Location: Japan

PostPosted: Tue Jul 09, 2024 9:20 pm    Post subject: Reply with quote

Setting "External IP address pattern" as the following will solve the issue.
[External IP address pattern] = ^100.6[4-9]|^100.[7-9][0-9]|^100.1[0-1][0-9]|^100.12[0-7]


Another solution is setting the LAN side interface IP address at [Interface address 1], and regex patterns of phone's LAN IP addresses at [Remote Address Pattern 1].
Back to top
View user's profile
voip204
Brekeke Newbie


Joined: 09 Jul 2024
Posts: 2
Location: UK

PostPosted: Wed Jul 17, 2024 3:50 am    Post subject: Reply with quote

Thanks Harold for the help.

Setting the External IP address pattern to the regex you provided solved it.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1