yate-scripts-perl: Add script to block phones which fail to authenticate 123/head
authorRobert Högberg <robert.hogberg@gmail.com>
Sat, 1 Oct 2016 19:27:42 +0000 (21:27 +0200)
committerRobert Högberg <robert.hogberg@gmail.com>
Sat, 1 Oct 2016 20:17:16 +0000 (22:17 +0200)
commit2d4f799440a83d20ae0a913d0b99d6eba26d1434
tree6b3f7cc0132e747e3339156e1bc63050138929da
parent1f0fb2538ba6fc306198fe2a9a4b976d63adb304
yate-scripts-perl: Add script to block phones which fail to authenticate

Yate ships with a php script (banbrutes.php) which can help block brute
force login/password attacks. Since Yate for OpenWrt doesn't support
php scripts I've written a similar script in perl that's easier to use
with OpenWrt.

The script uses the iptables extension "recent" to keep track of
authentication failures and block users after too many authentication
failures.

This is an alternative to #87. The functionality is mostly the same,
but this is a slightly simplified, more light-weight version since
IP sets aren't used.

Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
net/yate/Makefile
net/yate/files/banbrutes.pl [new file with mode: 0755]