MONTAR UN SERVIDOR BNET PARA STARCRAFT

Imagen de skypower

Hola amigos, aqui les mostrare la via mas rapida
de montar un servidor de battle.net en Debian,
donde podran ya no solo jugar en sus redes LAN,
sino que habra un servidor-Bnet-(Linux) donde
tendran cuentas personales, moderacion de usuarios,
records, replays, chats, etc...

Lo primero que deben hacer es instalar el paquete pvpgn

apt-get install pvpgn

Despues debemos descargar el archivo
pvpgn-support-1.0.tar.gz
y ejecutamos el siguiente comando


pvpgn-support-installer -l (ubicacion del pvpgn-support-1.0.tar.gz)

Editamos el /etc/pvpgn/bnet.conf ej:

storage_path = file:mode=plain;dir=/var/lib/pvpgn/files/users;clan=/var/lib/pvpgn/files/clans;team=/var/lib/pvpgn/files/teams;default=/etc/pvpgn/bnetd_default_user.plain

filedir = /var/lib/pvpgn/files
reportdir = /var/lib/pvpgn/files/reports
chanlogdir = /var/lib/pvpgn/files/chanlogs
logfile = /var/lib/pvpgn/files/bnetd.log
maildir = /var/lib/pvpgn/files/bnmail
ladderdir = /var/lib/pvpgn/files/ladders
statusdir = /var/lib/pvpgn/files/status
pidfile = /var/lib/pvpgn/files/bnetd.pid

motdfile = /etc/pvpgn/bnmotd.txt
issuefile = /etc/pvpgn/bnissue.txt
channelfile = /etc/pvpgn/channel.conf
newsfile = /etc/pvpgn/news.txt
adfile = /etc/pvpgn/ad.conf
topicfile = /etc/pvpgn/topics.conf
ipbanfile = /etc/pvpgn/bnban.conf
helpfile = /etc/pvpgn/bnhelp.conf
mpqfile = /etc/pvpgn/autoupdate.conf
realmfile = /etc/pvpgn/realm.conf
mapsfile = /etc/pvpgn/bnmaps.conf
xplevelfile = /etc/pvpgn/bnxplevel.conf
xpcalcfile = /etc/pvpgn/bnxpcalc.conf

aliasfile = /etc/pvpgn/bnalias.conf
DBlayoutfile = /etc/pvpgn/sql_DB_layout.conf
supportfile = /etc/pvpgn/supportfile.conf
transfile = /etc/pvpgn/address_translation.conf
fortunecmd = /usr/games/fortune

tournament_file = /etc/pvpgn/tournament.conf
versioncheck_file = /etc/pvpgn/versioncheck.conf
anongame_infos_file = /etc/pvpgn/anongame_infos.conf
command_groups_file = /etc/pvpgn/command_groups.conf

#loglevels = fatal,error,warn,info,debug,trace
loglevels = fatal
d2cs_version = 0
allow_d2cs_setname = true
iconfile = "icons.bni"
war3_iconfile = "icons-WAR3.bni"
star_iconfile = "icons_STAR.bni"
tosfile = "tos.txt"
allowed_clients = all
skip_versioncheck = false
allow_bad_version = false
allow_unknown_version = true
version_exeinfo_match = none
version_exeinfo_maxdiff = 0
usersync = 300
userflush = 1200
userstep = 100
latency = 600
nullmsg = 120
shutdown_delay = 300
shutdown_decr = 60

new_accounts = false

kick_old_login = true
ask_new_channel = true
report_all_games = true
report_diablo_games = true
hide_pass_games = true
hide_started_games = false
hide_temp_channels = true

extra_commands = true
disc_is_loss = true
ladder_games = "topvbot, melee, ffa, oneonone"
ladder_prefix = "ldr_"
enable_conn_all = true
hide_addr = false
chanlog = false
quota = yes
quota_lines = 5 # must be between 1 and 100 lines
quota_time = 5 # must be between 1 and 60 seconds
quota_wrapline = 40 # must be between 1 to 256 chars
quota_maxline = 200 # must be between 1 to 256 chars
quota_dobae = 10 # must be between 1 and 100 lines
mail_support = true
mail_quota = 5
log_notice = "*** Please note this channel is logged! ***"
passfail_count = 0
passfail_bantime = 300
maxusers_per_channel = 0
savebyname = true
sync_on_logoff = true
hashtable_size = 61
account_allowed_symbols = "-_[]§@"
max_friends = 5
track = 60
trackaddrs = "localhost:9999"
servername = "Bnet_SKY"
max_connections = 1000
max_concurrent_logins = 0
use_keepalive = false
max_conns_per_IP = 0
servaddrs = ":" # default interface (all) and default port (6112)
w3routeaddr = "0.0.0.0:6200"
initkill_timer = 120
woltimezone = "-8"
wollongitude = "36.1083"
wollatitude = "-115.0582"
war3_ladder_update_secs = 300
XML_output_ladder = true
output_update_secs = 60
clan_newer_time = 0
clan_max_members = 50
clan_channel_default_private = 0

Reiniciamos el servicio

invoke.rc.d pvpgn restart

NOTA:Para que uno de los usuarios sea administrador del bnet
solo debe editarce /var/lib/pvpgn/files/users/"usuario" y agregarle las siguientes lineas

"BNET\\acct\\userid"="1" # Generalmente es el primero...
"BNET\\auth\\admin"="true"
"BNET\\auth\\command_groups"="255"

y listo...

Suerte Fans al BroodWard...SC...