How would checking $rP help?

Kamailio won’t process HTTP requests on a TCP SIP listener since they lack the 
SIP/2.0 request line signature.

It’ll process them through xhttp, though. Is that the context in which this is 
an issue? If so, just expose your xhttp resources via an obscure URL ($hu) and 
deny anything else.

—
Sent from mobile, with due apologies for brevity and errors.

> On Mar 8, 2021, at 4:01 PM, Ben Kaufman <ben.kauf...@altigen.com> wrote:
> 
> 
> I’ve set up a server listening on TCP recently, and notice that I’m receiving 
> intermittent, random HTTP requests from the internet.  While it would 
> probably be a good idea to enforce a firewall rule to only allow known hosts 
> to communicate, what would be the best way within Kamailio to ignore http 
> requests?  Would just checking $rP work?
>  
> Regards,
>  
> Ben Kaufman
> ben.kauf...@altigen.com
> Director of Cloud Operations
> AltiGen Communications, Inc.
>  
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to