[SR-Users] Best way to ignore HTTP requests
Alex Balashov
abalashov at evaristesys.com
Mon Mar 8 22:07:39 CET 2021
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.kaufman at 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.kaufman at altigen.com
> Director of Cloud Operations
> AltiGen Communications, Inc.
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210308/8fb9c00a/attachment.htm>
More information about the sr-users
mailing list