Raised This Month: $106 Target: $400
 26% 

[ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc


Post New Thread Reply   
 
Thread Tools Display Modes
Author
RumbleFrog
AlliedModders Donor
Join Date: Dec 2016
Location: US
Plugin ID:
5760
Plugin Version:
1.1.5
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    199 
    Plugin Description:
    Blocks CIDR (Classless Inter-Domain Routing) IP Range
    Old 08-12-2017 , 00:52   [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
    Reply With Quote #1



    Blocks CIDR (Classless Inter-Domain Routing) IP Ranges

    ***

    Potential Uses
    • Block VPNs to prevent hackers
    • Block certain ISPs
    • Block certain countries

    ConVar
    • sm_cidr_log - Enable blocked logging [Default: 1.0] (Min: 0.0) (Max: 1.0)

    Database Structure

    Spoiler


    Installation
    1. Extract CIDR_Blocker.smx to /addons/sourcemod/plugins
    2. Create cidr_blocker entry in your database.cfg
    3. (Optional | Recommended) Import https://github.com/CIDR-Blocker/CIDR...atacenters.sql into cidr_list table

    Resources
    Plans & Bugs

    Issue tracker

    Changelog

    Commits

    Download

    Download the latest version from the release page.

    Source

    You can view the source here.

    License

    GPL-3.0

    Icon made by Freepik from http://www.flaticon.com

    Last edited by RumbleFrog; 12-09-2018 at 18:33. Reason: v1.1.5
    RumbleFrog is offline
    LiMaaa
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Behind You
    Old 08-12-2017 , 03:51   Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
    Reply With Quote #2

    Nice, you made it. I will give this a test run soon and post any suggestions on improvements! +1
    __________________
    >>> Hiring SourcePawn, Node.js, SteamAPI DEVS <<<
    Feel free to add me on steam or PM me on the forums.
    Endless Gamers Community
    http://endlessgamers.com
    LiMaaa is offline
    RumbleFrog
    AlliedModders Donor
    Join Date: Dec 2016
    Location: US
    Old 08-13-2017 , 17:30   Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
    Reply With Quote #3

    v1.1.0
    • Overhauled the fetching system
    • Reduced memory usage significantly
    RumbleFrog is offline
    MUN
    Senior Member
    Join Date: Jan 2012
    Location: Cali
    Old 08-17-2017 , 01:56   Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
    Reply With Quote #4

    Hey!

    This looks like a cool project! A few things about the enjen.net/asn-blocklist api! You could use it to pull IP lists of ASNs. That way you would simply need to specify the ASN in a config file. You could then recheck every few days for updated ips!

    https://www.enjen.net/asn-blocklist/...on_split&api=1

    Just grab everything inside the ipv4s array and away you go! Remember, TF2 and the source engine at the moment don't support IPv6 so it would be worthless to smash those in!
    __________________
    MUN is offline
    Kats
    Junior Member
    Join Date: Jun 2017
    Old 08-24-2017 , 16:23   Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
    Reply With Quote #5

    Excellent plugin, using it on all my servers.

    An auto-updating list and option to ban users connecting rather kicking would be a nice addition.
    Kats is offline
    dedimark
    Senior Member
    Join Date: Jul 2015
    Location: London
    Old 08-24-2017 , 18:26   Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
    Reply With Quote #6

    RumbleFrog,Thanks

    nice CIDR list

    you really undestand what is what
    dedimark is offline
    RumbleFrog
    AlliedModders Donor
    Join Date: Dec 2016
    Location: US
    Old 08-25-2017 , 00:36   Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
    Reply With Quote #7

    v1.1.1
    • Escapes Identity to prevent injection
    RumbleFrog is offline
    RumbleFrog
    AlliedModders Donor
    Join Date: Dec 2016
    Location: US
    Old 08-25-2017 , 00:38   Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
    Reply With Quote #8

    Quote:
    Originally Posted by Kats View Post
    Excellent plugin, using it on all my servers.

    An auto-updating list and option to ban users connecting rather kicking would be a nice addition.
    I think the only way I can auto-update CIDRs is through HTTP request and I don't wish to add a dependency like Steamworks and SteamTools as it's currently dependency-less.
    RumbleFrog is offline
    arne1288
    SourceMod Moderator
    Join Date: Apr 2012
    Old 08-25-2017 , 01:38   Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
    Reply With Quote #9

    Quote:
    Originally Posted by RumbleFrog View Post
    Quote:
    Originally Posted by Kats View Post
    Excellent plugin, using it on all my servers.

    An auto-updating list and option to ban users connecting rather kicking would be a nice addition.
    I think the only way I can auto-update CIDRs is through HTTP request and I don't wish to add a dependency like Steamworks and SteamTools as it's currently dependency-less.
    I would agree on this one:

    The plugin provides the functionality to ban based on CIDR. How you populate your database is completely up to you.

    Any kind of task that isn't necessary for the game server itself to run should be kept outside of the game server when possible. And hopefully on a separate physical server than the one running the game server as well! (... my two cents!)
    __________________
    Mostly known as "DarkDeviL".

    Dropbox FastDL: Public folder will no longer work after March 15, 2017!
    For more info, see the [SRCDS Thread], or the [HLDS Thread]
    arne1288 is offline
    RumbleFrog
    AlliedModders Donor
    Join Date: Dec 2016
    Location: US
    Old 08-25-2017 , 22:50   Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
    Reply With Quote #10

    Quote:
    Originally Posted by arne1288 View Post
    I would agree on this one:

    The plugin provides the functionality to ban based on CIDR. How you populate your database is completely up to you.

    Any kind of task that isn't necessary for the game server itself to run should be kept outside of the game server when possible. And hopefully on a separate physical server than the one running the game server as well! (... my two cents!)
    With that said, I might create a site where you could download latest imports and perhaps give more options.
    RumbleFrog is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 13:50.


    Powered by vBulletin®
    Copyright ©2000 - 2018, vBulletin Solutions, Inc.
    Theme made by Freecode