Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 09.06.2005, 15:44   #1
Shawnmb
Архивный участник
 
Join Date: Feb 2005
Posts: 307
Default [TUTORIAL] AuthD Explained

This is my first big post here, so I'll try and keep it updated as work progresses, I would also appreciate any feedback from readers If you reply with something you would like to append, I'll edit the original post to include it with credit to you.

Standard Directory Structure:

-Auth Folder
---- "etc" Folder
-------- config.txt
-------- serverlist
-------- BlockIPs.txt
---- "log" Folder

Contents: Auth Folder
-Your L2AuthD executable
-L2AuthD.pdb

Contents: etc Folder
config.txt
The configuration file read by AuthD.
BlockIPs.txt
IP Blocklist read by AuthD if specific in the config
serverlist
If specified in the config auth will read this local serverlist file instead of the server table from Lin2DB

Contents: log Folder
If it exists and is specified in the config, all kinds of logs will be kept here.


Config.txt Breakdown:

Standard Config.txt (somewhat appended):
Code:
serverPort=
serverExPort=
serverIntPort=
WorldPort=
DBConnectionNum=
numServerThread=
numServerIntThread=
GameID=
SocketTimeOut=
SocketLimit=
AcceptCallNum=
WaitingUserLimit=
PacketSizeType=
Encrypt=
logDirectory="log"
ProtocolVersion=30810
DesApply=
deskey=
ReadLocalServerList=
OneTimeLogOut=
GMCheckMode=
CountryCode=
UserData=
DevConnectOuter="IP.IP.IP.IP"
DevServerIP="IP.IP.IP.IP"
DumpPacket=
PCCafeFirst=
UseIPServer=
IPServer=
IPPort=
IPInterval=
uselogd=
logdip="IP.IP.IP.IP"
logdport=
logdconnectinterval=
RestrictGMIP=
GMIP=
UseWantedSystem=
WantedIP=
WantedPort=
WantedReconnectInterval=
IPAccessLimit=
FreeServer=
useForbiddenIPList=
supportReconnect=
mailServer=
mailFrom=
mailTo=
NewServerList=
AutoKickAccount=
NewEncrypt=
Configuration options breakdown:

serverPort=
Port bind for connection from L2Server

serverExPort=
Port bind for connection from

serverIntPort=
Port bind for Auth's interactive service port.

WorldPort=
Sets standard port binds for use when connecting to L2Server (mainly used with local serverlist?)

DBConnectionNum=
Simultanious number of connections to the database.

numServerThread=
Number of server threads (edit later)

numServerIntThread=
Number of internal server threads (edit later)

GameID=
I guess auth supports another game as well. Keep this at 8 (8 = Lineage II)

SocketTimeOut=
Max idle time before a socket is closed.

SocketLimit=
Max number of sockets

AcceptCallNum=
(?)

WaitingUserLimit=
Max number of "waiting" users (in the lobby?)

PacketSizeType=
Default was on 3, not sure how to explain what it is (edit later)

Encrypt=
Wether or not to use encryption (to client or to server I wonder?)

logDirectory="log"
Location of the directory for log storage (mentioned above). If it doesn't exist you won't get an error or warning of any sort, Auth simply won't store logs.

ProtocolVersion=
Protocol version to use. Default was on 30xxx. (Need a better way to explain this...)

DesApply=
Not sure. True/false, seemingly related to deskey.

deskey=
Untested, don't know yet.

ReadLocalServerList=
Wether or not to read from a local server list. (Explained above)

OneTimeLogOut=
I haven't put time into testing this one, I'm guessing that it defines whether or not you have to enter your sign-in information again if you leave and re-enter the lobby.

GMCheckMode=
<false/true> - Put server into maintance mode. Only Builders can login (currently not working, probably because of the same bug as Set User Limit). (Thanks Eliot)

CountryCode=
Country setting, match it with your other applications etc.

UserData=
Don't know o.O

DevConnectOuter="IP.IP.IP.IP"
Outer IP

DevServerIP="IP.IP.IP.IP"
Inner IP(?)

DumpPacket=
Not sure

PCCafeFirst=
Untested

UseIPServer=
Untested

IPServer=
Settings related to UseIPServer

IPPort=
Settings related to UseIPServer

IPInterval=
Settings related to UseIPServer

uselogd=
Use LogD, True or False

logdip="IP.IP.IP.IP"
LogD IP

logdport=
LogD Port

logdconnectinterval=
Connection interval for LogD

RestrictGMIP=
Untested

GMIP=
Untested

UseWantedSystem=
Untested

WantedIP=
Setting related to UseWantedSystem.

WantedPort=
Setting related to UseWantedSystem.

WantedReconnectInterval=
Setting related to UseWantedSystem.

IPAccessLimit=
Limit connections by IP. For example IPAccessLimit="2" allows 2 accounts logged in on one IP.

FreeServer=
Untested

useForbiddenIPList=
Filter out connections from IPs in the blocklist (BlockIPs.txt, see above)

supportReconnect=
Support reconnections to L2server

mailServer=
Haven't played with this yet, will do so soon :P

mailFrom=
Mail setting

mailTo=
Mail setting

NewServerList=
Not sure

AutoKickAccount=
Automatically kick the currently logged in user when another person logs in with the same credentials.

NewEncrypt=
Use New Encryption (edit later)

Local Serverlist Format:

BlockIPs.txt Format:

Log Formats:

More to come soon enough :P (Post still under construction)
Shawnmb is offline  
Old 09.06.2005, 19:48   #2
Alien003
Архивный участник
 
Join Date: Jun 2005
Posts: 143
Default

hi, great post

I am trying to do a proxy server to act as middle-man to bypass a firewall.
So if you could just explain the port connections in some detail it would be awsome.

lets see..

players connect to auth using serverExPort , then auth authenticates the login and connects to l2server using serverPort?

what are the others ports exactly used to?
Alien003 is offline  
Old 09.06.2005, 20:09   #3
BiGBoY
Архивный участник
 
Join Date: May 2005
Posts: 216
Default

Quote:
Originally Posted by Alien003
what are the others ports exactly used to?
For internal communication with rest of the server programs.
BiGBoY is offline  
Old 09.06.2005, 22:48   #4
djvogans
Архивный участник
 
Join Date: Apr 2005
Posts: 306
Default

maybe we can find out how to make slots

PCCafeFirst= or GMIP=

i'm a little frustrated when i try to connect to server i have to increase and adjust users limit
djvogans is offline  
Old 09.06.2005, 22:50   #5
Shawnmb
Архивный участник
 
Join Date: Feb 2005
Posts: 307
Default

Im liking the fact that there's a connection per IP setting, myself I didn't have much time today but I'll be expirimenting with more tomorrow. I'll update this with whatever I find. Feel free to reply with some corrections or additions.
Shawnmb is offline  
Old 09.06.2005, 22:56   #6
EntroX
Архивный участник
 
Join Date: May 2005
Posts: 373
Default

Nice job, i find this post quite usefull, specially because i wasnt sure about wich ports to open if i encountered a router, i think i saw a guide about them somewhere arround.

Well, thanks again, and good job, keep it up.

Yours.
EntroX
EntroX is offline  
Old 10.06.2005, 04:01   #7
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

DES = a encryption standard
Digital is offline  
Old 12.06.2005, 09:05   #8
Shawnmb
Архивный участник
 
Join Date: Feb 2005
Posts: 307
Default

Has anyone done some testing on these? I lacked time this weekend.
Shawnmb is offline  
Old 24.07.2005, 00:09   #9
djvogans
Архивный участник
 
Join Date: Apr 2005
Posts: 306
Default

any news regarding PCCafeFirst= or GMIP= ?
djvogans is offline  
Old 24.07.2005, 00:24   #10
Shawnmb
Архивный участник
 
Join Date: Feb 2005
Posts: 307
Default

I'm currently moving to a new home half across the world, so I never could resume testing and probably wont be able to at the moment, when I have time I'll finish this post ><
Shawnmb is offline  
Old 24.07.2005, 02:53   #11
Eliot
Архивный участник
 
Join Date: Mar 2005
Posts: 368
Default

If so, then maybe i'll be of any assistance. I'm going to check all these features and post here what i found.

First i tried :

GMCheckMode= <false/true> - Put server into maintance mode. Only Builders can login (currently not working, probably because of the same bug as Set User Limit).
Eliot is offline  
Old 24.07.2005, 09:06   #12
Shawnmb
Архивный участник
 
Join Date: Feb 2005
Posts: 307
Default

GMCheckMode is probably a 0/1 switch and is directly related to GMIP etc.
Shawnmb is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:09.