AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc (https://forums.alliedmods.net/showthread.php?t=300291)

RumbleFrog 08-11-2017 23:52

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

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

LiMaaa 08-12-2017 02:51

Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
 
Nice, you made it. I will give this a test run soon and post any suggestions on improvements! +1

RumbleFrog 08-13-2017 16:30

Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
 
v1.1.0
  • Overhauled the fetching system
  • Reduced memory usage significantly

MUN 08-17-2017 00:56

Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
 
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!

Kats 08-24-2017 15:23

Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
 
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.

dedimark 08-24-2017 17:26

Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
 
RumbleFrog,Thanks

nice CIDR list

you really undestand what is what :D

RumbleFrog 08-24-2017 23:36

Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
 
v1.1.1
  • Escapes Identity to prevent injection

RumbleFrog 08-24-2017 23:38

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

Originally Posted by Kats (Post 2544120)
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.

DarkDeviL 08-25-2017 00:38

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

Originally Posted by RumbleFrog (Post 2544201)
Quote:

Originally Posted by Kats (Post 2544120)
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!)

RumbleFrog 08-25-2017 21:50

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

Originally Posted by arne1288 (Post 2544206)
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.


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

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.