Sir, I really appreciate your valuable time. The scenario of my case is, that I've lots of mobile app users with mobile data. So it's impossible for me to define/whitelist known IP addresses. Yes, I can whitelist the office IPs but there's nothing I can do for mobile users. Also, my router thinks all incoming requests coming from "10.10.10.1" (my gateway IP) instead of their actual IP. So, I need to fix that first. Otherwise, fail2ban will not able to differentiate the attacker's IP address.
I got your point.! I know SIP ALG should be disabled in this case. But the funny thing in my scenario is, that when I disable SIP ALG, remote extensions lost their audio. When I turn on SIP ALG, everything starts working fine. SO CURRENTLY I’VE SIP ALG TURNED ON!
The operator's name is GrameenPhone. Their IP pool: https://ipinfo.io/AS24389
There are four mobile operators here. Also, whitelisting all mobile data IPs doesn't look safe to me at all..!
Can I set up any filter to the Mikrotik firewall to restrict/limit requests per IP?
Restricting it down to addresses of one operator will surely reduce the flow of fraudulent registration attempts as compared to keeping it open for the whole internet, and I don’t think the suggestion was to use such a restriction instead of fail2ban.
The whitelisting on Mikrotik would be only your "first layer" of defence. You still have the SIP-authentication!
That ASN 24389 "only" has 20K IP's so you can problably already have some benefit to whitelist these blocks at Mikrotik-level. You 15 employees with their mobile phones should all be coming from within these ranges I guess.
You can then observe howmuch % is "catched" and decide if you want to keep it.
Well I have limited experience,
For example I have a VOIP modem which I connect via the internet and then a cord to the patch panel.
All the wired phones (landline) that have a connection on the patch panel to the phone block get live phone.
I dont have any sip phones…
So tell me how do I vpn into the router and then use my VOIP connection ???
Which phone allows me to vpn to the router and place a call ???
@tahmidul
I provide a VoIP Blacklist service that has successfully prevented SIP Attacks in 99% of cases … there is a 10 day free trial period available … see my sig.
My current voipTIK blacklist list contains 39K+ IP addresses …
in your case you will need to whitelist all your core servers for all ports, hosted PBX and Interconnection partners to specific required ports before implementing the drop rule for the voipTIK blacklist.