Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.46 KB | None | 0 0
  1. ##############################################################################
  2. # bnetd.conf - Configuration file for the Unix Battle.net daemon #
  3. #----------------------------------------------------------------------------#
  4. # #
  5. # This file is an example configuration and may require modification to #
  6. # suit your needs or your site. Blank lines and lines starting with a "#" #
  7. # are ignored. Use quotes around values that contain spaces. #
  8. # #
  9. ##############################################################################
  10.  
  11.  
  12. ##############################################################################
  13. # Storage section #
  14. # storage_path will tell pvpgn how and where from/to to read/write accounts #
  15. # right now it supports 2 "drivers" : file and sql #
  16. # #
  17. # Syntax: #
  18. # * for plain file driver: #
  19. # 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 #
  20. # * for cdb file driver: #
  21. # 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 #
  22. # * for sql/sql2 driver: #
  23. # storage_path = sql:variable=value;...;default=0 (0 is the default uid) #
  24. # or storage_path = sql2:variable=value;...;default=0 (0 is the default uid) #
  25. # #
  26. # Variables for sql/sql2 can be: #
  27. # - "mode" : tells PVPGN the sql mode you will use (mysql/pgsql/etc..) #
  28. # - "host" : the database host #
  29. # - "port" : the TCP/IP port if needed #
  30. # - "socket" : the UNIX local socket if needed #
  31. # - "name" : database name #
  32. # - "user" : db username #
  33. # - "pass" : db password #
  34. # - "default" : specify the UID to use for the default account data #
  35. # - "prefix" : prefix to use for all pvpgn tables (default "") #
  36. # #
  37. # Examples: #
  38. # storage_path = file:mode=plain;dir=var\users;clan=var\clans;team=var\teams\;default=conf\bnetd_default_user.plain
  39. # storage_path = file:mode=cdb;dir=var\userscdb;clan=var\clans;team=var\teams\;default=conf\bnetd_default_user.cdb
  40. # storage_path = sql:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
  41. # storage_path = sql:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
  42. # storage_path = sql:mode=sqlite3;name=var\users.db;default=0;prefix=pvpgn_
  43. # storage_path = sql:mode=odbc;name=PVPGN;prefix=pvpgn_
  44. # storage_path = sql2:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
  45. # storage_path = sql2:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
  46. # storage_path = sql2:mode=sqlite3;name=var\users.db;default=0;prefix=pvpgn_
  47. # storage_path = sql2:mode=odbc;name=PVPGN;prefix=pvpgn_
  48. #----------------------------------------------------------------------------#
  49.  
  50. storage_path = file:mode=plain;dir=var\users;clan=var\clans;team=var\teams;default=conf\bnetd_default_user.plain
  51.  
  52. # #
  53. ##############################################################################
  54.  
  55. ##############################################################################
  56. # File section #
  57. # The pidfile can be set to "" to turn it off. #
  58. # Use absolute paths in these lines to avoid problems! #
  59. #----------------------------------------------------------------------------#
  60.  
  61. filedir = files
  62. reportdir = var\reports
  63. chanlogdir = var\chanlogs
  64. motdfile = conf\bnmotd.txt
  65. issuefile = conf\bnissue.txt
  66. channelfile = conf\channel.conf
  67. newsfile = conf\news.txt
  68. adfile = conf\ad.conf
  69. topicfile = conf\topics.conf
  70. ipbanfile = conf\bnban.conf
  71. helpfile = conf\bnhelp.conf
  72. transfile = conf\address_translation.conf
  73. mpqfile = conf\autoupdate.conf
  74. logfile = var\bnetd.log
  75. realmfile = conf\realm.conf
  76. versioncheck_file = conf\versioncheck.conf
  77. mapsfile = conf\bnmaps.conf
  78. xplevelfile = conf\bnxplevel.conf
  79. xpcalcfile = conf\bnxpcalc.conf
  80. #pidfile = var\bnetd.pid
  81. ladderdir = var\ladders
  82. command_groups_file = conf\command_groups.conf
  83. statusdir = var\status
  84. aliasfile = conf\bnalias.conf
  85. anongame_infos_file = conf\anongame_infos.conf
  86. DBlayoutfile = conf\sql_DB_layout.conf
  87. supportfile = conf\supportfile.conf
  88.  
  89. fortunecmd = bin\fortune.exe
  90.  
  91. # #
  92. ##############################################################################
  93.  
  94.  
  95. ##############################################################################
  96. # Message logs #
  97. #----------------------------------------------------------------------------#
  98.  
  99. # Multiple log levels can be defined by connecting them with a comma (,)
  100. # Available loglevels are:
  101. # none
  102. # trace
  103. # debug
  104. # info
  105. # warn
  106. # error
  107. # fatal
  108. #loglevels = fatal,error,warn,info,debug,trace
  109. loglevels = fatal,error
  110.  
  111. # #
  112. ##############################################################################
  113.  
  114.  
  115. ##############################################################################
  116. # D2CS realm server settings #
  117. #----------------------------------------------------------------------------#
  118.  
  119. # Version of D2CS server to connect with (set to zero to disable version check)
  120. d2cs_version = 0
  121.  
  122. # Allow the D2CS server to change realm names?
  123. allow_d2cs_setname = true
  124.  
  125. # #
  126. ##############################################################################
  127.  
  128.  
  129. ##############################################################################
  130. # Downloadable files #
  131. #----------------------------------------------------------------------------#
  132.  
  133. # These filenames are reported directly to the client and are relative to
  134. # the "filedir" directory specified above.
  135. iconfile = "icons.bni"
  136. war3_iconfile = "icons-WAR3.bni"
  137. star_iconfile = "icons_STAR.bni"
  138.  
  139. tosfile = "tos.txt"
  140.  
  141. # #
  142. ##############################################################################
  143.  
  144.  
  145. ##############################################################################
  146. # Client verification and upgrades #
  147. #----------------------------------------------------------------------------#
  148.  
  149. # This option lists the client types allowed to connect (only valid for
  150. # the bnet protocol). The list is a comma separated list of any of the
  151. # following elements:
  152. # all : all client types allowed (default)
  153. # chat : client type "CHAT" allowed (used by some bot software)
  154. # dshr : client type Diablo 1 Shareware
  155. # drtl : client type Diablo 1 (Retail)
  156. # sshr : client type Starcraft Shareware
  157. # star : client type Starcraft
  158. # sexp : client type Starcraft Broodwar
  159. # w2bn : client type Warcraft II Battle.Net Edition
  160. # d2dv : client type Diablo 2
  161. # d2xp : client type Diablo 2 LOD
  162. # war3 : client type Warcraft III (Reign Of Chaos)
  163. # w3xp : client type Warcraft III Frozen Throne
  164. #
  165. # Example: allowed_clients = war3,w3xp
  166. allowed_clients = d2dv,d2xp
  167.  
  168. # If this option is enabled, the verification step is skipped if possible.
  169. # This only works with clients < 109. It is useful because you no longer
  170. # need any of the IX86AUTH?.MPQ and PMACAUTH?.MPQ files. Note that it will
  171. # also skip over all the autoupdate checks effectively disabling it.
  172. #
  173. # If you disable this you must have one or more of the MPQ files. Otherwise
  174. # clients will hang when they first connect because they are attempting to
  175. # download them. The versioncheck can only be skipped for clients older
  176. # than 109. Starting with version 109 the clients will always do version
  177. # checking since they do not function properly if the server does not
  178. # request it.
  179. skip_versioncheck = false
  180.  
  181. # If you enable the version checks but want to allow clients that don't pass
  182. # the checksum test then enable this.
  183. allow_bad_version = false
  184.  
  185. # If you enable the version checks but want to allow clients that aren't
  186. # listed in the versioncheck configuration file then enable this. Unless
  187. # you have a very complete file or are very paranoid about cheaters this
  188. # is a good idea.
  189. allow_unknown_version = true
  190.  
  191. # This defines how the exeinfo field in the versioncheck file is being
  192. # checked. You can choose between no match at all [none] (default),
  193. # exact match [exact], exact case-sensitive match [exactcase], dumb wildcard
  194. # match [wildcard], and parsed value comparison [parse].
  195. # NOTE: [parse] needs the mktime() function and might therefore not work on
  196. # every system.
  197. version_exeinfo_match = none
  198.  
  199. # If you have choosen [parse] above, this is the tolerance with which
  200. # the time can differ. The value must be given in seconds. If it's 0 this
  201. # check is disabled.
  202. version_exeinfo_maxdiff = 0
  203.  
  204. # #
  205. ##############################################################################
  206.  
  207.  
  208. ##############################################################################
  209. # Time values #
  210. #----------------------------------------------------------------------------#
  211.  
  212. # Time in seconds between account file updates, 0 means wait forever.
  213. usersync = 300
  214. # Number of seconds of inactivity before file is unloaded from memory.
  215. # (only checked during account file updates)
  216. userflush = 1200
  217. # Number of users checked for updates at once. Higher values make sense if you
  218. # either have very fast hardware or you don't have many number of accounts.
  219. # Lower values make sense if you have very high CPU usage on the system you run
  220. # the server (dont make it too low or your system will save accounts continously).
  221. # Modify this value ONLY if you know what you are doing!!
  222. userstep = 100
  223.  
  224. # How often to send user latency tests in seconds.
  225. latency = 600
  226.  
  227. # How often to send null or keepalive packets in seconds.
  228. nullmsg = 120
  229.  
  230. # Amount of time to delay shutting down server in seconds.
  231. shutdown_delay = 300
  232. # Amount of time delay period is decremented by either a SIGTERM or SIGINT
  233. # (control-c) signal in seconds.
  234. shutdown_decr = 60
  235.  
  236. # How often should bans be checked for expiration? (in seconds)
  237. #ipban_check_int = 30
  238.  
  239. # #
  240. ##############################################################################
  241.  
  242.  
  243. ##############################################################################
  244. # Policy options #
  245. #----------------------------------------------------------------------------#
  246.  
  247. # If you don't want people to be able to create new accounts, set this to
  248. # false.
  249. new_accounts = true
  250.  
  251. # Set this to the maximum number of accounts you want to allow to be
  252. # created on your server. A value of 0 means infinite and is the default.
  253. #max_accounts = 0
  254.  
  255. # If someone attempts to log in more than once, should it kick off the old
  256. # login, or deny the new one?
  257. kick_old_login = true
  258. #kick_old_login = false
  259. # With no passwords, this is bad to have enabled --NonReal
  260.  
  261. # load_new_account option has been eliminated and the functionality now is
  262. # always active in PvPGN
  263.  
  264. # If a user is creating a new channel, should it be added automatically, or
  265. # prompt them first?
  266. ask_new_channel = true
  267.  
  268. # Should a game report be written for every game played or just ladder
  269. # games?
  270. #report_all_games = false
  271. report_all_games = true
  272.  
  273. # Should Diablo I/II reports be written? There are no winners/losers.
  274. report_diablo_games = false
  275.  
  276. # Should games with passwords be hidden on the game list?
  277. hide_pass_games = true
  278.  
  279. # Should games already started be hidden on the game list? (for heavily
  280. # loaded servers)
  281. hide_started_games = true
  282.  
  283. # Should non-permanent channels hidden on the channel list?
  284. hide_temp_channels = true
  285.  
  286. # Should the extended /-commands be avaliable? (of course!)
  287. extra_commands = true
  288.  
  289. # Should any and all disconnects to be counted as losses?
  290. # (Turning this on will override the user's choice in ladder games!)
  291. disc_is_loss = false
  292.  
  293. # List additional game types to be counted as ladder games
  294. # Curently allowed types: topvbot, melee, ffa, oneonone
  295. # Example: ladder_games = "topvbot,oneonone"
  296. ladder_games = "none"
  297.  
  298. # If additional game types are configured (see above) to be counted as ladder
  299. # games then this setting configures a game name prefix to make only games
  300. # which match this game name prefix be counted as ladder. This allows to
  301. # still have normal games of the game types configured with "ladder_games"
  302. # directive. However if this setting is commented or "" then ALL games
  303. # which match the game types configured with "ladder_games" are to be
  304. # considered as ladder games. The prefix checking is CASE SENSITIVE!
  305. # Example: ladder_prefix = "ldr_"
  306. ladder_prefix = ""
  307.  
  308. # Should all users be able to use the /con and /connections commands?
  309. enable_conn_all = true
  310.  
  311. # Should client IP addresses (from /con, /games, /gameinfo, /netinfo)
  312. # be hidden from non-admins?
  313. hide_addr = false
  314.  
  315. # Should private channel messages be logged to files in the chanlogdir
  316. # directory? (see channels.list for public channels)
  317. chanlog = false
  318.  
  319. # Do you want to use the channel quota feature?
  320. quota = yes
  321.  
  322. # The following options deal with flood prevention.
  323. #
  324. # How many lines do you accept in quota_time seconds?
  325. # (The default should allow 5 lines in 5 seconds,
  326. # longer time periods allow "bursts" of traffic before the quota is full.)
  327. quota_lines = 5 # must be between 1 and 100 lines
  328. quota_time = 5 # must be between 1 and 60 seconds
  329. # "virtual wrapping", so long lines count as multiple lines
  330. quota_wrapline = 40 # must be between 1 to 256 chars
  331. # absolute maximum characters allowed in a line
  332. quota_maxline = 200 # must be between 1 to 256 chars
  333. #
  334. # How many lines do you accept in quota_time seconds before user is
  335. # disconnected?
  336. # (According to Jung-woo, Dobae is a Korean term for flooding the game server...
  337. # it originally meant "to paint the wallpaper on a new or refurbished house").
  338. # If it less than or equal to quota_lines, there is no warning before
  339. # disconnection so don't set this too low.
  340. quota_dobae = 10 # must be between 1 and 100 lines
  341.  
  342. # Mail support
  343. mail_support = true
  344. mail_quota = 5
  345.  
  346. # Channel logging message
  347. log_notice = "*** Please note this channel is logged! ***"
  348.  
  349. # Ban on repeated password fails against bruteforce password thieves
  350. # Fails required to get ip banned (0 to disable ban on password fail)
  351. passfail_count = 0
  352.  
  353. # Password fail IP ban duration (in seconds)
  354. passfail_bantime = 300
  355.  
  356. # Max users limit in private channels (0 = unlimited)
  357. maxusers_per_channel = 0
  358.  
  359. # #
  360. ##############################################################################
  361.  
  362.  
  363. ##############################################################################
  364. # Account configuration #
  365. #----------------------------------------------------------------------------#
  366.  
  367. # Should account files be named by the account number or the player name?
  368. savebyname = true
  369.  
  370. # Save the account data on logoff
  371. sync_on_logoff = false
  372.  
  373. # How man rows should the account lookup hash table have? Servers with
  374. # more accounts should use a larger table for better performance.
  375. hashtable_size = 61
  376.  
  377. # Per default, only alphanumerical symbols are allowed in account names
  378. # with this variable you can add some extra symbols to be allowed
  379. # but be warned - that some of them might cause trouble - at least with
  380. # savebyname=true (some symbols are forbidden in filenames or might cause
  381. # you real trouble - plz neither allow wildcard symbols like '*' or '?'.
  382. # Path delimiters like '/' or '\' are hardcoded filtered and can't be allowed.
  383. # Also note that allowing the '.' might cause u some headache on win32 systems.
  384. # You have been warned - the rest is up to you.
  385. # default setting is "-_[]" as it was previous versions
  386. account_allowed_symbols = "-_[]"
  387.  
  388. # This setting affects users that login with their uid rather than their
  389. # username. If set to true their displayed username will be forcefully
  390. # converted to their registered account name.
  391. account_force_username = false
  392.  
  393. # maximum number of friends a user can add to there friends list
  394. # default setting is 20
  395. max_friends = 50
  396.  
  397. # #
  398. ##############################################################################
  399.  
  400.  
  401. ##############################################################################
  402. # Tracking server info #
  403. #----------------------------------------------------------------------------#
  404.  
  405. # Set track=0 to disable tracking. Any other number will set number
  406. # of seconds between sending tracking packets. This is OFF by default.
  407. #track = 0
  408. track = 60
  409. # 10 minutes
  410.  
  411. # Tracking server(s)
  412. # Use a comma delimited list of hostnames with optional UDP port numbers
  413. # after colons. (port 6114 is the default for the newer tracking protocol)
  414. #trackaddrs = "track.bnetd.org,localhost:9999"
  415. #trackaddrs = "track.pvpgn.org"
  416.  
  417. # Change these to match your system, for example:
  418. location = "unknown"
  419. description = "unknown"
  420. url = "unknown"
  421. contact_name = "a PvPGN user"
  422. contact_email = "unknown"
  423.  
  424. # #
  425. ##############################################################################
  426.  
  427.  
  428. ##############################################################################
  429. # Server network info #
  430. #----------------------------------------------------------------------------#
  431.  
  432. # Servername by which the server identifies itself (default: "PvPGN Realm")
  433. #servername = "PvPGN Realm"
  434.  
  435. # Set this to the maximum number of concurrent connections allowed on
  436. # this server (minimum 32). This limit sets a general server connection
  437. # limit, NOT the concurrent user limit (for that see next option)
  438. max_connections = 1000
  439.  
  440. # Maximum number of concurrent users (0 means unlimited).
  441. max_concurrent_logins = 0
  442.  
  443. # Set this option to true to allow TCP to detect and close stale
  444. # connections.
  445. use_keepalive = false
  446.  
  447. # Limit maximum number of connections per IP (0 = unlimited)
  448. # this feature is new, so no recommended value so far
  449. max_conns_per_IP = 0
  450.  
  451. # This is a comma delimited list of hostnames that the server should
  452. # listen on. It might be useful to make an internal-only server on a
  453. # gateway machine for example. If the list is not set or if it has a
  454. # entry with no host component, the server will bind to that port on all
  455. # interfaces.
  456. #servaddrs = ":9999"
  457. #servaddrs = "myinternalname.some.com,localhost"
  458. servaddrs = ":" # default interface (all) and default port (6112)
  459.  
  460. # Don't change these unless you really need to! You will need to run a proxy
  461. # or modify the clients. Also note that these will not change when simply
  462. # sending a HUP signal to the server; they are only read on startup.
  463.  
  464. # This is the port the server send the UDP test packets to by default.
  465. # Setting it to zero makes the server use the same port as the TCP connection
  466. # comes from. Newer clients can override this setting on a per connection
  467. # basis.
  468. #udptest_port = 6112
  469.  
  470.  
  471. # W3 Play Game router address. Just put your server address in here
  472. # or use 0.0.0.0:6200 for server to bind to all interfaces,
  473. # but make sure you set up w3trans if you do.
  474. w3routeaddr = "0.0.0.0:6200"
  475.  
  476. # w3routeshow has been removed.
  477. # see the address_translation.conf for translating the w3route ip for local networks
  478.  
  479. # initkill_timer sets up a periodic timer on init/defer class connections
  480. # this should detect and clean up stale connections to your server
  481. initkill_timer = 120
  482.  
  483. # #
  484. ##############################################################################
  485.  
  486. ##############################################################################
  487. # Westwood Online (WOL) configuration #
  488. #----------------------------------------------------------------------------#
  489.  
  490. # NOTE: WOL support is still experimental!
  491.  
  492. # This specifies the addresses where IRC connections should be accepted. See
  493. # the description of servaddrs for formatting information. Leave this field
  494. # blank if you do not want to accept IRC connections. If the port is not
  495. # specifed then 4005 will be used. Note: DO NOT SET THE PORT TO ANYTHING OTHER
  496. # THEN 4005, WOL WILL FAIL IF YOU DO!
  497. #woladdrs = ":4005"
  498.  
  499. # Just leave these as default (unless you know the timezone, longitiude and latitude
  500. # of your server
  501. woltimezone = "-8"
  502. wollongitude = "36.1083"
  503. wollatitude = "-115.0582"
  504.  
  505. # #
  506. ##############################################################################
  507.  
  508. ##############################################################################
  509. # Internet Relay Chat (IRC) configuration #
  510. #----------------------------------------------------------------------------#
  511.  
  512. # NOTE: IRC support is still experimental!
  513.  
  514. # This specifies the addresses where IRC connections should be accepted. See
  515. # the description of servaddrs for formatting information. Leave this field
  516. # blank if you do not want to accept IRC connections. If the port is not
  517. # specifed then 6667 will be used.
  518. #ircaddrs = ":6667"
  519.  
  520. # This is the IRC network name. If this is not specified then the default of
  521. # "PvPGN" will be used.
  522. #irc_network_name = "PvPGN"
  523.  
  524. # This is the hostname used for IRC connections. Set this to your
  525. # hostname, if the automatic detection doesn't correctly.
  526. #hostname = "none"
  527.  
  528. # Set this to the desired IRC connection timeout in seconds.
  529. #irc_latency = 180
  530.  
  531. # #
  532. ##############################################################################
  533.  
  534.  
  535. ##############################################################################
  536. # Telnet configuration #
  537. #----------------------------------------------------------------------------#
  538.  
  539. # This specifies the addresses where telnet connections should be accepted.
  540. # See the description of servaddrs for formatting information. Leave this
  541. # field # blank if you do not want to accept telnet connections. If the port
  542. # is not specifed then 23 will be used.
  543. #telnetaddrs = ":23"
  544.  
  545. # #
  546. ##############################################################################
  547.  
  548. ###############################################################################
  549. # war3 ladder textual output #
  550. #-----------------------------------------------------------------------------#
  551. # this is for all the guys, that want Warcraft 3 ladder, but don't want their
  552. # server to run with MySQL support.
  553. # For each ladder (solo, team, ffa, at) a corresponing file is created,
  554. # so it's easy to build your ladder pages with them
  555.  
  556. # the following value determines, at which rate, these files are created
  557. # set to 0 if you don't want or need these files
  558. war3_ladder_update_secs = 300
  559.  
  560. # jfro's latest ladder is based on XML... so we can switch to XML output of ladder
  561. # on demand. Maybe we should set update interval bigger cause XML output version
  562. # is much more verbose than the standard output
  563. XML_output_ladder = false
  564.  
  565. ###############################################################################
  566. # server status textual output #
  567. #-----------------------------------------------------------------------------#
  568. # This is for writing status of the server in an attempt to see number of user
  569. # on line actually, and games/chans.
  570. # This is store in file var\status\warcraft3.dat as a *.ini format.
  571. # Shouldn't be so hard in php to create dynamic website using this content.
  572.  
  573. # the following value determines, at which rate, these files are created
  574. # set to 0 if you don't want or need these files
  575. output_update_secs = 60
  576.  
  577. # jfro's latest ladder is based on XML... so we can switch to XML output of ladder
  578. # on demand. Maybe we should set update interval bigger cause XML output version
  579. # is much more verbose than the standard output
  580. XML_status_output = false
  581.  
  582. ###############################################################################
  583. # clan settings #
  584. #-----------------------------------------------------------------------------#
  585.  
  586. # Time in hours for a new member of clan to be a newer(Peon icon, cannot premote to Grunt)
  587. # default value 168(7 days). If set to 0, all new members could be promote in no time
  588. clan_newer_time = 0
  589.  
  590. # max members count allowed in a clan, set between 10 and 100, default 50.
  591. clan_max_members = 50
  592.  
  593. # Default clan channel status when create a clan, 1 for private, 0 for public
  594. clan_channel_default_private = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement