[sr-dev] [tracker] Comment added: add support to auth_db to validate source IP address

sip-router bugtracker at sip-router.org
Fri Dec 5 17:05:40 CET 2014


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#499 - add support to auth_db to validate source IP address
User who did this - Emmanuel Schmidbauer (eschmidbauer)

----------
After a bit of discussion on IRC, found this to be the best solution using ipops

modparam("auth_db", "load_credentials", "$var(ip)=ip_address") 

                                if (!proxy_authenticate("$fd", "user_extension")) {
                                        proxy_challenge("$fd", "1");
                                        exit;
                                }
                                if (ip_type("$var(ip)") && !is_in_subnet("$si", "$var(ip)")) {
                                        sl_send_reply( "403", "IP forbidden" );
                                        exit;
                                }
----------

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=499#comment1729

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list