User Tools

Site Tools


tutorials:security:kamailio-security

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorials:security:kamailio-security [2019/04/04 10:34]
pepelux
tutorials:security:kamailio-security [2019/05/23 12:39]
pepelux
Line 96: Line 96:
 </code> </code>
  
-==== Change the server header ====+==== Change the server and user agent header ====
  
 When Kamailio sends you a packet back, it will be friendly enough to tell you which version of Kamailio is running. This informs the attacker which types of attacks might make sense. When Kamailio sends you a packet back, it will be friendly enough to tell you which version of Kamailio is running. This informs the attacker which types of attacks might make sense.
Line 117: Line 117:
 sip_warning=0 sip_warning=0
 </code> </code>
 +
 +To change the user agent header (e.g. used from the dispatcher module to send out OPTIONS requests) use this parameter:
 +
 +<code>
 +user_agent_header="User-Agent: My SIP Server"
 +</code>
 +
 ===== Anti-Flood ===== ===== Anti-Flood =====
  
Line 323: Line 330:
  
 <code> <code>
-loadmodule    "geoip.so"+loadmodule    "geoip2.so"
 loadmodule    "secfilter.so" loadmodule    "secfilter.so"
  
Line 334: Line 341:
  
 route[SECURITY_CHECKS] { route[SECURITY_CHECKS] {
-        if (geoip_match("$si", "src")) {+        if (geoip2_match("$si", "src")) {
                 # return values ...                 # return values ...
                 #  2 = whitelisted                 #  2 = whitelisted
tutorials/security/kamailio-security.txt ยท Last modified: 2019/05/23 12:42 by pepelux