[Users] NAT Problem with OpenSER behind load balancer

Klaus Darilion klaus.mailinglists at pernau.at
Wed Mar 21 16:38:43 CET 2007


Is this something new to 1.2? If yes it should be on the migration wiki



regards
klaus

Ovidiu Sas wrote:
> Yup.  This is how we can avoid having the same question posted over
> and over again ....
> 
> 
> Regards,
> Ovidiu Sas
> 
> On 3/21/07, Daniel-Constantin Mierla <daniel at voice-system.ro> wrote:
>> You should keep cc-ing mailing lists, so people coming after a while,
>> with same issue,  will be reading mail thread and see that the given
>> solution was right.
>>
>> Thanks,
>> Daniel
>>
>>
>> On 03/20/07 21:42, Tim Madorma wrote:
>> > Got it. thanks so much!
>> >
>> > Tim
>> >
>> > On 3/20/07, Daniel-Constantin Mierla <daniel at voice-system.ro> wrote:
>> >> Hello,
>> >>
>> >> On 03/20/07 17:39, Tim Madorma wrote:
>> >> > Hi,
>> >> >
>> >> > I have put the OpenSER version 1.2 behind a BIG IP load balancer 
>> which
>> >> > provides a static private IP address (10.1.1.20) via NAT to the
>> >> > OpenSER. In our application, the clients will send to one of the 
>> three
>> >> > public addresses that are defined as aliases:
>> >> >
>> >> > alias="65.185.232.62:5061"
>> >> > alias="65.185.232.62:5062"
>> >> > alias="65.185.232.62:5063"
>> >> you have to remove quotes around the value of alias parameters. As 
>> it is
>> >> now, the value between quotes is considered to be hostname.
>> >> alias=65.185.232.62:5061
>> >> alias=65.185.232.62:5062
>> >> alias=65.185.232.62:5063
>> >>
>> >> Same case as it was reported by Juha, today with loose routing ...
>> >>
>> >> Cheers,
>> >> Daniel
>> >>
>> >> >
>> >> > An incoming OPTIONS message is received with the host in the REQ URI
>> >> > set to 65.185.232.62:5063 is received and when it hits this 
>> section of
>> >> > openser.cfg:
>> >> >
>> >> >       if (!uri==myself) {
>> >> >               # mark routing logic in request
>> >> >               append_hf("P-hint: outbound\r\n");
>> >> >               route(1);
>> >> >       };
>> >> >
>> >> > it executes within the if conditional and tries to route the OPTIONS
>> >> > message. I am wondering why uri does not match myself. The debug
>> >> > output from the log is as follows (it seems that the alias 
>> assignments
>> >> > are not working):
>> >> >
>> >> >
>> >> > Mar 19 16:41:11 homer openser[2267]: [ID 487083 local0.debug]
>> >> > grep_sock_info - checking if host==us: 13==9 &&  [65.185.232.62] 
>> == [1
>> >> > 0.1.1.20]
>> >> > Mar 19 16:41:11 homer openser[2267]: [ID 375670 local0.debug]
>> >> > grep_sock_info - checking if port 5061 matches port 5063
>> >> > Mar 19 16:41:11 homer openser[2267]: [ID 487083 local0.debug]
>> >> > grep_sock_info - checking if host==us: 13==9 &&  [65.185.232.62] 
>> == [1
>> >> > 0.1.1.20]
>> >> > Mar 19 16:41:11 homer openser[2267]: [ID 375670 local0.debug]
>> >> > grep_sock_info - checking if port 5062 matches port 5063
>> >> > Mar 19 16:41:11 homer openser[2267]: [ID 487083 local0.debug]
>> >> > grep_sock_info - checking if host==us: 13==9 &&  [65.185.232.62] 
>> == [1
>> >> > 0.1.1.20]
>> >> > Mar 19 16:41:11 homer openser[2267]: [ID 375670 local0.debug]
>> >> > grep_sock_info - checking if port 5063 matches port 5063
>> >> > Mar 19 16:41:11 homer openser[2267]: [ID 140248 local0.debug]
>> >> > DEBUG:check_self: host != me
>> >> >
>> >> >
>> >> > Any suggestions? I have not tried this in any other version. Is 
>> this a
>> >> > possible bug in 1.2?
>> >> >
>> >> > thanks,
>> >> > Tim
>> >> >
>> >> > _______________________________________________
>> >> > Users mailing list
>> >> > Users at openser.org
>> >> > http://openser.org/cgi-bin/mailman/listinfo/users
>> >> >
>> >>
>> >
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>
> 
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list