Raised This Month: $32 Target: $400
 8% 

Banning IP & ID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xomp
BANNED
Join Date: Jul 2008
Old 05-27-2012 , 09:19   Banning IP & ID
Reply With Quote #1

Is it possible to have sourcemod ban both the IP & ID of a player when they are banned from the server? I often ban folks remotely via RCon more than in-game and am wondering if that's why it isn't working for me currently? My server.cfg's logging section looks like this:

Code:
// Server logging cvars
sv_logbans 1
sv_logecho 0
sv_logfile 1
sv_log_onefile 1
exec banned_user.cfg
exec banned_ip.cfg
log on
log 1
writeid
writeip
xomp is offline
Send a message via Skype™ to xomp
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 05-27-2012 , 11:16   Re: Banning IP & ID
Reply With Quote #2

You could try SourceBans, however I'm not entirely sure if IP bans are successfully implemented in it.
__________________
11530 is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 05-27-2012 , 11:25   Re: Banning IP & ID
Reply With Quote #3

Quote:
Originally Posted by 11530 View Post
You could try SourceBans, however I'm not entirely sure if IP bans are successfully implemented in it.
There is an option on sourcebans for IP# banning but I've yet to see it work - something I really wish did work.
Horsedick is offline
xomp
BANNED
Join Date: Jul 2008
Old 05-27-2012 , 12:03   Re: Banning IP & ID
Reply With Quote #4

Quote:
Originally Posted by Horsedick View Post
There is an option on sourcebans for IP# banning but I've yet to see it work - something I really wish did work.
^ This is why I call sourcebans terrible. Nothing is consistent with it and it's a dead project in my opinion. I was almost certain srcds had a way of doing both IP/ID at least that's what old google search results turn up but Valve and all.
xomp is offline
Send a message via Skype™ to xomp
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 05-27-2012 , 12:40   Re: Banning IP & ID
Reply With Quote #5

Quote:
Originally Posted by xomp View Post
^ This is why I call sourcebans terrible. Nothing is consistent with it and it's a dead project in my opinion. I was almost certain srcds had a way of doing both IP/ID at least that's what old google search results turn up but Valve and all.
sourcebans has its useful ness....just needs an overhaul but according to Powerlord they need developers to work on it. I wish I knew what to do myself on it but I just don't have the knowledge to approach it.
Horsedick is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 05-27-2012 , 13:24   Re: Banning IP & ID
Reply With Quote #6

xomp, are you trying to do this through Valve's ban system or another MySQL one such as MySQL banning? (I'm assuming it's Valve's system by looking at your server.cfg that's given, but it could be otherwise)
minimoney1 is offline
xomp
BANNED
Join Date: Jul 2008
Old 05-27-2012 , 15:13   Re: Banning IP & ID
Reply With Quote #7

Quote:
Originally Posted by minimoney1 View Post
xomp, are you trying to do this through Valve's ban system or another MySQL one such as MySQL banning? (I'm assuming it's Valve's system by looking at your server.cfg that's given, but it could be otherwise)
srcds' ban system.
xomp is offline
Send a message via Skype™ to xomp
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 05-27-2012 , 17:48   Re: Banning IP & ID
Reply With Quote #8

It seems like this would be really easy with the two forwards OnBanClient and OnBanIdentity.
Don't know how well this would integrate with Sourcebans as it has its own system, but if we could just get the client's IP in the OnBanClient forward and use something like BanIdentity(clientIp, banTime, BANFLAG_IP, reason);
I'll try to make a plugin right now.

Last edited by minimoney1; 05-27-2012 at 17:55.
minimoney1 is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 05-27-2012 , 19:54   Re: Banning IP & ID
Reply With Quote #9

Quote:
Originally Posted by minimoney1 View Post
It seems like this would be really easy with the two forwards OnBanClient and OnBanIdentity.
Don't know how well this would integrate with Sourcebans as it has its own system, but if we could just get the client's IP in the OnBanClient forward and use something like BanIdentity(clientIp, banTime, BANFLAG_IP, reason);
I'll try to make a plugin right now.
If you can get this to work with sourcebans as in an effective IP# ban I'll give you a hug!
Horsedick is offline
Dravu
Senior Member
Join Date: May 2010
Old 05-27-2012 , 20:35   Re: Banning IP & ID
Reply With Quote #10

We use the latest version of Sourcebans and IP bans work fine.
Dravu is offline
Reply



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