Jump to content

Shared Banlist [Ver 1.0.0.0 27th September]


ImportBot

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.
Link to comment

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.
Link to comment

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.
Link to comment

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.
Link to comment

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.
Link to comment

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.
Link to comment

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.
Link to comment

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.
Link to comment

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.
Link to comment

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.
Link to comment

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.
Link to comment

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.
Link to comment

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.
Link to comment
  • 1 month later...

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.
Link to comment

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.
Link to comment

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.
Link to comment

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.
Link to comment

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.
Link to comment
  • 3 weeks later...

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.
Link to comment

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.
Link to comment
  • 4 weeks later...

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.
Link to comment

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.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • 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

       
      • 11 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.

       
      • 9 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.