ash_mcse — 2011-01-18T09:28:57-05:00 — #1
I am wondering if its possible to access SIP accounts from specific IP address only. All I want to do is that I want to configure an extension, so that it would be accessible from only two specifics IP addresses.
Please let me know the way to do it.
jingjong — 2011-03-31T13:42:45-04:00 — #2
That really works great. Thank you very much for the info.
But is it possible that I will allow/permit multiple IPs.
like for example
I tried the following but it doesn't work:
permit: 184.108.40.206/255.255.255.255 - 220.127.116.11/255.255.255.255
permit: 18.104.22.168/255.255.255.255 / 22.214.171.124/255.255.255.255
permit: 126.96.36.199/255.255.255.255, 188.8.131.52/255.255.255.255
p_lindheimer — 2011-03-31T15:53:44-04:00 — #3
assuming that Asterisk allows multiple permit lines (I think but am not sure) then you can separate the entries with "&" and you'll get multiple permit= lines for each IP/Mask you want to set.
billsimon — 2011-01-18T11:28:44-05:00 — #4
This is what the deny and permit lines are for in your SIP extension config. Specify your IPs in the permit and leave the deny at 0.0.0.0 to deny everything else.
system — 2014-06-04T15:09:50-04:00 — #5
This topic is now closed. New replies are no longer allowed.