View Single Post
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 04-14-2020 , 13:02   Re: [ANY] CIDR Blocker MySQL - Block VPNs, Countries and etc
Reply With Quote #49

Quote:
Originally Posted by eliteroyal View Post
so how to whitelist an ip?
The absolutely best option will be to create your filters in a deaggregated way so that they only include the ones you actually want to ban.

To ban 1.2.0.0/20 (1.2.0.0 - 1.2.15.255), but to exclude the addresses in 1.2.3.0/24 (1.2.3.0 - 1.2.3.255), you would need to ban individually segments of e.g.:

1.2.0.0/23 (1.2.0.0 - 1.2.1.255)
1.2.2.0/24 (1.2.2.0 - 1.2.2.255)
1.2.4.0/22 (1.2.4.0 - 1.2.7.255)
1.2.8.0/21 (1.2.8.0 - 1.2.15.255)

Quote:
Originally Posted by eliteroyal View Post
we mortal people dont know too much...
Syntax of sm_cidr_whitelist command

Code:
sm_cidr_whitelist <steamid/ip> <comment>
sm_cidr_whitelist "STEAM_1:1:22334455"
sm_cidr_whitelist "STEAM_1:1:22334455" "Mr. Nice Guy aka. John Doe is a nice guy."
sm_cidr_whitelist "1.2.3.4"
sm_cidr_whitelist "1.2.3.4" "Mr. Nice Guy aka. John Doe, static IP since 2019-12-24"
__________________
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].
DarkDeviL is offline