This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
tutorials:security:kamailio-security [2019/05/03 19:39] henningw add user agent header example |
tutorials:security:kamailio-security [2019/05/23 12:40] pepelux |
||
---|---|---|---|
Line 330: | Line 330: | ||
< | < | ||
- | loadmodule | + | loadmodule |
loadmodule | loadmodule | ||
Line 341: | Line 341: | ||
route[SECURITY_CHECKS] { | route[SECURITY_CHECKS] { | ||
- | if (geoip_match(" | + | if (geoip2_match(" |
# return values ... | # return values ... | ||
# 2 = whitelisted | # 2 = whitelisted | ||
Line 347: | Line 347: | ||
# -1 = error | # -1 = error | ||
# -2 = blacklisted | # -2 = blacklisted | ||
- | secf_check_country($gip(src=> | + | secf_check_country($gip2(src=> |
if ($? == -2) { | if ($? == -2) { | ||
- | xalert(" | + | xalert(" |
exit; | exit; | ||
} | } |