All pastes #88441 Raw Edit

Stuff

public text v1 · immutable
·published 2006-07-14 22:49 UTC
rendered paste body
D2CS



#################################################################################
# d2cs.conf  -  Configuration file for the diablo2 game control server		#
#-------------------------------------------------------------------------------#
#										#
# This file is an example configuration and may require modification to		#
# suit your needs or your site.  Blank lines and lines starting with a "#"	#
# are ignored.  Use quotes around values that contain spaces.			#
#										#
#################################################################################


#################################################################################
# Server Major Settings								#
#-------------------------------------------------------------------------------#
#										#
# Your realm server name							#
realmname		=	"PIB"

# This is a comma delimited list of hostnames that the server should
# listen on.  It might be useful to make an internal-only server on a
# gateway machine for example.  If the list is not set or if it has a
# entry with no host component, the server will bind to that port on all
# interfaces.
# d2cs default listening port is 6113
# WARNING!! DO NOT USE "127.0.0.1" or "localhost" !!!
servaddrs		=	192.168.0.101:6113

# This is a comma delimited list of game servers
# WARNING!! DO NOT USE "127.0.0.1" or "localhost" !!!
gameservlist		=	192.168.0.101

# This is bnetd server address with port 
# bnetd default listening port is 6112
# WARNING!! DO NOT USE "127.0.0.1" or "localhost" !!!
bnetdaddr		=	192.168.0.101:6112

# Set this to the maximum number of concurrent connections allowed on 
# this server.
max_connections = 1000

# This sets the realm to Classic or LOD or Both
# Classic = 0
# LOD = 1
# Both = 2 (default)
lod_realm = 2

# This sets whether you can convert a clasic char to
# an expansion char.
# Allow Convert = 1
# Don't allow Convert = 0
allow_convert = 0

# here u can enter the symbols allowed in accountnames (additional to 
# alphanumerical symbals which are always accepted). please note that
# it is absolutly mandatory that u set up the same symbols here as in
# bnetd.conf or else u wont be able to play D2 with some characters
# (those whose symbols are allowed in bnetd.conf but not here)
# same warnings as in bnetd.conf apply here - be warned - and just
# change something if you know what you are doing
#default setting is "-_[]"
account_allowed_symbols = "-_[]"

#										#
#################################################################################

#################################################################################
# Message logs									#
#-------------------------------------------------------------------------------#
# Multiple log levels can be defined by connecting them with a comma (,)
# Available loglevels are:
#   none
#   trace
#   debug
#   info
#   warn
#   error
#   fatal
#loglevels = fatal,error,warn,info
loglevels = fatal,error,warn,info,debug,trace

#										#
#################################################################################

#################################################################################
# File and Path section								#
# Use absolute paths in these lines to avoid problems!				#
#-------------------------------------------------------------------------------#
#										#
logfile			=	var\d2cs.log
charsavedir		=	var\charsave
charinfodir		=	var\charinfo
bak_charsavedir		=	var\bak\charsave
bak_charinfodir		=	var\bak\charinfo
ladderdir		=	var\ladders
newbiefile		=	files\newbie.save
transfile		=	conf\address_translation.conf
d2gsconffile		=	conf\d2server.ini
#										#
#################################################################################

#################################################################################
# Misc										#
#-------------------------------------------------------------------------------#
#										#
# Message Of The Day
motd                    =       "No Message Of The Day Set" 

# Set to non-zero to allow creation of new realm character
allow_newchar		=	1

# Do you want d2cs to check client for multilogin for security reason?
check_multilogin	=	0

# Maxinum number of character per account
# Max allowed value is 18 (enforced by server)
maxchar			=	8

# Character sorting. Options are: level, mtime, name, none. (none assumed if
# not specified).
#charlist_sort = "none"

# Do we need ascending or descending order for charlist?
#charlist_sort_order = "ASC"

# Maxinum number of games will be shown in join game list
# Zero = infinite
maxgamelist		=	20

# Set to non-zero to allow show all games with difficulty < character difficulty
# Otherwise, only game with difficulty = character difficulty will be shown
gamelist_showall	=	0

# Maxinum time in seconds that a user can idle
# Zero = infinite
idletime		=	3600

# Amount of time to delay shutting down server in seconds.
shutdown_delay		=	300

# Amount of time delay period is decremented by either a SIGTERM or SIGINT
# (control-c) signal in seconds.
shutdown_decr		=	60
#
#################################################################################


#################################################################################
# Internal System Settings							#
# You may just ignore them and use the default value				#
#-------------------------------------------------------------------------------#
#
# How often will the server purge all list to clean unused data (in seconds)
listpurgeinterval	=	300

# How often will the server check game queues (in seconds)
gqcheckinterval		=	60

# How often will the server retry to connect to bnetd 
# when connection lost (in seconds)
s2s_retryinterval	=	10

# How long time the s2s connection will timeout 
s2s_timeout		=	10

# How often the server will check server queues for expired data
sq_checkinterval	=	300

# How long time will a server queue data expire
sq_timeout		=	300

# Game serer binary files checksum, use zero to skip this checking
d2gs_checksum		=	0

# Game server version, use zero to skip this checking
d2gs_version		=	0

# Game server password
d2gs_password		=	""

# Maxinum number of second that a game will be shown on list( zero = infinite )
game_maxlifetime	=	0

# A game will be automatically destroied after how long time idle
max_game_idletime	=	0

# Allow Limitation created game with password, player number or level limit?
allow_gamelimit		=	1

# Ladder refresh time
ladder_refresh_interval =	3600

# server to server connection max idle time in seconds
s2s_idletime		=	300

# server to server connection keepalive interval
s2s_keepalive_interval	=	60

# all connection timeout check interval
timeout_checkinterval	=	60

# game server restart interval
# when sending SIGUSR2 signal to your d2cs this issues a restart
# of all connected d2gs after d2gs_restart_delay seconds
d2gs_restart_delay	=	300

# ladder start time
# format: yyyy-mm-dd hh:mm:ss
# be carefull:
# all chars created before this date will revert to non-ladder chars
ladder_start_time	=	""

# number of days before a char expires (default 0=unlimited)
char_expire_day		=	0

#
#################################################################################






D2DBS



#################################################################################
# d2dbs.conf  -  Configuration file for the Diablo2 Game database server	#
#-------------------------------------------------------------------------------#
#										#
# This file is an example configuration and may require modification to		#
# suit your needs or your site.  Blank lines and lines starting with a "#"	#
# are ignored.  Use quotes around values that contain spaces.			#
#										#
#################################################################################

#################################################################################
# Server Major Settings								#
#-------------------------------------------------------------------------------#
# This is a comma delimited list of hostnames that the server should
# listen on.  It might be useful to make an internal-only server on a
# gateway machine for example.  If the list is not set or if it has a
# entry with no host component, the server will bind to that port on all
# interfaces.
# dbs default listening port is 6114
# WARNING!! DO NOT USE "127.0.0.1" or "localhost" !!!
servaddrs	= 192.168.0.101:6114

# This is a comma delimited list of game servers
# WARNING!! DO NOT USE "127.0.0.1" or "localhost" !!!
#gameservlist	= 192.168.0.101

#										#
#################################################################################

#################################################################################
# Message logs                                                                  #
#-------------------------------------------------------------------------------#
# Multiple log levels can be defined by connecting them with a comma (,)
# Available loglevels are:
#   none
#   trace
#   debug
#   info
#   warn
#   error
#   fatal
#loglevels = fatal,error,warn,info
loglevels = fatal,error,warn,info,debug,trace

#                                                                               #
#################################################################################

#################################################################################
# File and Path section								#
# Use absolute paths in these lines to avoid problems!				#
#-------------------------------------------------------------------------------#
logfile		=	var\d2dbs.log
logfile-gs	=	var\d2dbs-gs.log
charsavedir	=	var\charsave
charinfodir	=	var\charinfo
ladderdir	=	var\ladders
bak_charsavedir	=	var\bak\charsave
bak_charinfodir	=	var\bak\charinfo
#										#
#################################################################################

#################################################################################
# Misc										#
#-------------------------------------------------------------------------------#
#										#
# Ladder save interval
laddersave_interval	=	3600

# Time that allow characters create after it insert into ladder
# These code should be rewritted to support string formmated time
ladderinit_time		=	0

# create extra ladder file in XML format that can be parsed more easy
# 0 = turn extra output off (default)
# 1 = turn on the XML output
XML_ladder_output       =       0

# Amount of time to delay shutting down server in seconds.
shutdown_delay          =       360

# Amount of time delay period is decremented by either a SIGTERM or SIGINT
# (control-c) signal in seconds.
shutdown_decr           =       60

# connection max idle time in seconds
idletime		=	300

# connection keep alive interval
keepalive_interval	=	60

# connection time out check interval
timeout_checkinterval	=	60

# experience threshold, minimum experience needed to register on the ladder
ladderupdate_threshold	=	0

# What chars will be added to ladder?
# 0 = ladder and non-ladder chars
# 1 = only ladder chars
ladder_chars_only	=	1

# This setting activates a workaround for the well known "Lvl 100" bug.
# It should be activated for mods where the max level is greater than 99.
# Activating this should work for mods with any max level
# If level is greater than 255, it will be set to 255
# 0 = deactivated
# 1 = activated
difficulty_hack         =       0

#										#
#################################################################################




Realm



#################################################################################
# realm.list  -  List of Diablo II Realms					#
#-------------------------------------------------------------------------------#
#										#
# Realms are areas that hold closed characters and games.			#
# Users are given this list of realms to choose from when			#
# creating a new character.  Next time the character is				#
# used, they will automatically join the same realm.				#
#										#
# The realm server runs on port 6113 by default.				#
# If you do not specify a port number, it will use this by default.		#
#										#
# <realmname> : the realm name (mandatory; must start and end with " )		#
# <description> : the realm description (optional; must start and end with " )	#
# ip:port - actual ip the d2cs server is running on (mandatory)			#
#							        		#
# --- realm name ---	--- description ---	--- real address ---		#
#    (mandatory)	    (optional)		     (mandatory)		#
#-------------------------------------------------------------------------------#
#   "PIB"	 ["PIB's Realm"]	      <ip:port>			#
#										#
#################################################################################

# WARNING!! DO NOT USE "127.0.0.1" or "localhost" FOR ANY IP ADDRESS

# example (having a d2cs server running on IP 1.2.3.4):
"PIB"			"PIB Realm Closed"		192.168.0.101:6113






address_translation



########################################################################################################
#------------------------------------------------------------------------------------------------------#
# Address Translation table                                                                            #
#------------------------------------------------------------------------------------------------------#
#                                                                                                      #
# This is a list of ip:port addresses that get translated                                              #
#                                                                                                      #
# The entries are broken into four parts:                                                              #
#                                                                                                      #
# * the IP address w/port to be translated                                                             #
# * the output IP address w/port                                                                       #
# * comma delimited list of networks to be excluded from translation                                   #
# * comma delimited list of networks to be included in translation                                     #
#                                                                                                      #
# Each line must contain all four parts or the entire entry will be rejected                           #
# There are no default ports, make sure input and output includes the port number                      #
#                                                                                                      #
# The entries are searched in the order listed in this file                                            #
# Exclude networks are searched before include networks                                                #
# Only the first matching line is used                                                                 #
# Lines begining with '#' are ignored                                                                  #
#                                                                                                      #
# If no match is found, the input ip will be returned.                                                 #
#                                                                                                      #
# NONE = There are no neworks to exclude/include (just a place holder, no entries will be added)       #
# ANY = All networks will be excluded/included   (same as 0.0.0.0/0)                                   #
#                                                                                                      #
########################################################################################################

########################################################################################################
# w3route server ip (removed from w3trans.conf) (Port 6200)                                            #
#                                                                                                      #
# Set input address the same as the w3routeaddr setting in the bnetd.conf                              #
# Set output address to the address to be sent to war3 clients                                         #
# Set exclude to the range of clients you want to recieve the input address                            #
#    instead of the output address                                                                     #
# Set include to the range of clients you want to recieve the output address                           #
#                                                                                                      #
#   input (ip:port)	   output (ip:port)	    exclude (ip/netmask)	include (ip/netmask)   #
#---------------------	----------------------	----------------------------  -------------------------#

#0.0.0.0:6200		192.168.1.100:6200	NONE				192.168.1.0/24
#0.0.0.0:6200		internetip:6200		NONE				ANY



########################################################################################################
# Game Translations for clients (removed from gametrans.conf) (client data ports)                      #
#                                                                                                      #
# Set input address to the client to be translated                                                     #
# Set output address to the address to be sent to the other clients                                    #
# Set exclude to the range of clients you want to recieve the input address                            #
#    instead of the output address                                                                     #
# Set include to the range of clients you want to recieve the output address                           #
#                                                                                                      #
#   input (ip:port)        output (ip:port)         exclude (ip/netmask)	include (ip/netmask)   #
#---------------------  ----------------------  ----------------------------  -------------------------#

#192.168.0.101:6119	72.73.230.79:6119	192.168.0.101/24,10.0.0.0/8	ANY



########################################################################################################
# Diablo II Charactar Server (d2cs) - (removed from realm.conf) (Port 6113)                            #
#                                                                                                      #
# Set input address to the ip of d2cs (same as the ip in the realm.conf)                               #
# Set output address to the address to be sent to the clients                                          #
# Set exclude to the range of clients you want to recieve the input address                            #
#    instead of the output address                                                                     #
# Set include to the range of client you want to recieve the output address                            #
#                                                                                                      #
#   input (ip:port)        output (ip:port)         exclude (ip/netmask)	include (ip/netmask)   #
#---------------------  ----------------------  ----------------------------  -------------------------#

192.168.0.101:6113	72.73.230.79:6113	192.168.0.101/24		ANY



########################################################################################################
# Diablo II Game Server (d2gs) - (removed from d2gstrans.conf) (Port 4000)                             #
#                                                                                                      #
# Set input address to the ip of d2gs (same as the gameservlist in d2cs.conf)                          #
# Set output address to the address to be sent to the clients                                          #
# Set exclude to the range of clients you want to recieve the input address                            #
#    instead of the output address                                                                     #
# Set include to the range of client you want to recieve the output address                            #
#                                                                                                      #
#   input (ip:port)        output (ip:port)         exclude (ip/netmask)	include (ip/netmask)   #
#---------------------  ----------------------  ----------------------------  -------------------------#

192.168.0.101:4000	72.73.230.79:4000	192.168.0.101/24		ANY





D2CS Log


Jul 12 14:06:03 [info ] d2cs_conn_destroy: [160] closed connection 24 (0 left)
Jul 12 14:06:14 [info ] s2s_create: try make s2s connection to 192.168.0.101:6112
Jul 12 14:06:14 [info ] s2s_create: connection to s2s server 192.168.0.101:6112 is in progress
Jul 12 14:06:14 [info ] d2cs_conn_create: created session=25 socket=160 (1 current connections)
Jul 12 14:06:14 [info ] conn_handle_connecting: connected to 192.168.0.101:6112
Jul 12 14:06:14 [info ] handle_bnetd_init: sent init class packet to bnetd
Jul 12 14:06:14 [info ] d2cs_conn_destroy: [160] closed connection 25 (0 left)
Jul 12 14:06:25 [info ] s2s_create: try make s2s connection to 192.168.0.101:6112
Jul 12 14:06:25 [info ] s2s_create: connection to s2s server 192.168.0.101:6112 is in progress
Jul 12 14:06:25 [info ] d2cs_conn_create: created session=26 socket=160 (1 current connections)
Jul 12 14:06:25 [info ] conn_handle_connecting: connected to 192.168.0.101:6112
Jul 12 14:06:25 [info ] handle_bnetd_init: sent init class packet to bnetd
Jul 12 14:06:25 [info ] d2cs_conn_destroy: [160] closed connection 26 (0 left)
Jul 12 14:06:36 [info ] s2s_create: try make s2s connection to 192.168.0.101:6112
Jul 12 14:06:36 [info ] s2s_create: connection to s2s server 192.168.0.101:6112 is in progress
Jul 12 14:06:36 [info ] d2cs_conn_create: created session=27 socket=160 (1 current connections)
Jul 12 14:06:36 [info ] conn_handle_connecting: connected to 192.168.0.101:6112
Jul 12 14:06:36 [info ] handle_bnetd_init: sent init class packet to bnetd
Jul 12 14:06:36 [info ] d2cs_conn_destroy: [160] closed connection 27 (0 left)
Jul 12 14:06:47 [info ] s2s_create: try make s2s connection to 192.168.0.101:6112
Jul 12 14:06:47 [info ] s2s_create: connection to s2s server 192.168.0.101:6112 is in progress
Jul 12 14:06:47 [info ] d2cs_conn_create: created session=28 socket=160 (1 current connections)
Jul 12 14:06:47 [info ] conn_handle_connecting: connected to 192.168.0.101:6112
Jul 12 14:06:47 [info ] handle_bnetd_init: sent init class packet to bnetd




D2DBS Log


Jul 14 18:45:53 [info ] server_main: D2DBS Version 1.10.1.1 Built Jan 16 2006 18:55:25
Jul 14 18:45:53 [info ] server_main: server initialized
Jul 14 18:45:53 [info ] dbs_server_main: establishing the listener...
Jul 14 18:45:53 [info ] d2ladder_checksum_check: ladder file check pass (checksum=0xDB72C052)
Jul 14 18:45:53 [info ] d2ladder_checksum_check: ladder file check pass (checksum=0xDB72C052)
Jul 14 18:45:53 [info ] d2ladder_saveladder: backup ladder file
Jul 14 18:45:53 [info ] d2ladder_saveladder: ladder file saved (0 changes)
Jul 14 18:45:53 [info ] dbs_server_main: waiting for connections...
Jul 14 18:45:53 [info ] d2ladder_checksum_check: ladder file check pass (checksum=0xDB72C052)
Jul 14 18:45:53 [info ] d2ladder_saveladder: backup ladder file
Jul 14 18:45:53 [info ] d2ladder_saveladder: ladder file saved (0 changes)



External IP: 72.73.230.79
My PC's IP: 192.168.0.101
Gateway: 192.168.0.0