[FilterScript] CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). (
/showthread.php?tid=446692)
CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). -
R@f - 26.06.2013
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.
Re: CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). -
DarkB0y - 26.06.2013
Nice work
Re: CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). -
kaisersouse - 26.06.2013
Nice dude! I like how you incorporated my listing into a script. Very helpful!
Re: CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). -
Cypress - 26.06.2013
That's brilliant. Thank you!
Re: CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). -
vardanega - 27.06.2013
Encore de l'excellent travail, merci а toi.
Re: CIDR Ban - Ban precise IP ranges (VPN, ISP, ...). -
GeniusPobs - 27.06.2013
Wow, good job