Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   [TUTORIAL] AuthD Explained (https://postpacific.mmorpg-game.online/showthread.php?t=867)

Shawnmb 09.06.2005 15:44

[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 :D 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)

Alien003 09.06.2005 19:48

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?

BiGBoY 09.06.2005 20:09

Quote:

Originally Posted by Alien003
what are the others ports exactly used to?

For internal communication with rest of the server programs.

djvogans 09.06.2005 22:48

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 :)

Shawnmb 09.06.2005 22:50

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.

EntroX 09.06.2005 22:56

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

Digital 10.06.2005 04:01

DES = a encryption standard

Shawnmb 12.06.2005 09:05

Has anyone done some testing on these? I lacked time this weekend.

djvogans 24.07.2005 00:09

any news regarding PCCafeFirst= or GMIP= ?

Shawnmb 24.07.2005 00:24

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 ><

Eliot 24.07.2005 02:53

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).

Shawnmb 24.07.2005 09:06

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


All times are GMT. The time now is 22:59.