[Kamailio-Devel] [ openser-Bugs-2706141 ] [LCR] from_gw() doesn't check source port (just IP)

SourceForge.net noreply at sourceforge.net
Mon Mar 23 17:09:13 CET 2009


Bugs item #2706141, was opened at 2009-03-23 14:53
Message generated for change (Comment added) made by ibc_sf
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2706141&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Iñaki Baz Castillo (ibc_sf)
Assigned to: Nobody/Anonymous (nobody)
Summary: [LCR] from_gw() doesn't check source port (just IP)

Initial Comment:
from_gw() function in LCR modules just checks if the request comes from an IP matching a defined gw (in "gw" table) but it doesn't check the source port.

With it, having a gw in the same machine as Kamailio produces a confusing result for example in self generated requests (as those generated by pua module).

Shouldn't "from_gw()" check also the port?

----------------------------------------------------------------------

>Comment By: Iñaki Baz Castillo (ibc_sf)
Date: 2009-03-23 17:09

Message:
Good point. It wouldn't work.
So port checking just could take place on UDP connections.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2009-03-23 17:00

Message:
would checking of port work if transport is tcp?

-- juha


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2706141&group_id=139143



More information about the Devel mailing list