Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins Discussion (Moderator: MordyT)banlist pluging install problems
Pages: [1]   Go Down
  Print  
Author Topic: banlist pluging install problems  (Read 976 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Home user
Gameservers: cod4
Posts: 31
Offline Offline
« on: August 01, 2010, 06:27:13 AM »

hello, im trying to intsll banlist plugin and i dont know how to set i up, please, show me any "real" config of the xml file to see which parts i need to change, i dont know where to place banlist.txt file and how to link it to my plugin, also, i dont know how to force B3 to use ip for ban and not guid, i prefer Ip banning and ip renge banning if neccesary.
thank you
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: August 01, 2010, 06:54:45 AM »

Hi Jordix,

You can find a complete example of the banlist plugin config file at http://www.bigbrotherbot.net/forums/releases/banlist-plugin-v2-1-2/

Keep in mind that the banlist plugin does not offer any command to ban by IP. This plugin only makes sure that connecting player whose IP if found in some banlist text files are kicked (IP range or strict IP)

I hope this clarifies things
Logged

Jr. Member
**
OS: Windows
Type: Home user
Gameservers: cod4
Posts: 31
Offline Offline
« Reply #2 on: August 02, 2010, 06:10:20 AM »

hello, thank you for your fast support. yes iknow, i want to have some banned ips or ranges if necessary and well, at this point im bit confused: "who" will add those bans to the txt file? me? manually? (for the momment would be enough), can i get echelon banlist and add to this file with copy paste? or, i think, plugin let me to update it with my echelon file automatically?

ive placet banlist2.txt file on my web hosting site and copied all my bans from echelon ban file, you can see file its accessible by clicking on the link but i get no info about banlist loaded so i think is not working fine....

<ip_banlist>
      <name>banlist 1</name>
      <file>http://www.watt-rccars.com/echelon/banlist2.txt</file>
      <force_ip_range>no</force_ip_range>
      <message>^4$name^7 is ^1BANNED^7 (BANLIST 1)</message>
   </ip_banlist>
than you again and forgive the nuissances, im not an expert in this kind of things Sad
« Last Edit: August 02, 2010, 06:49:25 AM by jordix » Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: August 02, 2010, 11:40:48 AM »

you are looking for
Code:
<ip_banlist>
    <name>banlist 1</name>
    <file>c:/somewhere/urt/banlist1.txt</file>
    <force_ip_range>no</force_ip_range>
    <message>^4$name^7 is ^1BANNED^7 (BANLIST 1)</message>
    <url>
      <![CDATA[http://www.watt-rccars.com/echelon/banlist2.txt]]>
    </url>
  </ip_banlist> 
« Last Edit: August 02, 2010, 01:57:01 PM by Courgette » Logged

B3 Contrib/Support
*
OS: Linux
Type: Home user
Gameservers: Over see 25 URT servers / B3 servers (not all mine)
Posts: 339
Offline Offline
WWW
« Reply #4 on: August 03, 2010, 03:55:02 AM »

heres what I got on a multi bot setup, one bot pulls all the lists like this:

Code:
<ip_banlist>
<name>TS</name>
<file>/var/www/banlists/pbts.txt</file>
<force_ip_range>no</force_ip_range>
<message>^4$name^7 is ^1BAN^7 on the ^5Team Survivor Server</message>
<url>ftp://user:password@location/to/q3ut4/banlist.txt</url>
</ip_banlist>

<ip_banlist> 
<name>UAA</name> 
<file>/var/www/banlists/uaa.txt</file> 
<force_ip_range>no</force_ip_range> 
<message>^4$name^7 is a member of the ^5UAA BAN LIST</message>
<url>http://www.urtadmins.com/e107_files/public/banlist.txt</url>
</ip_banlist>   

<ip_banlist>
<name>echelon</name>
<file>/var/www/banlists/pbechelon.txt</file>
<force_ip_range>no</force_ip_range>
<message>^4$name^7 was ^1BAN^7 via ^5Echelon for being a jackass</message>
<url>http://72.51.33.80/poorbastard/echelon/banlist.php</url>
</ip_banlist>

#1 logs in to a gameservers.com box then pulls the list
#2 pulls the UAA list
#3 pulls my echelon list

You notice the first one is a server, If B3 went down I could still Rcon ban. Then when it comes back it would know this player was ban on one of the other servers and is not allowed on any of my servers   

the fist bot already know where all the files are. So for the other bots I remove the URL string on the bottom and they all read from /var/www/banlists/ but setup the same way

I do over see some bots that I don't host from that box, so I have them like this:
Code:
<ip_banlist>
<name>TS</name>
<file>pbts.txt</file>
<force_ip_range>no</force_ip_range>
<message>^4$name^7 is ^1BAN^7 on the ^5Team Survivor Server</message>
<url>http://72.51.33.80/banlists/pbts.txt</url>
</ip_banlist>

<ip_banlist> 
<name>UAA</name> 
<file>uaa.txt</file> 
<force_ip_range>no</force_ip_range> 
<message>^4$name^7 is a member of the ^5UAA BAN LIST</message>
<url>http://72.51.33.80/banlists/uaa.txt</url>
</ip_banlist>   

<ip_banlist>
<name>echelon</name>
<file>pbechelon.txt</file>
<force_ip_range>no</force_ip_range>
<message>^4$name^7 was ^1BAN^7 via ^5Echelon for being a jackass</message>
<url>http://72.51.33.80/banlists/echelon.txt</url>
</ip_banlist>

it makes a mess of the / of B3 but it was an easy/fast fix. If I where to do it over I would of make a dir called banlists for each bot that was remotely hosted.

Logged
Jr. Member
**
OS: Windows
Type: Home user
Gameservers: cod4
Posts: 31
Offline Offline
« Reply #5 on: August 07, 2010, 01:49:13 AM »

thank you everybody, im still unable to understand lol, sorry, ive been "fighting" with echelon web site and chatlogger and finally i did it succesfully but this... dont understand that c:\somewhere\urt...
well, thankyou again i dont want to bother you anymore, i will go on like at the momment.

jordix.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #6 on: August 07, 2010, 02:17:22 AM »

<file> is the location on your disk where the banlist text file should be saved
<url> is the URI from where to download the banlist text file in order to update every hour the banlist file on you disk (<file>)
Logged

Jr. Member
**
OS: Windows
Type: Home user
Gameservers: cod4
Posts: 31
Offline Offline
« Reply #7 on: August 08, 2010, 03:17:53 AM »

thank you again for reply, then do i need to keep that ban file on my computer?, i thought that file should be in the game server or web site or... not in my computer con is not always on.

well, what i dont understand its where do i need to locate those files, i will explain, i got ban.txt file on game server (cod4) located in its usual folder (main/ban.txt), so everytime we ban a guy, that ban appears on that file, so at this point, where do i need located the second ban file? do i need it?

my idea was to have a banning file that includes IP´s, not to update from other servers, so i only need 1 file i think...
like this:

<ip_banlist>
      <name>banlist 1</name>
      <file>my game server adress/ban.txt</file>
      <force_ip_range>no</force_ip_range>
      <message>^4$name^7 is ^1BANNED^7 (BANLIST 1)</message>
   </ip_banlist>

after that i could update this file with my echelon file using copy&paste and this way i would include all IPs catched by B3 on my actual ban.txt game server file to allow plugin to use them.

« Last Edit: August 08, 2010, 03:43:50 AM by jordix » Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #8 on: August 08, 2010, 03:37:24 AM »

I don't know if the banlist plunging is what your looking for.
The banlist plugin does 2 things :
* kick connecting if their ip is found in a banlist file.
* update a local banlist file from the Internet hourly

Sent from my HTC Legend using Tapatalk
Logged

Jr. Member
**
OS: Windows
Type: Home user
Gameservers: cod4
Posts: 31
Offline Offline
« Reply #9 on: August 08, 2010, 03:44:58 AM »

ok so if i use my game server ban file with plugin and i include ips on it it will work?
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #10 on: August 08, 2010, 03:51:41 AM »

It will, but I don't see the point. If B3 is already kicking banned guys, why do you want to have the gameserver banlist file also updated ?
Logged

Jr. Member
**
OS: Windows
Type: Home user
Gameservers: cod4
Posts: 31
Offline Offline
« Reply #11 on: August 08, 2010, 03:57:05 AM »

cos i want to use IP´s to ban ppl too, as i see, game ban file doesnt include IP´s only GUID its used for ban and B3 uses GUID as well, this way i think i will add IP´s to bans and will enforce the banning way. im not sure if im right, but this is my idea, to use IP added to GUID this way B3 will ban GUID and plugin will ban IP.
im not sure if this will work like this, however i would rather to ban via IP, i think its better in most cases than GUID method.
thanks
« Last Edit: August 08, 2010, 04:01:53 AM by jordix » Logged
Jr. Member
**
OS: Windows
Type: Home user
Gameservers: cod4
Posts: 31
Offline Offline
« Reply #12 on: August 09, 2010, 06:44:00 AM »

ok, finally its working, however i got last issue (sorry), echelon banlist includes all banned guys IPs with last digit as 0, this way if i copy and paste this list on my banlist plugin i will have al lIPs ending with 0, my question is, how can i change echelon to get reals IPs and not = ending?
thanks.
Logged
B3 Contrib/Support
*
OS: Linux
Type: Home user
Gameservers: Over see 25 URT servers / B3 servers (not all mine)
Posts: 339
Offline Offline
WWW
« Reply #13 on: August 10, 2010, 11:08:26 AM »

It will, but I don't see the point. If B3 is already kicking banned guys, why do you want to have the gameserver banlist file also updated ?

in case something goes wrong with B3, you can still Rcon ban and not worry when it comes back up. (for multi servers)
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal