[Users] NAT Problem with OpenSER behind load balancer

Tim Madorma tmadorma at gmail.com
Tue Mar 20 16:39:41 CET 2007


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"

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




More information about the sr-users mailing list