Raised This Month: $12 Target: $400
 3% 

IP Range Ban


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Seather
Member
Join Date: Oct 2004
Plugin ID:
489
Plugin Version:
0.0.1
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Ban ranges of IP v4 addresses via cfg
    Old 08-04-2008 , 23:26   IP Range Ban
    Reply With Quote #1

    example server.cfg:
    Code:
    sm_iprangeban_clear
    sm_iprangeban_add "127.0.0.0" "127.0.0.255"
    sm_iprangeban_add "192.168.0.0" "192.168.255.255"
    TODO: IP v6 support
    Attached Files
    File Type: sp Get Plugin or Get Source (ip_range_ban.sp - 4620 views - 2.4 KB)

    Last edited by Seather; 08-08-2008 at 20:42.
    Seather is offline
    msleeper
    Veteran Member
    Join Date: May 2008
    Location: Atlanta, Jawjuh
    Old 08-05-2008 , 00:55   Re: IP Range Ban
    Reply With Quote #2

    Would it be too much to ask for being able to put a subnet CIDR instead of an "ending" address? Such as:

    sm_iprangeban_add "127.0.0.0" "24"
    sm_iprangeban_add "192.168.0.0" "16"
    __________________

    Last edited by msleeper; 08-05-2008 at 01:08.
    msleeper is offline
    ifx
    Senior Member
    Join Date: Apr 2008
    Old 08-05-2008 , 15:02   Re: IP Range Ban
    Reply With Quote #3

    Seather: if you add mysql support it would be awesome! anyway, great plugin! many thanks!
    ifx is offline
    kom65
    Junior Member
    Join Date: May 2008
    Old 08-12-2008 , 05:31   Re: IP Range Ban
    Reply With Quote #4

    How many bands can be set?
    Quote:
    L 08/12/2008 - 06:12:57: [ip_range_ban.smx] Max number of IP range bans reached
    L 08/12/2008 - 06:12:57: [ip_range_ban.smx] Max number of IP range bans reached
    L 08/12/2008 - 06:12:57: [ip_range_ban.smx] Max number of IP range bans reached
    L 08/12/2008 - 06:12:57: [ip_range_ban.smx] Max number of IP range bans reached
    L 08/12/2008 - 06:12:57: [ip_range_ban.smx] Max number of IP range bans reached
    L 08/12/2008 - 06:12:57: [ip_range_ban.smx] Max number of IP range bans reached
    kom65 is offline
    Send a message via ICQ to kom65
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 08-12-2008 , 08:44   Re: IP Range Ban
    Reply With Quote #5

    Quote:
    Originally Posted by kom65 View Post
    How many bands can be set?
    #define MAX_BANS 50
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    kom65
    Junior Member
    Join Date: May 2008
    Old 08-12-2008 , 09:25   Re: IP Range Ban
    Reply With Quote #6

    What is 50? is the number of IP addresses or number of records?
    This is what I have:
    Quote:
    sm_iprangeban_add "212.34.111.0" "212.34.111.255"
    sm_iprangeban_add "86.57.15.0" "86.57.15.255"
    sm_iprangeban_add "80.66.242.0" "80.66.242.255"
    sm_iprangeban_add "212.220.108.0" "212.220.108.255"
    sm_iprangeban_add "92.113.0.0" "92.113.255.255"
    sm_iprangeban_add "92.112.0.0" "92.112.255.255"
    kom65 is offline
    Send a message via ICQ to kom65
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 08-12-2008 , 09:39   Re: IP Range Ban
    Reply With Quote #7

    Well, that isn't 50 ranges so i would assume it's 50 total.
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    Seather
    Member
    Join Date: Oct 2004
    Old 08-12-2008 , 15:44   Re: IP Range Ban
    Reply With Quote #8

    see first post for positioning of "sm_iprangeban_clear"

    i'm guessing that on every map change you are adding the same bans without clearing first

    it is 50 adds.
    you can do
    sm_iprangeban_add "0.0.0.0" "255.255.255.255"
    with no problem

    Last edited by Seather; 08-12-2008 at 15:56.
    Seather is offline
    kom65
    Junior Member
    Join Date: May 2008
    Old 08-13-2008 , 01:00   Re: IP Range Ban
    Reply With Quote #9

    ie I must clean the bathhouse using sm_iprangeban_clear on each map?
    kom65 is offline
    Send a message via ICQ to kom65
    Seather
    Member
    Join Date: Oct 2004
    Old 08-13-2008 , 01:59   Re: IP Range Ban
    Reply With Quote #10

    makes it easier to remove bans, instead of haveing to restart the server or issue a remove command you just need execute the server.cfg file again
    Seather 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 11:02.


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