Jump to content
ImportBot

Shared Banlist [Ver 1.0.0.0 27th September]

Recommended Posts

Originally Posted by Zaeed*:

 

Basic infomation:

This plugin will share all bans across servers running within the same instance of procon, allowing for global banning of players.

 

BF3 Compatible

 

Requirements:

Procon version 0.5.4.2 or above

 

Installation:

- Extract CSharedBanlist.cs into plugin directory.

 

Current version:

1.0.0.0

 

Changelog:

 

 

Notes:

 

Thanks to:

Phogue for Procon

 

Download:

link down below

 

Description:

 

When a ban is added on one server, it will appear on all others within the same instance of procon. Likewise bans removed will be removed on the other servers.

 

Bans are stored in a Banlist folder found in the Plugin directory, with each server having its own ban file.

 

CSharedBanlist.zip

Edited by maxdralle
add plugin cs file

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by XpKiller*:

 

Oh cool thats nice.

I build a similar plugin for mysql last weekend because of these hackers.

it does not Sync the banlist just check if the player is allowed to play.

And if a player is permanent banned by punkbuster it add him to the database.

I will stop develop my plugin.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Zaeed*:

 

I should have mentioned that Punkbuster bans won't be shared, since there is a procon bug. Its been/being resolved for the next version.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by XpKiller*:

 

i have worked out a workaround for that issue.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Zaeed*:

 

i have worked out a workaround for that issue.

What was your workaround?

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by XpKiller*:

 

public void OnPlayerKicked(string strSoldierName, string strReason)

{

//PunkBuster permanent ban issued on this Game Server for player

if(strReason.Contains("PunkBuster permanent ban issued on this Game Server for player"))

{

string newReason = strReason.Replace("PunkBuster permanent ban issued on this Game Server for player","");

newReason = newReason.Replace("'"+strSoldierName+"'","");

newReason = newReason.Replace("...","");

this.InsertBan(strSoldierName, newReason);

}

}


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Zaeed*:

 

public void OnPlayerKicked(string strSoldierName, string strReason)

{

//PunkBuster permanent ban issued on this Game Server for player

if(strReason.Contains("PunkBuster permanent ban issued on this Game Server for player"))

{

string newReason = strReason.Replace("PunkBuster permanent ban issued on this Game Server for player","");

newReason = newReason.Replace("'"+strSoldierName+"'","");

newReason = newReason.Replace("...","");

this.InsertBan(strSoldierName, newReason);

}

}

Where does that reason come from?

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by XpKiller*:

 

That reason is part of the Standard Punkbustermsg if some get banned.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by homer2123*:

 

the plugin doesnt work

 

procon shows me only my bans and no bans from other plugin user


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Zaeed*:

 

the plugin doesnt work

 

procon shows me only my bans and no bans from other plugin user

What do you mean?

 

Are you running a layer? If so this should be run only there, not individually..

 

Can you tell me exactly what you are doing? including your setup


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by homer2123*:

 

i have put the plugin to the plugin folder from our procon server and activated the plugin in procon

 

on the ban list are only the bans from our server which we have made by ourself

 

sry for my bad english


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Zaeed*:

 

i have put the plugin to the plugin folder from our procon server and activated the plugin in procon

 

on the ban list are only the bans from our server which we have made by ourself

 

sry for my bad english

Ok.. Do you have more than one server?

 

The idea of this plugin is that if you have 3 servers managed by procon, each running this plugin, then when you ban PlayerA on server 1, that ban will be applied to servers 2 and 3 also..

 

If you have just one server then the plugin won't do much..


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by VAM*:

 

i have put the plugin to the plugin folder from our procon server and activated the plugin in procon

 

on the ban list are only the bans from our server which we have made by ourself

 

sry for my bad english

Ok.. Do you have more than one server?

 

The idea of this plugin is that if you have 3 servers managed by procon, each running this plugin, then when you ban PlayerA on server 1, that ban will be applied to servers 2 and 3 also..

 

If you have just one server then the plugin won't do much..

ahhh ... for "Multiserver ADMINS" only ....

you must have more then one server .... i have only one, not recommended for me! :ohmy:


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by powerbits*:

 

i thought this was a plugin wich would share a dbase between all procon users... some hacker banned on my server would ban it on all other servers of the procon users...

Ofcourse i understand the sensitivity of this all, you need to have fair admins

 

Then again, it would be great no?


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by homer2123*:

 

ah i thought that the plugin do this :

 

if i run the plugin then all other guys wo have running these plugin get my bans on their banlist and i get the banlist from their server to my banlist

is this possible to make ?

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Zaeed*:

 

ah i thought that the plugin do this :

 

if i run the plugin then all other guys wo have running these plugin get my bans on their banlist and i get the banlist from their server to my banlist

is this possible to make ?
Essentially yes :mrgreen:

 

My next step (I was hoping for people to report back with 'Yay it works great' or 'If I do this ... it breaks') is to implement the mysql functionality.. The code is sitting there, just not activated yet..

 

One of the drawbacks will be that there needs to be someone willing to fork out a mysql database for everyone to use.. I'm not sure if there is someone willing to do that..

 

There then is also the possible issue of manipulating the ban list.. It would have to be done with extreme caution, since I could add a ban for Phogue, just because I don't like him, which would result in him being banned across multiple servers he's never even heard of..

 

If the user is aware of this though, and still willing to use it, then it could be quite a powerful tool :!:

 

The mysql functionality will also allow for people with multiple servers, that don't all run under the same instance of procon to share bans..

 

My third implementation is to include a pb ban file that is an amalgamation of multiple pb ban sources into a single record.. Thus keeping servers up to date with as many pb bans as possible. :mrgreen:


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by micovery*:

 

homer2123 wrote:ah i thought that the plugin do this :

 

if i run the plugin then all other guys wo have running these plugin get my bans on their banlist and i get the banlist from their server to my banlist

 

 

 

is this possible to make ?

 

Essentially yes :mrgreen:

Enforcing bans by proxy is very dangerous. You should only be able to ban people for servers which you are responsible for. Some rules I can think of:

 

1. As user, by running the plugin, you automatically agree to share your bans with everybody else

2. As user, by running the plugin, you must list which servers you want to accept bans from (enforced by proxy)


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Zaeed*:

 

homer2123 wrote:ah i thought that the plugin do this :

 

if i run the plugin then all other guys wo have running these plugin get my bans on their banlist and i get the banlist from their server to my banlist

 

 

 

is this possible to make ?

 

Essentially yes :mrgreen:

Enforcing bans by proxy is very dangerous. You should only be able to ban people for servers which you are responsible for. Some rules I can think of:

 

1. As user, by running the plugin, you automatically agree to share your bans with everybody else

2. As user, by running the plugin, you must list which servers you want to accept bans from (enforced by proxy)

Yeah I agree there would need to be some strict warnings in place..

 

A few ideas off the top of my head:

 

1) Mysql hoster sets up individual accounts for each person wanting to share their ban list

2) Include server name ban issued on into reason for ban

3) Delegate an 'admin' that needs to 'sign off' on all bans added to the group

4) Only allow a ban to be removed after a certain time period (except for temp bans below this length)

5) Use at own risk


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Pharrett*:

 

I have two servers setup with the shared banlist plugin. I notice today that in Procon I get the following error

 

Global Banlist: File read error2 System.IO.IOException: The process cannot access the file 'C:\Users\XXXX\Desktop\ProCon BC2\Plugins\Banlists\68.232.170.205-Bans.txt' because it is being used by another process.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)

at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)

at System.IO.StreamReader..ctor(String path)

at PRoConEvents.CSharedBanlist.BanlistUpdate()

The error above shows on Server 1 while trying to access the banlist on Server 2. Server 2 gets the same error but with Server 1 listed instead.

 

I am running both servers on the same instance of Procon and each of them is running the shared banlist plugin.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by prt3*:

 

I have two servers setup with the shared banlist plugin. I notice today that in Procon I get the following error

 

Global Banlist: File read error2 System.IO.IOException: The process cannot access the file 'C:\Users\XXXX\Desktop\ProCon BC2\Plugins\Banlists\68.232.170.205-Bans.txt' because it is being used by another process.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)

at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)

at System.IO.StreamReader..ctor(String path)

at PRoConEvents.CSharedBanlist.BanlistUpdate()

The error above shows on Server 1 while trying to access the banlist on Server 2. Server 2 gets the same error but with Server 1 listed instead.

 

I am running both servers on the same instance of Procon and each of them is running the shared banlist plugin.

got the same error on 2 out of the 4 servers we run aswell yesterday

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Zaeed*:

 

Yeah, i'm working on a new version of this.. That error occurs when one server tries to access a bans file when another server is writing to it...

 

I've been super busy lately, but i'll get the new version up soon.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by captinwizard*:

 

Yup! I am having the same problem with both our BC2 game servers. Was not sure if the real issue is with the Procon banlist function or with your plugin?

 

Banlist is not updating Game server banlist all the time. I see differance between banlist.

Unban players return to banlist after refresh?


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by prt3*:

 

Yeah, i'm working on a new version of this.. That error occurs when one server tries to access a bans file when another server is writing to it...

 

I've been super busy lately, but i'll get the new version up soon.

Thanks for the quick reply:smile:

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Wetdog*:

 

Are servers are doing the same...when we unban someone...it bans them again.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by cfour*:

 

Yeah, i'm working on a new version of this.. That error occurs when one server tries to access a bans file when another server is writing to it...

 

I've been super busy lately, but i'll get the new version up soon.

Has this been fixed?

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Zaeed*:

 

Yeah, i'm working on a new version of this.. That error occurs when one server tries to access a bans file when another server is writing to it...

 

I've been super busy lately, but i'll get the new version up soon.

Has this been fixed?
Not yet unfortunately. I understated the 'super busy'.

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by QUACK-Major-Pain*:

 

Doesn't seem to work anymore with latest procon update.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

Doesn't seem to work anymore with latest procon update.

It works fine for me.

Although there is still the Read/Write Error, and the problem with unbanning a player.

But the rest is just ok :smile:


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by captinwizard*:

 

On refresh banlist will read/post into procon banlist from pbban.dat all but the latest bans? We banned a couple folks over the last few day's and their ban is written to pbban.dat file on server but on procon refresh the last few bans are not showing up in the procon banlist? Older procon pbbans do showup.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 10 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 6 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.