IPSEC Brekeke answers with public address
Moderator: Brekeke Support Team
-
- Posts: 23
- Joined: Mon Apr 11, 2011 8:10 am
IPSEC Brekeke answers with public address
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
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
Try the binding-address settings.
http://wiki.brekeke.com/wiki/Bind-Breke ... IP-address
http://wiki.brekeke.com/wiki/Bind-Breke ... IP-address
-
- Posts: 23
- Joined: Mon Apr 11, 2011 8:10 am
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.
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.
-
- Posts: 23
- Joined: Mon Apr 11, 2011 8:10 am
-
- Posts: 23
- Joined: Mon Apr 11, 2011 8:10 am
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.
I could do a workaround using snat but that shouldn't be necessary if the system would react in the right way.
-
- Posts: 23
- Joined: Mon Apr 11, 2011 8:10 am
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
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
-
- Posts: 23
- Joined: Mon Apr 11, 2011 8:10 am
-
- Posts: 528
- Joined: Tue Sep 20, 2005 9:10 am
- Location: Tannersville, Pennsylvania
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.
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.
same problem
Hello Tschaikowskinksi,
We do have the same situation. Were you able to solve it or does someone else knows how to do this?
Thanks
We do have the same situation. Were you able to solve it or does someone else knows how to do this?
Thanks