[FilterScript] CIDR Ban - Ban precise IP ranges (VPN, ISP, ...).
#1

Hello everyone !

Here's my last release, a CIDR ban script.

What can it be used for ?
  • Ban precise IP ranges (from 1.2.3.4 to 1.2.3.42 for example).
  • Ban VPN or ISP ranges from your server.
Commands (rcon admin)
  • /bancidr [CIDR range] - Example : /bancidr 192.168.1.0/24 - Add the CIDR range to the ban list and kick all current players in this range.
  • /getcidr [Start IP] [End IP] - Example : /bancidr 192.168.1.0 - 192.168.1.255 - Get the CIDR range with a start and end IP (http request for the moment, was a bit lazy to write this function in pawn...).
How to ban VPNs
Kaisersouse provided a useful list containing VPN ranges (not all VPNs) : https://sampforum.blast.hk/showthread.php?tid=422675
Copy this list, remove all comments (# and the text after it) and paste it in the cidr-banlist.txt file in the scriptfiles folder (if cidr-banlist.txt doesn't exist, create it).

Required
Plugin
Regular Expressions by Fro1sha

Includes (for compiling only)
regex.inc by Fro1sha
cidr.inc by R@f

Download
V1.0 : Pwn on Pastebin
V1.0 : Pwn + amx on Solidfiles (read for use, plug'n'play)




Cheers,
R@f.
Reply


Messages In This Thread
CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). - by R@f - 26.06.2013, 21:52
Re: CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). - by DarkB0y - 26.06.2013, 22:19
Re: CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). - by kaisersouse - 26.06.2013, 22:24
Re: CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). - by Cypress - 26.06.2013, 22:25
Re: CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). - by vardanega - 27.06.2013, 07:50
Re: CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). - by GeniusPobs - 27.06.2013, 11:24

Forum Jump:


Users browsing this thread: 2 Guest(s)