기타/Starcraft 서버 개설
베틀넷 프리서버 만들기 - 3. bnetd.conf 설정
지난번에 말해드렷듯이
서버를 열기만하면 안되죠
설정을 해줍시다.
bnetd.conf를 수정해서 서버를 수정해줄수 잇습니다.
우선 서버폴더를 열어주시고
conf폴더가서 bnetd.conf 를 열어주시거나
서버프로그램에서
서버환경설정
을 눌러주시면 됩니다.
그럼 메모장 또는 워드패드로 열림.
이제 이걸 수정해줍니다.
아래내용은 매우길어요
우선 #이렇게
된건 주석이고 제 설명(같지않은설명)이나 제말입니다. 실제론없고 쓰면안댐
그리고 회색으로되잇는글자들은 건들지 않아도(않아야) 될부분
검은색부분이 자유롭게 건들 부분입니다.
# <- 로 된것은 주석설명입니다 프로그램에는 영향을 주지않는 설명문일뿐입니다 # #기본적으로 이런거 만질때
# <- 이표시가 없는 부분이 실제 서버 세팅 부분입니다 # #알아두고 있어야할 상식임다.
# 세팅을 바꾸신후 저장하시면됩니다 #
##############################################################################
# bnetd.conf - 유닉스 베틀넷 데몬의 환경설정
#----------------------------------------------------------------------------#
# #
# 이파일은 환경설정의 예제 부분입니다 본인의 환경에 맞게 수정하시면됩니다 #
#
# 설정중에 true는 허용 false는 차단한다는 뜻입니다
#
##############################################################################
##############################################################################
# 저장내용 부분 #
# storage_path will tell pvpgn how and where from/to to read/write accounts #
# right now it supports 2 "drivers" : file and sql #
# #
# 문법: #
# * for plain file driver: #
# storage_path = file:mode=plain;dir=<path_to_user_files>;clan=<path_to_clan_files>;team=<path_to_team_files>;default=/path/to/default/account #
# * for cdb file driver: #
# storage_path = file:mode=cdb;dir=<path_to_cdb_files>;clan=<path_to_clan_files>;team=<path_to_team_files>;default=/path/to/default/account #
# * for sql/sql2 driver: #
# storage_path = sql:variable=value;...;default=0 (0 is the default uid) #
# or storage_path = sql2:variable=value;...;default=0 (0 is the default uid) #
# #
# Variables for sql/sql2 can be: #
# - "mode" : tells PVPGN the sql mode you will use (mysql/pgsql/etc..) #
# - "host" : the database host #
# - "port" : the TCP/IP port if needed #
# - "socket" : the UNIX local socket if needed #
# - "name" : database name #
# - "user" : db username #
# - "pass" : db password #
# - "default" : specify the UID to use for the default account data #
# - "prefix" : prefix to use for all pvpgn tables (default "") #
# #
#예제: #
# storage_path = file:mode=plain;dir=var\users;clan=var\clans;team=var\teams\;default=conf\bnetd_default_user.plain
# storage_path = file:mode=cdb;dir=var\userscdb;clan=var\clans;team=var\teams\;default=conf\bnetd_default_user.cdb
# storage_path = sql:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
# storage_path = sql:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
# storage_path = sql:mode=sqlite3;name=var\users.db;default=0;prefix=pvpgn_
# storage_path = sql:mode=odbc;name=PVPGN;prefix=pvpgn_
# storage_path = sql2:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
# storage_path = sql2:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
# storage_path = sql2:mode=sqlite3;name=var\users.db;default=0;prefix=pvpgn_
# storage_path = sql2:mode=odbc;name=PVPGN;prefix=pvpgn_
#----------------------------------------------------------------------------#
storage_path = file:mode=plain;dir=var\users;clan=var\clans;team=var\teams;default=conf\bnetd_default_user.plain
# #
##############################################################################
##############################################################################
# 파일부분 #
# The pidfile can be set to "" to turn it off. #
# Use absolute paths in these lines to avoid problems! #
#----------------------------------------------------------------------------#
filedir = files
reportdir = var\reports
chanlogdir = var\chanlogs
motdfile = conf\bnmotd.txt
issuefile = conf\bnissue.txt
channelfile = conf\channel.conf
newsfile = conf\news.txt
adfile = conf\ad.conf
topicfile = conf\topics.conf
ipbanfile = conf\bnban.conf
helpfile = conf\bnhelp.conf
transfile = conf\address_translation.conf
mpqfile = conf\autoupdate.conf
logfile = var\bnetd.log
realmfile = conf\realm.conf
versioncheck_file = conf\versioncheck.conf
mapsfile = conf\bnmaps.conf
xplevelfile = conf\bnxplevel.conf
xpcalcfile = conf\bnxpcalc.conf
#pidfile = var\bnetd.pid
ladderdir = var\ladders
command_groups_file = conf\command_groups.conf
statusdir = var\status
aliasfile = conf\bnalias.conf
anongame_infos_file = conf\anongame_infos.conf
DBlayoutfile = conf\sql_DB_layout.conf
supportfile = conf\supportfile.conf
fortunecmd = bin\fortune.exe
# #
##############################################################################
##############################################################################
# 메세지로그 #
#----------------------------------------------------------------------------#
# 다중적인 로그레벨은 콤마 ,를 표시해서 여러개를 지정합니다
# 로그레벨은 아래의 것을 사용합니다:
# none
# trace
# debug
# info
# warn
# error
# fatal
#loglevels = fatal,error,warn,info,debug,trace
loglevels = fatal,error
# #
##############################################################################
##############################################################################
# 디아2 서버설정 #
#----------------------------------------------------------------------------#
# 버젼체크 설정 (0 은 버젼을 체크하지 않습니다)
d2cs_version = 0
# Allow the D2CS server to change realm names?
allow_d2cs_setname = true
# #
##############################################################################
##############################################################################
#다운로드파일 #
#----------------------------------------------------------------------------#
# 이 파일들은 접속자가 바로 다운로드하게 해줍니다
# 파일디렉토리는 무시합니다 파일종류와 그 파일의 이름을 지정합니다
iconfile = "icons.bni"
war3_iconfile = "icons-WAR3.bni"
star_iconfile = "icons_STAR.bni"
tosfile = "tos.txt"
# #
##############################################################################
##############################################################################
# 접속자확인 과 게임 버젼업그레이드 #
#----------------------------------------------------------------------------#
# 이 옵션은 접속을 허용할 접속자 리스트를 설정합니다
# 아래내용을 지정하면됩니다
# all : 모든 접속자 접속가능
# chat : 채팅만 가능
# dshr : 디아1만 가능
# drtl : 디아1 리테일버젼
# sshr : 스타데모버젼
# star : 스타크래프트 정식버젼
# sexp : 스타크래프트 브루드워
# w2bn : 워크래프트2 배틀넷버젼
# d2dv : 디아2
# d2xp : 디아2 확장
# war3 : 워3 오리지널
# w3xp : 워3 확장
#
# 예제: allowed_clients = war3,w3xp ( 워3,워3 확장만가능합니다)
# 예제: allowed_clients = sexp ( 스타 브루드워만가능합니다 )
allowed_clients = all
#만약 이옵션을 체크하면 버젼체크를 해서 서버버젼에 맞지 않는것을 걸러냅니다
#If this option is enabled, the verification step is skipped if possible.
# This only works with clients < 109. It is useful because you no longer
# need any of the IX86AUTH?.MPQ and PMACAUTH?.MPQ files. Note that it will
# also skip over all the autoupdate checks effectively disabling it.
#
# If you disable this you must have one or more of the MPQ files. Otherwise
# clients will hang when they first connect because they are attempting to
# download them. The versioncheck can only be skipped for clients older
# than 109. Starting with version 109 the clients will always do version
# checking since they do not function properly if the server does not
# request it.
skip_versioncheck = false
# If you enable the version checks but want to allow clients that don't pass
# the checksum test then enable this.
allow_bad_version = false
#당신이 알수없는 버젼체크를 가능하게 하면
# 치팅프로그램을 사용하는 사람들을 걸러낼수 있습니다
allow_unknown_version = true
# This defines how the exeinfo field in the versioncheck file is being
# checked. You can choose between no match at all [none] (default),
# exact match [exact], exact case-sensitive match [exactcase], dumb wildcard
# match [wildcard], and parsed value comparison [parse].
# NOTE: [parse] needs the mktime() function and might therefore not work on
# every system.
version_exeinfo_match = none
# If you have choosen [parse] above, this is the tolerance with which
# the time can differ. The value must be given in seconds. If it's 0 this
# check is disabled.
version_exeinfo_maxdiff = 0
# #
##############################################################################
##############################################################################
# 각종 이용시 시간값설정 #
#----------------------------------------------------------------------------#
# 파일 업데이트를 하기위한 시간 0은 제한이 없습니다
usersync = 300 #이건 말그대로 업데이트를 하기위한 시간임. 전 안건드림
# 다운로드가 안되면 차단하는시간
# (only checked during account file updates)
userflush = 1200 #이건 다운안되면 차단하는 시간. 전안씀ㅇㅇ
# 사용자수를 체크하는 시간설정 Higher values make sense if you
# 숫자가 높으면 높을수록 서버에 무리를 덜가게합니다
# 만약 서버컴이 좋으면 낮게 안조으면 높게하십시요
userstep = 100 #전안씀
# 얼마나 자주 이용자들의 지연시간을 표시합니까?
latency = 600 #여깃는 Latency가 #L의 단어인데 뭔지모름 안씀
#얼마나 자주 초당 패킷을 전송합니까?
nullmsg = 120 #건들 필요성을 못느낌
# 서버에 접속이 안되면 서버접속을 끊는 시간
shutdown_delay = 300 #접속 안되는거같으면 오래 기다리지말고 그냥 가라 이건데
#전 그냥 적당한거같아서 안건듬.
# Amount of time delay period is decremented by either a SIGTERM or SIGINT
# (control-c) signal in seconds.
shutdown_decr = 60 #영어 Sigh....
# 얼마간격으로 접속이 차단된 아이피를 검색합니까? (초당)
#ipban_check_int = 30 #아이피밴된아이피를 새로고침하는건가 잘모름ㄷ
# #
##############################################################################
##############################################################################
# 사용정책 옵션 #
# 이옵션은 서버에서 사용자가 할수있는 것들을 설정합니다 #
# 서버에서 허용하면 true 차단하면 false 로 지정합니다 #
#----------------------------------------------------------------------------#
# 새접속자가 아이디를 만들수 있도록합니다
# true는 가능 false는 차단
new_accounts = true #이건 당연히 true
# 최대 생성 가능 계정수 설정 0은 무제한입니다
#max_accounts = 0 #더이상 아이디 만들어지는게 싫으면 false하셔도 됩니다.
#만약 어떤사람이 여러번 접속을 하려고하면 이전 로그인정보를 지웁니다
kick_old_login = true #한명이 접속하고잇는데 같은아디가 또접속하면 원래접속하던사람이 팅긴다는소리
#전 true로 해놓음.
#kick_old_login = false
# With no passwords, this is bad to have enabled --NonReal
# load_new_account option has been eliminated and the functionality now is
# always active in PvPGN
# 만약 사용자가 새로운 채널을 만들려고하면 채널을 등록할것인지 질문을 합니다
ask_new_channel = true #막 아무 무작위로 채널들어가면 그채널이 생길지 안생길지임 true
# 게임결과를 매번 기억합니다 레더게임정보와 함께
#report_all_games = false
report_all_games = true #게임결과기록. 왜안해 true
# 디아1/2 승자 정보를 저장합니다
report_diablo_games = false #스타 프리서버지 디아 프리서버가 아닙니다. 뭘해도 상관없음
# 게임을 생성시 비번설정이 가능하게 합니다
hide_pass_games = true #비밀방은 자유롭게하자 true
#게임을 시작하면 게임방 리스트에서 뺍니까?
hide_started_games = true #필요한게아니면 이미시작된건 지우는게 좋죠?
# 잠시 만들어지는 채널을 채널리스트에서 삭제합니까?
hide_temp_channels = true #채널이 생겻다 다시사라질때 그 채널을 넣을건지 물어보는듯 그걸 왜유지해 true
# / 표시후 베틀넷의 명령어를 허용합니까? 예: /stats 전적조회
extra_commands = true #이거 없으면 스타 배틀넷 왜함ㄷㄷ 명령어는 필수!
# 접속이 갑자기 끊어지면 패배로 처리합니까 아니면 디스로 처리합니까?
disc_is_loss = false #게임하다 팅기면 디스가 늘것이냐 패가 늘것이냐 디스보다 패가낫다
# 래더게임에 사용이 가능한 게임타입들을 추가로 지정합니다
# 게임타입의 종류는 topvbot, melee, ffa, oneonone 등이 있습니다
# 예제 : ladder_games = "topvbot,oneonone"
ladder_games = "none" #이건 true랑 false를 적는게 아니라 위에잇는 종류중에서 고르는거임.
#레더게임 할때 게임타입을 고르는건데 none을지우고 원하는걸 넣어줍시다.
# topvbot은 top vs bottom, melee는 그대로, ffa는 모르겟 oneonone은 그대로
# If additional game types are configured (see above) to be counted as ladder
# games then this setting configures a game name prefix to make only games
# which match this game name prefix be counted as ladder. This allows to
# still have normal games of the game types configured with "ladder_games"
# directive. However if this setting is commented or "" then ALL games
# which match the game types configured with "ladder_games" are to be
# considered as ladder games. The prefix checking is CASE SENSITIVE!
# Example: ladder_prefix = "ldr_"
ladder_prefix = "" #이건 레더방 만들때 방 앞에 표시하는건데 고르는것도 true도아니고
#그냥 문자를 정해주시면 됩니다.
# 사용자들은 /con /connections 의 명령을 사용합니까?
enable_conn_all = true #어따쓰는건진 모르겟지만 허용하자
# 서버관리자는 접속자의 아이피정보를 볼수없게 숨깁니까?
hide_addr = false #아이피 막 새나가면 기분나쁘므로 못보게 숨겨줍시다.
# 사적인 게인간의 메세지 전송내용들을 로그파일에 저장합니까?
chanlog = false #이거 메세지 훔쳐볼때 쓰기좋은데 나중가면 용량 막불어남 false
#채널의 생성갯수를 제한합니까?
quota = yes #채널 막만들지마 yes
# 다음옵션은 서버에서의 초과되는 제한값을 설정합니다
#
# 얼마나 많은 초당 표시 가능한 글자줄수를 제한합니까?How many lines do you accept in quota_time seconds?
quota_lines = 5 # must be between 1 and 100 lines #몃줄을 막연속으로 쓸때 도배라고 하는가
quota_time = 5 # must be between 1 and 60 seconds #도배로 밴먹으면 몃초밴되는가
# "virtual wrapping", so long lines count as multiple lines
quota_wrapline = 40 # must be between 1 to 256 chars #이건 모르겟네요..
# absolute maximum characters allowed in a line
quota_maxline = 200 # must be between 1 to 256 chars #뭐더라...
#
# How many lines do you accept in quota_time seconds before user is
# disconnected?
# (According to Jung-woo, Dobae is a Korean term for flooding the game server...
# it originally meant "to paint the wallpaper on a new or refurbished house").
# If it less than or equal to quota_lines, there is no warning before
# disconnection so don't set this too low.
quota_dobae = 10 # must be between 1 and 100 lines #모르겟네요 ㄷㄷ
#이메일정보를 지정합니까?
mail_support = true #/mail 이런 명령어 기능 사용여부인거같네요
mail_quota = 5 #메일최대 몃개 가지고 잇을까
# 채널 로그인후 메세지
log_notice = "*** 채널로그인 성공 ***" #채널접속할때 뜨는 인삿말.(저는 이거 필요없어서 이 부분을 다 지움)
# 패스워드를 잘못입력시 다시 입력할때 실패를 계속하면 해당 접속자의 아이피를 차단합니까?
# 0 은 차단하지 않습니다
passfail_count = 0 #비번을 몃번 틀려야 밴먹을가
# 패스워드 입력오류시 차단하는 입력오류 횟수
passfail_bantime = 300 #그렇게 밴을 먹으면 얼마나 손가락을 빨고잇을까
# 가설 채널에 들어갈수 있는 유저수는?(0 = 무제한)
maxusers_per_channel = 0 #가설채널에 들어갈수있는 유저들 수라고 말그대로 ㄷㄷ
# #
##############################################################################
##############################################################################
# 사용자 아디디계정 옵션 #
#----------------------------------------------------------------------------#
# 사용자계정 파일에 계정생성번호와 이름을 지정합니까?
savebyname = true #지정해야지 안할거니!
# 로그오프정보를 저장합니까?
sync_on_logoff = false #필요하면 하셔도됩니다.
# 계정정보의 db의 줄수는 어느정도로 합니까? 만약 이용자수가 많으면 숫자가 많아야 좋습니다
hashtable_size = 61 #전 그냥 이렇게 씀. 뭔지도모르겟고 적당해보임
# Per default, only alphanumerical symbols are allowed in account names
# with this variable you can add some extra symbols to be allowed
# but be warned - that some of them might cause trouble - at least with
# savebyname=true (some symbols are forbidden in filenames or might cause
# you real trouble - plz neither allow wildcard symbols like '*' or '?'.
# Path delimiters like '/' or '\' are hardcoded filtered and can't be allowed.
# Also note that allowing the '.' might cause u some headache on win32 systems.
# You have been warned - the rest is up to you.
# default setting is "-_[]" as it was previous versions
account_allowed_symbols = "-_[]" #아이디로 사용할수잇는 특수문자 고르기. 저는 모든 특문 다함
#물론 / 이건 빼야죠. 근데 \이것도 빼야한다는군요.
# 이용자가 등록 가능한 친구아이디의 갯수는?
max_friends = 20 #/f a 로 친구등록할 수 잇는 아이디 수. 전 소규모니까 50만햇습니다.(못채움)
# #
##############################################################################
##############################################################################
# 사용자 추적정보 #
#----------------------------------------------------------------------------#
# 사용자 추적의 시간을 지정합니다 초당 패킷값입니다 0 이 기본값입니다
#track = 0
track = 60
# 10 minutes
# 서버순위사이트에 등록하기
#trackaddrs = "bnet.mivabe.nl"
# 아래 정보들은 서버의 위치정보입니다 운영하는 서버에맞게 수정합니다 #전이거 어따쓰는지도 모르겟고 그런데 걍씀
location = "국가코드, 국가이름(영어)" #그냥 영어로 Korea!
description = "서버이름(영어), 사용할 게임코드" #서버이름만 적어줘야지
url = "사이트주소" #없으면 안적어도되고 그냥 적어줍시다.
contact_name = "사용자 이름(영어)" #서버주인장 아이디를 적어줍시다.
contact_email = "이메일 주소" #이메일 ㅇㅇ
# #
##############################################################################
##############################################################################
# 서버 네트워크 정보 #
#----------------------------------------------------------------------------#
# 독립적인 서버이름을 지정하시요
#servername = "스타베틀넷서버" #자기 서버의 고유이름을 적어줍시다.
# 최대 접속가능한 유져수를 지정합니다
max_connections = 1000 #동시에 접속가능한 최대인원. 소규모니까 적당히 해주죠
# 중복 사용자수를 제한합니다 0은 무제한
max_concurrent_logins = 0 #이건 아마 한컴퓨터에서 여러스타로들어가는건가 잘모르겟 ㄷㄷ
#접속자들의 TCP포트를 검색합니까?
use_keepalive = false
# 한 아이피당 접속이 가능한 수를 지정합니다 0 은 무제한
max_conns_per_IP = 0 #이게 아이피당 아이디 여러개쓰면 걸리는거네여 적당히 해주거나 0으로 해도됨.
# 서버의 사이트주소나 아이피와 포트번호를 지정합니다
#servaddrs = ":9999"
#servaddrs = "myinternalname.some.com,localhost"
servaddrs = ":" # default interface (all) and default port (6112)
# Don't change these unless you really need to! You will need to run a proxy
# or modify the clients. Also note that these will not change when simply
# sending a HUP signal to the server; they are only read on startup.
# This is the port the server send the UDP test packets to by default.
# Setting it to zero makes the server use the same port as the TCP connection
# comes from. Newer clients can override this setting on a per connection
# basis.
#udptest_port = 6112 #이거 건들면 망함
# W3 Play Game router address. Just put your server address in here
# or use 0.0.0.0:6200 for server to bind to all interfaces,
# but make sure you set up w3trans if you do.
w3routeaddr = "0.0.0.0:6200"
# w3routeshow has been removed.
# see the address_translation.conf for translating the w3route ip for local networks
# initkill_timer sets up a periodic timer on init/defer class connections
# this should detect and clean up stale connections to your server
initkill_timer = 120
# #
##############################################################################
##############################################################################
# 웨스트 우드 게임 서버설정 #
#----------------------------------------------------------------------------#
# NOTE: WOL support is still experimental!
# This specifies the addresses where IRC connections should be accepted. See
# the description of servaddrs for formatting information. Leave this field
# blank if you do not want to accept IRC connections. If the port is not
# specifed then 4005 will be used. Note: DO NOT SET THE PORT TO ANYTHING OTHER
# THEN 4005, WOL WILL FAIL IF YOU DO!
#woladdrs = ":4005"
# Just leave these as default (unless you know the timezone, longitiude and latitude
# of your server
woltimezone = "-8"
wollongitude = "36.1083"
wollatitude = "-115.0582"
# #
##############################################################################
##############################################################################
# (IRC) 채팅 설정 #
#----------------------------------------------------------------------------#
# NOTE: IRC support is still experimental!
# This specifies the addresses where IRC connections should be accepted. See
# the description of servaddrs for formatting information. Leave this field
# blank if you do not want to accept IRC connections. If the port is not
# specifed then 6667 will be used.
#ircaddrs = ":6667"
# This is the IRC network name. If this is not specified then the default of
# "PvPGN" will be used.
#irc_network_name = "PvPGN"
# This is the hostname used for IRC connections. Set this to your
# hostname, if the automatic detection doesn't correctly.
#hostname = "none"
# Set this to the desired IRC connection timeout in seconds.
#irc_latency = 180
# #
##############################################################################
##############################################################################
# 텔넷 설정 #
#----------------------------------------------------------------------------#
# This specifies the addresses where telnet connections should be accepted.
# See the description of servaddrs for formatting information. Leave this
# field # blank if you do not want to accept telnet connections. If the port
# is not specifed then 23 will be used.
#telnetaddrs = ":23"
# #
##############################################################################
###############################################################################
# 워3 래더 표시방법 #
#-----------------------------------------------------------------------------#
# this is for all the guys, that want Warcraft 3 ladder, but don't want their
# server to run with MySQL support.
# For each ladder (solo, team, ffa, at) a corresponing file is created,
# so it's easy to build your ladder pages with them
# the following value determines, at which rate, these files are created
# set to 0 if you don't want or need these files
war3_ladder_update_secs = 300
# jfro's latest ladder is based on XML... so we can switch to XML output of ladder
# on demand. Maybe we should set update interval bigger cause XML output version
# is much more verbose than the standard output
XML_output_ladder = false
###############################################################################
# server status textual output #
#-----------------------------------------------------------------------------#
# This is for writing status of the server in an attempt to see number of user
# on line actually, and games/chans.
# This is store in file var\status\warcraft3.dat as a *.ini format.
# Shouldn't be so hard in php to create dynamic website using this content.
# the following value determines, at which rate, these files are created
# set to 0 if you don't want or need these files
output_update_secs = 60
# jfro's latest ladder is based on XML... so we can switch to XML output of ladder
# on demand. Maybe we should set update interval bigger cause XML output version
# is much more verbose than the standard output
XML_status_output = false
###############################################################################
# 클랜(길드) 설정 #
#-----------------------------------------------------------------------------#
# 클랜에 가입하는 시간을 설정
# 기본값은 168(7 일). 0으로 설정하면 제한없이 클랜에 가입가능합니다
clan_newer_time = 0 #가입은 빠르게 0초
# 클랜의 최대 맴버수 10 에서 255사이로 지정
clan_max_members = 50 #멤버수는 적당히 해줍시다.
# 클랜채널이 생성되면 채널을 공개합니까? 1은 비밀채널 0은 공개채널로 됩니다
clan_channel_default_private = 0 #비밀로하지말쟈
그리고 이건
제가 직접 설정해본 bnetd입니다.
그대로하셔도되고 좀바꾸셔도되고 상관없
# <- 로 된것은 주석설명입니다 프로그램에는 영향을 주지않는 설명문일뿐입니다 #
# <- 이표시가 없는 부분이 실제 서버 세팅 부분입니다 #
# 세팅을 바꾸신후 저장하시면됩니다 #
##############################################################################
# bnetd.conf - 유닉스 베틀넷 데몬의 환경설정
#----------------------------------------------------------------------------#
# #
# 이파일은 환경설정의 예제 부분입니다 본인의 환경에 맞게 수정하시면됩니다 #
#
# 설정중에 true는 허용 false는 차단한다는 뜻입니다
#
##############################################################################
##############################################################################
# 저장내용 부분 #
# storage_path will tell pvpgn how and where from/to to read/write accounts #
# right now it supports 2 "drivers" : file and sql #
# #
# 문법: #
# * for plain file driver: #
# storage_path = file:mode=plain;dir=<path_to_user_files>;clan=<path_to_clan_files>;team=<path_to_team_files>;default=/path/to/default/account #
# * for cdb file driver: #
# storage_path = file:mode=cdb;dir=<path_to_cdb_files>;clan=<path_to_clan_files>;team=<path_to_team_files>;default=/path/to/default/account #
# * for sql/sql2 driver: #
# storage_path = sql:variable=value;...;default=0 (0 is the default uid) #
# or storage_path = sql2:variable=value;...;default=0 (0 is the default uid) #
# #
# Variables for sql/sql2 can be: #
# - "mode" : tells PVPGN the sql mode you will use (mysql/pgsql/etc..) #
# - "host" : the database host #
# - "port" : the TCP/IP port if needed #
# - "socket" : the UNIX local socket if needed #
# - "name" : database name #
# - "user" : db username #
# - "pass" : db password #
# - "default" : specify the UID to use for the default account data #
# - "prefix" : prefix to use for all pvpgn tables (default "") #
# #
#예제: #
# storage_path = file:mode=plain;dir=var\users;clan=var\clans;team=var\teams\;default=conf\bnetd_default_user.plain
# storage_path = file:mode=cdb;dir=var\userscdb;clan=var\clans;team=var\teams\;default=conf\bnetd_default_user.cdb
# storage_path = sql:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
# storage_path = sql:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
# storage_path = sql:mode=sqlite3;name=var\users.db;default=0;prefix=pvpgn_
# storage_path = sql:mode=odbc;name=PVPGN;prefix=pvpgn_
# storage_path = sql2:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
# storage_path = sql2:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
# storage_path = sql2:mode=sqlite3;name=var\users.db;default=0;prefix=pvpgn_
# storage_path = sql2:mode=odbc;name=PVPGN;prefix=pvpgn_
#----------------------------------------------------------------------------#
storage_path = file:mode=plain;dir=var\users;clan=var\clans;team=var\teams;default=conf\bnetd_default_user.plain
# #
##############################################################################
##############################################################################
# 파일부분 #
# The pidfile can be set to "" to turn it off. #
# Use absolute paths in these lines to avoid problems! #
#----------------------------------------------------------------------------#
filedir = files
reportdir = var\reports
chanlogdir = var\chanlogs
motdfile = conf\bnmotd.txt
issuefile = conf\bnissue.txt
channelfile = conf\channel.conf
newsfile = conf\news.txt
adfile = conf\ad.conf
topicfile = conf\topics.conf
ipbanfile = conf\bnban.conf
helpfile = conf\bnhelp.conf
transfile = conf\address_translation.conf
mpqfile = conf\autoupdate.conf
logfile = var\bnetd.log
realmfile = conf\realm.conf
versioncheck_file = conf\versioncheck.conf
mapsfile = conf\bnmaps.conf
xplevelfile = conf\bnxplevel.conf
xpcalcfile = conf\bnxpcalc.conf
#pidfile = var\bnetd.pid
ladderdir = var\ladders
command_groups_file = conf\command_groups.conf
statusdir = var\status
aliasfile = conf\bnalias.conf
anongame_infos_file = conf\anongame_infos.conf
DBlayoutfile = conf\sql_DB_layout.conf
supportfile = conf\supportfile.conf
fortunecmd = bin\fortune.exe
# #
##############################################################################
##############################################################################
# 메세지로그 #
#----------------------------------------------------------------------------#
# 다중적인 로그레벨은 콤마 ,를 표시해서 여러개를 지정합니다
# 로그레벨은 아래의 것을 사용합니다:
# none
# trace
# debug
# info
# warn
# error
# fatal
#loglevels = fatal,error,warn,info,debug,trace
loglevels = fatal,error
# #
##############################################################################
##############################################################################
# 디아2 서버설정 #
#----------------------------------------------------------------------------#
# 버젼체크 설정 (0 은 버젼을 체크하지 않습니다)
d2cs_version = 0
# Allow the D2CS server to change realm names?
allow_d2cs_setname = true
# #
##############################################################################
##############################################################################
#다운로드파일 #
#----------------------------------------------------------------------------#
# 이 파일들은 접속자가 바로 다운로드하게 해줍니다
# 파일디렉토리는 무시합니다 파일종류와 그 파일의 이름을 지정합니다
iconfile = "icons.bni"
war3_iconfile = "icons-WAR3.bni"
star_iconfile = "icons_STAR.bni"
tosfile = "tos.txt"
# #
##############################################################################
##############################################################################
# 접속자확인 과 게임 버젼업그레이드 #
#----------------------------------------------------------------------------#
# 이 옵션은 접속을 허용할 접속자 리스트를 설정합니다
# 아래내용을 지정하면됩니다
# all : 모든 접속자 접속가능
# chat : 채팅만 가능
# dshr : 디아1만 가능
# drtl : 디아1 리테일버젼
# sshr : 스타데모버젼
# star : 스타크래프트 정식버젼
# sexp : 스타크래프트 브루드워
# w2bn : 워크래프트2 배틀넷버젼
# d2dv : 디아2
# d2xp : 디아2 확장
# war3 : 워3 오리지널
# w3xp : 워3 확장
#
# 예제: allowed_clients = war3,w3xp ( 워3,워3 확장만가능합니다)
# 예제: allowed_clients = sexp ( 스타 브루드워만가능합니다 )
allowed_clients = all
#만약 이옵션을 체크하면 버젼체크를 해서 서버버젼에 맞지 않는것을 걸러냅니다
#If this option is enabled, the verification step is skipped if possible.
# This only works with clients < 109. It is useful because you no longer
# need any of the IX86AUTH?.MPQ and PMACAUTH?.MPQ files. Note that it will
# also skip over all the autoupdate checks effectively disabling it.
#
# If you disable this you must have one or more of the MPQ files. Otherwise
# clients will hang when they first connect because they are attempting to
# download them. The versioncheck can only be skipped for clients older
# than 109. Starting with version 109 the clients will always do version
# checking since they do not function properly if the server does not
# request it.
skip_versioncheck = false
# If you enable the version checks but want to allow clients that don't pass
# the checksum test then enable this.
allow_bad_version = false
#당신이 알수없는 버젼체크를 가능하게 하면
# 치팅프로그램을 사용하는 사람들을 걸러낼수 있습니다
allow_unknown_version = true
# This defines how the exeinfo field in the versioncheck file is being
# checked. You can choose between no match at all [none] (default),
# exact match [exact], exact case-sensitive match [exactcase], dumb wildcard
# match [wildcard], and parsed value comparison [parse].
# NOTE: [parse] needs the mktime() function and might therefore not work on
# every system.
version_exeinfo_match = none
# If you have choosen [parse] above, this is the tolerance with which
# the time can differ. The value must be given in seconds. If it's 0 this
# check is disabled.
version_exeinfo_maxdiff = 0
# #
##############################################################################
##############################################################################
# 각종 이용시 시간값설정 #
#----------------------------------------------------------------------------#
# 파일 업데이트를 하기위한 시간 0은 제한이 없습니다
usersync = 300
# 다운로드가 안되면 차단하는시간
# (only checked during account file updates)
userflush = 1200
# 사용자수를 체크하는 시간설정 Higher values make sense if you
# 숫자가 높으면 높을수록 서버에 무리를 덜가게합니다
# 만약 서버컴이 좋으면 낮게 안조으면 높게하십시요
userstep = 100
# 얼마나 자주 이용자들의 지연시간을 표시합니까?
latency = 600
#얼마나 자주 초당 패킷을 전송합니까?
nullmsg = 120
# 서버에 접속이 안되면 서버접속을 끊는 시간
shutdown_delay = 300
# Amount of time delay period is decremented by either a SIGTERM or SIGINT
# (control-c) signal in seconds.
shutdown_decr = 60
# 얼마간격으로 접속이 차단된 아이피를 검색합니까? (초당)
#ipban_check_int = 30
# #
##############################################################################
##############################################################################
# 사용정책 옵션 #
# 이옵션은 서버에서 사용자가 할수있는 것들을 설정합니다 #
# 서버에서 허용하면 true 차단하면 false 로 지정합니다 #
#----------------------------------------------------------------------------#
# 새접속자가 아이디를 만들수 있도록합니다
# true는 가능 false는 차단
new_accounts = true
# 최대 생성 가능 계정수 설정 0은 무제한입니다
#max_accounts = 0
#만약 어떤사람이 여러번 접속을 하려고하면 이전 로그인정보를 지웁니다
kick_old_login = true
#kick_old_login = false
# With no passwords, this is bad to have enabled --NonReal
# load_new_account option has been eliminated and the functionality now is
# always active in PvPGN
# 만약 사용자가 새로운 채널을 만들려고하면 채널을 등록할것인지 질문을 합니다
ask_new_channel = true
# 게임결과를 매번 기억합니다 레더게임정보와 함께
#report_all_games = false
report_all_games = true
# 디아1/2 승자 정보를 저장합니다
report_diablo_games = false
# 게임을 생성시 비번설정이 가능하게 합니다
hide_pass_games = true
#게임을 시작하면 게임방 리스트에서 뺍니까?
hide_started_games = false
# 잠시 만들어지는 채널을 채널리스트에서 삭제합니까?
hide_temp_channels = true
# / 표시후 베틀넷의 명령어를 허용합니까? 예: /stats 전적조회
extra_commands = true
# 접속이 갑자기 끊어지면 패배로 처리합니까 아니면 디스로 처리합니까?
disc_is_loss = false
# 래더게임에 사용이 가능한 게임타입들을 추가로 지정합니다
# 게임타입의 종류는 topvbot, melee, ffa, oneonone 등이 있습니다
# 예제 : ladder_games = "topvbot,oneonone"
ladder_games = "oneonone"
# If additional game types are configured (see above) to be counted as ladder
# games then this setting configures a game name prefix to make only games
# which match this game name prefix be counted as ladder. This allows to
# still have normal games of the game types configured with "ladder_games"
# directive. However if this setting is commented or "" then ALL games
# which match the game types configured with "ladder_games" are to be
# considered as ladder games. The prefix checking is CASE SENSITIVE!
# Example: ladder_prefix = "ldr_"
ladder_prefix = "[ladder]"
# 사용자들은 /con /connections 의 명령을 사용합니까?
enable_conn_all = true
# 서버관리자는 접속자의 아이피정보를 볼수없게 숨깁니까?
hide_addr = false
# 사적인 게인간의 메세지 전송내용들을 로그파일에 저장합니까?
chanlog = false
#채널의 생성갯수를 제한합니까?
quota = yes
# 다음옵션은 서버에서의 초과되는 제한값을 설정합니다
#
# 얼마나 많은 초당 표시 가능한 글자줄수를 제한합니까?How many lines do you accept in quota_time seconds?
quota_lines = 5 # must be between 1 and 100 lines
quota_time = 3 # must be between 1 and 60 seconds
# "virtual wrapping", so long lines count as multiple lines
quota_wrapline = 40 # must be between 1 to 256 chars
# absolute maximum characters allowed in a line
quota_maxline = 200 # must be between 1 to 256 chars
#
# How many lines do you accept in quota_time seconds before user is
# disconnected?
# (According to Jung-woo, Dobae is a Korean term for flooding the game server...
# it originally meant "to paint the wallpaper on a new or refurbished house").
# If it less than or equal to quota_lines, there is no warning before
# disconnection so don't set this too low.
quota_dobae = 10 # must be between 1 and 100 lines
#이메일정보를 지정합니까?
mail_support = true
mail_quota = 5
# 패스워드를 잘못입력시 다시 입력할때 실패를 계속하면 해당 접속자의 아이피를 차단합니까?
# 0 은 차단하지 않습니다
passfail_count = 5
# 패스워드 입력오류시 차단하는 입력오류 횟수
passfail_bantime = 60
# 가설 채널에 들어갈수 있는 유저수는?(0 = 무제한)
maxusers_per_channel = 0
# #
##############################################################################
##############################################################################
# 사용자 아디디계정 옵션 #
#----------------------------------------------------------------------------#
# 사용자계정 파일에 계정생성번호와 이름을 지정합니까?
savebyname = true
# 로그오프정보를 저장합니까?
sync_on_logoff = true
# 계정정보의 db의 줄수는 어느정도로 합니까? 만약 이용자수가 많으면 숫자가 많아야 좋습니다
hashtable_size = 61
# Per default, only alphanumerical symbols are allowed in account names
# with this variable you can add some extra symbols to be allowed
# but be warned - that some of them might cause trouble - at least with
# savebyname=true (some symbols are forbidden in filenames or might cause
# you real trouble - plz neither allow wildcard symbols like '*' or '?'.
# Path delimiters like '/' or '\' are hardcoded filtered and can't be allowed.
# Also note that allowing the '.' might cause u some headache on win32 systems.
# You have been warned - the rest is up to you.
# default setting is "-_[]" as it was previous versions
account_allowed_symbols = "`~!@#$%^&*()_-_=+|[{]};:'",<.>?"
# 이용자가 등록 가능한 친구아이디의 갯수는?
max_friends = 50
# #
##############################################################################
##############################################################################
# 사용자 추적정보 #
#----------------------------------------------------------------------------#
# 사용자 추적의 시간을 지정합니다 초당 패킷값입니다 0 이 기본값입니다
#track = 0
track = 60
# 10 minutes
# 서버순위사이트에 등록하기
#trackaddrs = "bnet.mivabe.nl"
# 아래 정보들은 서버의 위치정보입니다 운영하는 서버에맞게 수정합니다
location = "한국"
description = "Nal Server"
url = http://nalblog.tistoryu.com/
contact_name = "Mipi_Miwar"
contact_email = sos1998622@naver.com
# #
##############################################################################
##############################################################################
# 서버 네트워크 정보 #
#----------------------------------------------------------------------------#
# 독립적인 서버이름을 지정하시요
#servername = "Nal Server"
# 최대 접속가능한 유져수를 지정합니다
max_connections = 100
# 중복 사용자수를 제한합니다 0은 무제한
max_concurrent_logins = 3
#접속자들의 TCP포트를 검색합니까?
use_keepalive = false
# 한 아이피당 접속이 가능한 수를 지정합니다 0 은 무제한
max_conns_per_IP = 3
# 서버의 사이트주소나 아이피와 포트번호를 지정합니다
#servaddrs = ":9999"
#servaddrs = "myinternalname.some.com,localhost"
servaddrs = ":" # default interface (all) and default port (6112)
# Don't change these unless you really need to! You will need to run a proxy
# or modify the clients. Also note that these will not change when simply
# sending a HUP signal to the server; they are only read on startup.
# This is the port the server send the UDP test packets to by default.
# Setting it to zero makes the server use the same port as the TCP connection
# comes from. Newer clients can override this setting on a per connection
# basis.
#udptest_port = 6112
# W3 Play Game router address. Just put your server address in here
# or use 0.0.0.0:6200 for server to bind to all interfaces,
# but make sure you set up w3trans if you do.
w3routeaddr = "0.0.0.0:6200"
# w3routeshow has been removed.
# see the address_translation.conf for translating the w3route ip for local networks
# initkill_timer sets up a periodic timer on init/defer class connections
# this should detect and clean up stale connections to your server
initkill_timer = 120
# #
##############################################################################
##############################################################################
# 웨스트 우드 게임 서버설정 #
#----------------------------------------------------------------------------#
# NOTE: WOL support is still experimental!
# This specifies the addresses where IRC connections should be accepted. See
# the description of servaddrs for formatting information. Leave this field
# blank if you do not want to accept IRC connections. If the port is not
# specifed then 4005 will be used. Note: DO NOT SET THE PORT TO ANYTHING OTHER
# THEN 4005, WOL WILL FAIL IF YOU DO!
#woladdrs = ":4005"
# Just leave these as default (unless you know the timezone, longitiude and latitude
# of your server
woltimezone = "-8"
wollongitude = "36.1083"
wollatitude = "-115.0582"
# #
##############################################################################
##############################################################################
# (IRC) 채팅 설정 #
#----------------------------------------------------------------------------#
# NOTE: IRC support is still experimental!
# This specifies the addresses where IRC connections should be accepted. See
# the description of servaddrs for formatting information. Leave this field
# blank if you do not want to accept IRC connections. If the port is not
# specifed then 6667 will be used.
#ircaddrs = ":6667"
# This is the IRC network name. If this is not specified then the default of
# "PvPGN" will be used.
#irc_network_name = "PvPGN"
# This is the hostname used for IRC connections. Set this to your
# hostname, if the automatic detection doesn't correctly.
#hostname = "none"
# Set this to the desired IRC connection timeout in seconds.
#irc_latency = 180
# #
##############################################################################
##############################################################################
# 텔넷 설정 #
#----------------------------------------------------------------------------#
# This specifies the addresses where telnet connections should be accepted.
# See the description of servaddrs for formatting information. Leave this
# field # blank if you do not want to accept telnet connections. If the port
# is not specifed then 23 will be used.
#telnetaddrs = ":23"
# #
##############################################################################
###############################################################################
# 워3 래더 표시방법 #
#-----------------------------------------------------------------------------#
# this is for all the guys, that want Warcraft 3 ladder, but don't want their
# server to run with MySQL support.
# For each ladder (solo, team, ffa, at) a corresponing file is created,
# so it's easy to build your ladder pages with them
# the following value determines, at which rate, these files are created
# set to 0 if you don't want or need these files
war3_ladder_update_secs = 300
# jfro's latest ladder is based on XML... so we can switch to XML output of ladder
# on demand. Maybe we should set update interval bigger cause XML output version
# is much more verbose than the standard output
XML_output_ladder = false
###############################################################################
# server status textual output #
#-----------------------------------------------------------------------------#
# This is for writing status of the server in an attempt to see number of user
# on line actually, and games/chans.
# This is store in file var\status\warcraft3.dat as a *.ini format.
# Shouldn't be so hard in php to create dynamic website using this content.
# the following value determines, at which rate, these files are created
# set to 0 if you don't want or need these files
output_update_secs = 60
# jfro's latest ladder is based on XML... so we can switch to XML output of ladder
# on demand. Maybe we should set update interval bigger cause XML output version
# is much more verbose than the standard output
XML_status_output = false
###############################################################################
# 클랜(길드) 설정 #
#-----------------------------------------------------------------------------#
# 클랜에 가입하는 시간을 설정
# 기본값은 168(7 일). 0으로 설정하면 제한없이 클랜에 가입가능합니다
clan_newer_time = 0
# 클랜의 최대 맴버수 10 에서 255사이로 지정
clan_max_members = 100
# 클랜채널이 생성되면 채널을 공개합니까? 1은 비밀채널 0은 공개채널로 됩니다
clan_channel_default_private = 0
흐아 다됫네요.
이제 다시 서버열고
스타로 잘적용됫는지 확인(할 방법은 많이없지만)
해보시면 됩니다.
그리고 서버 열고잇엇을때 bnet한번바꾸면
서버 껏다키거나 /rehash한번 쳐주세요.
새로고침입니다.
그럼 다음에는
아주 간단한 서버 접속했을때 맨처음 뜨는
기본 메세지를 설정해봅시당
'기타 > Starcraft 서버 개설' 카테고리의 다른 글
베틀넷 프리서버 만들기 - 6. 가입동의서, 어드민, 운영자설정 (0) | 2013.04.09 |
---|---|
베틀넷 프리서버 만들기 - 5.채널 및 토픽설정 (4) | 2013.03.31 |
베틀넷 프리서버 만들기 - 4.서버 접속할때 뜨는 텍스트, 뉴스 설정 (0) | 2013.03.29 |
베틀넷 프리서버 만들기 - 2. 서버 개설 (3) | 2013.03.23 |
베틀넷 프리서버 만들기 - 1. 파일 다운 (8) | 2013.03.22 |
'기타/Starcraft 서버 개설'의 다른글
- 현재글베틀넷 프리서버 만들기 - 3. bnetd.conf 설정