Server Help

ASSS Questions - logging in

Anonymous - Fri May 21, 2004 3:09 pm
Post subject: logging in
I think asss should restrict multiple logins from the same macid/ip. It can be a per connectas option in global.conf, the default being 2 simultaneous logins from one person.

Also as a work around for a flaw in SSC biller, you should only be allowed to create 1 new account a day. So Asss would have to ignore the regform/demodata from users trying to make multiple alias.

Implementing these changes shouldn't effect legitimate users, but will hopefully deter disruptive players.
Dr Brain - Fri May 21, 2004 3:12 pm
Post subject:
1 new account a day? Lol, hope you aren't setting up a lot of bots. I have legitamatly made 10 accounts in a day. Having to spread that 5 miniute task out over 10 days would truely suck.

As for the multiple logins, make the ability to do it a capability, again for the purposes of bots. Can't have a bot server and then only get to put one bot in the game.
Anonymous - Fri May 21, 2004 3:20 pm
Post subject:
The bots would connect through the VIE connectas anyway. Also go to a subgame2 zone if you want to make loads of new accounts. One more step for the would be disrupter, slowing them down.

I saw a load of spam accounts is HS today, I don't know if they were bots, or different people or the XP trick, but I didn't find it amusing.
Dr Brain - Fri May 21, 2004 10:46 pm
Post subject:
I thought connectas was what distinguishes the different virtual servers in game? Doesn't the multipub module module use it to determine the default arena?
Qndre - Sat May 22, 2004 5:08 am
Post subject:
Dr Brain wrote:
1 new account a day? Lol, hope you aren't setting up a lot of bots.

I don't think that BOTs send a registration form. biggrin.gif
Mr Ekted - Sat May 22, 2004 8:22 am
Post subject:
Qndre wrote:
I don't think that BOTs send a registration form. biggrin.gif


MERV does, and mine certainly do.
Dr Brain - Sat May 22, 2004 10:19 am
Post subject:
Boy, it's a darn good thing Qndre isn't trying to write his own client, because he doesn't have a single clue about how subspace works... Oh, wait...
Anonymous - Sat May 22, 2004 11:03 am
Post subject:
You are right (both times), just make it a capability and hardcode the max simultaneous logins to 1 for all listen ports. It is too difficult to work out which port a player came in by, which is needed for a setting lookup.
Code: Show/Hide
--- /home/palm/cvs/asss/src/core.c   2004-05-08 00:22:09.000000000 +0000
+++ /home/palm/asss/src/core.c   2004-05-22 15:58:24.000000000 +0000
@@ -705,6 +705,10 @@
   }
   else if (IS_STANDARD(p))
   {
+      Player *i;
+      Link *link;
+      int count;
+   
      struct S2CLoginResponse lr =
         { S2C_LOGINRESPONSE, 0, 134, 0, {0, 0, 0},
            0, {0, 0, 0, 0, 0}, 0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0} };
@@ -738,6 +742,30 @@
         lr.codechecksum = -1;
      }

+      /* limit multiple connections from the same machine */
+      count = 0;
+      FOR_EACH_PLAYER(i) /* coming from a packet func, pd is already locked */
+      {
+         if (i->macid == p->macid)
+            count++;
+      }
+
+      if (count > 1 && capman && !capman->HasCapability(p, "multiplelogin"))
+      {
+         if (p->type == T_CONT)
+         {
+            lr.code = AUTH_CUSTOMTEXT;
+            strncpy(auth->customtext,
+               "You are already logged in",
+               sizeof(auth->customtext));
+         }
+         else
+            lr.code = AUTH_NONEWCONN;
+
+         lm->Log(L_DRIVEL, "<core> [pid=%d] login request denied: "
+            "multiple (%d) conn from same machine", p->pid, count);
+      }
+
      if (lr.code == AUTH_CUSTOMTEXT)
      {
         if (p->type == T_CONT)


All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group