tutorials:security:kamailio-security
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:security:kamailio-security [2019/05/23 10:39] – pepelux | tutorials:security:kamailio-security [2019/05/23 10:42] (current) – pepelux | ||
---|---|---|---|
Line 342: | Line 342: | ||
route[SECURITY_CHECKS] { | route[SECURITY_CHECKS] { | ||
if (geoip2_match(" | if (geoip2_match(" | ||
+ | secf_check_country($gip2(src=> | ||
# return values ... | # return values ... | ||
# 2 = whitelisted | # 2 = whitelisted | ||
Line 347: | Line 348: | ||
# -1 = error | # -1 = error | ||
# -2 = blacklisted | # -2 = blacklisted | ||
- | secf_check_country($gip(src=> | ||
if ($? == -2) { | if ($? == -2) { | ||
- | xalert(" | + | xalert(" |
exit; | exit; | ||
} | } | ||
Line 368: | Line 368: | ||
} | } | ||
+ | secf_check_from_hdr(); | ||
# return values ... | # return values ... | ||
# 4 = name whitelisted | # 4 = name whitelisted | ||
Line 377: | Line 378: | ||
# -3 = domain blacklisted | # -3 = domain blacklisted | ||
# -4 = name blacklisted | # -4 = name blacklisted | ||
- | secf_check_from_hdr(); | ||
switch ($?) { | switch ($?) { | ||
case -2: | case -2: |
tutorials/security/kamailio-security.1558607985.txt.gz · Last modified: 2019/05/23 10:39 by pepelux