@puandrLe tre regole che hai creato (prendo ad esempio):
iptables -A check2 -m string --algo bm --string "INVITE sip:" -j REJECT
non dovrebbero funzionare per il semplice motivo che non fanno il match con la stringa "INVITE sip:"
Da un tcpdump che ho fatto vedo transitare a fronte di una chiamata:
Call-ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
CSeq: 1 INVITE
Via: SIP/2.0/UDP nnnnnnnnnnnnnnnnnnnnn
Supported: replaces,100rel
Allow: INVITE, ACK, BYE, REFER, NOTIFY, CANCEL, UPDATE, PRACK
User-Agent:
X-Serialnumber: 3.141593
Content-Length: 0
...
...