[Users] NAT Problem with OpenSER behind load balancer

Daniel-Constantin Mierla daniel at voice-system.ro
Tue Mar 20 19:55:51 CET 2007


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
>




More information about the sr-users mailing list