[solved] How to block a sip peer? "deny=" in sip.conf

update:

methods:

  • iptables configured on the server to block incoming traffic

  • “deny=” in sip.conf returned a message indicating that the peer didn’t have access, performing it’s function. It still gave a cli response however, which occupied a significant portion of the output

thanks for the good advise


[general]

deny=218.18.109.188
deny=218.18.109.188/0.0.0.0
deny=218.18.109.188/255.255.255.255
deny=218.18.109.188/255.255.255.0
deny=218.18.109.188/255.255.0.0
deny=218.18.109.188/255.0.0.0

By doesn’t work, you mean that the peer can still connect successfully, or that the peer isn’t blocked at the system level, e.g. iptables?