IPSEC Brekeke answers with public address

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
tschaikowskinksi
Posts: 23
Joined: Mon Apr 11, 2011 8:10 am

IPSEC Brekeke answers with public address

Post by tschaikowskinksi »

1. Brekeke Product Name and version:
2.4.8.6/286.3
2. Java version:

3. OS type and the version:
Linux
4. UA (phone), gateway or other hardware/software involved:
PhonerLite
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :6

6. Your problem:

We have an IPsec tunnel terminating on the same machine as SIP-Server.

SIP-Server has public address 1.1.1.1 and an internal interface 10.99.99.1
I do the registration form my machine with ip 10.22.17.101

When I try to register the trace looks like:

10.22.17.101 -> 10.99.99.1 SIP Request: REGISTER sip:10.99.99.1
1.1.1.1 -> 10.22.17.101 SIP Status: 100 Trying (0 bindings)


The problem is that brekeke is anwering with the public (1.1.1.1) instead with the privat IP (10.99.99.1). Thus the packets will not traverse the tunnle and I don't get any reply from the SIP-Server.

I've already tried to remove 1.1.1.1 form the network interface config of the SIP-Server -> no change.

Any suggestions?

Thanks Marco
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

tschaikowskinksi
Posts: 23
Joined: Mon Apr 11, 2011 8:10 am

Post by tschaikowskinksi »

binding to one address is not the solution because SIP-Server should answer to both address ranges (private and public).

I think the problem is that SIP-Server sees the packets coming form the external interface but with a Private IP address. That is due to IPsec packet decryption.

SIP-Server should answer with the pivate address to which the packet was send to not with the address of the interface.
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Are they physical interfaces?

If you run an IPsec tunnel on different machine, does the same problem happen?
tschaikowskinksi
Posts: 23
Joined: Mon Apr 11, 2011 8:10 am

Post by tschaikowskinksi »

yes it's physical interfaces. It should not happen on two different machines, but that ist not my usecase neither I have tested it.

Thanks Marco
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Have you tried the "route" command to define preferred route?
tschaikowskinksi
Posts: 23
Joined: Mon Apr 11, 2011 8:10 am

Post by tschaikowskinksi »

I have not found such a command in the documentation. The Routing is not the problem. SIP-Server simply answers with the wrong IP. I think that is kind of wrong implementation inside SIP-Server.

I could do a workaround using snat but that shouldn't be necessary if the system would react in the right way.
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

I mean Linux's "route" command.
It will allow you to use a certain interface.
tschaikowskinksi
Posts: 23
Joined: Mon Apr 11, 2011 8:10 am

Post by tschaikowskinksi »

Routing is working no problems here, but as I said!! Sip-Server should answer with that source IP-Address to that the the request was issued:

e.g.

Request (From UA)

Source: Dest (Sip-Server)
1.1.1.1 -> 10.88.88.1

Answer (From Sip-Server)

2.2.2.2 -> 1.1.1.1

That is clearly worng Behavior!! Or am I worng on that?

Best Marco
janP
Posts: 336
Joined: Sun Nov 25, 2007 2:55 pm

Post by janP »

it is not SIP server's issue. it is your setting issue..
tschaikowskinksi
Posts: 23
Joined: Mon Apr 11, 2011 8:10 am

Post by tschaikowskinksi »

Oh fine, then tell me please what should I change.

Thanks
voipwell.com
Posts: 528
Joined: Tue Sep 20, 2005 9:10 am
Location: Tannersville, Pennsylvania

Post by voipwell.com »

Hello,

I would point you at $ifsrc and $ifdst in the sip server administration guide. It appears with these commands you can detect packets coming in from an interface and direct it back using your choice of the two interfaces($ifdst)($ifdst).

It's on page 75 of sip server administration guide. See if that will give you the control you need to send the packets back from the ipsec interface instead of the default wan interface. You will need to put these into the sip server dial plan. You will have to read it over a few times but it will make sense after a while.
CastB
Posts: 32
Joined: Sat Feb 05, 2011 1:51 am
Location: the Netherlands

same problem

Post by CastB »

Hello Tschaikowskinksi,

We do have the same situation. Were you able to solve it or does someone else knows how to do this?

Thanks
ambrosio
Posts: 215
Joined: Thu Mar 27, 2008 12:20 pm

Post by ambrosio »

The "route" command will solve the problem.
Execute this command to check the current setting and tune it.
Post Reply