Does anyone have any experience with the iptables SIP rate limiter posted on the freeswitch side?
I tried adding it to my iptables but it doesn't seem to be working. My network interface name is "enp1s0" so I use that instead of the generic "eth0" posted below but no extensions can register after I add this code to the firewall.
..
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p udp --dport 5060 -m limit --limit 6/s --limit-burst 10 -i enp1s0 -j REJECT
-A INPUT -p udp --dport 5080 -m limit --limit 6/s --limit-burst 10 -i enp1s0 -j REJECT
-A INPUT -p udp -m udp --dport 5060:5091 -m string --string "friendly-scanner" --algo bm --to 65535 --icase -j DROP
..
I tried adding it to my iptables but it doesn't seem to be working. My network interface name is "enp1s0" so I use that instead of the generic "eth0" posted below but no extensions can register after I add this code to the firewall.
..
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p udp --dport 5060 -m limit --limit 6/s --limit-burst 10 -i enp1s0 -j REJECT
-A INPUT -p udp --dport 5080 -m limit --limit 6/s --limit-burst 10 -i enp1s0 -j REJECT
-A INPUT -p udp -m udp --dport 5060:5091 -m string --string "friendly-scanner" --algo bm --to 65535 --icase -j DROP
..