Jump to content
  • 0

Limiting a second server on the same machine


Mumbles

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   36
  • Joined:  01/21/13
  • Last Seen:  

So now that I've got my second channel running as I intended, the last thing I'd like to do is limit who can access it. I figured this would be a simple fix by adding a new value for min_level_to_connect in ~/conf/import/login_conf.txt, but normal players are still able to access the second channel after server restart. My guess is that since my second channel shares the login server with my first channel, it's not importing my login settings. Did I miss something? Edited by Via
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

My guess is that since my second channel shares the login server with my first channel, it's not importing my login settings.

u6fzSDU.png

Correct, in this setup there is only 1 login server, so only one set of login-server configurations.

In order to limit who can login to the 2nd char/map server, you need to limit it at the char-server or map-server level.

How about in trunk/conf/char_athena.conf

// Maximum users able to connect to the server. Set to 0 for unlimited.
max_connect_user: 0

// Group ID that is allowed to bypass the server limit of users.
// Default: -1 = nobody (there are no groups with ID < 0)
// See: conf/groups.conf
gm_allow_group: -1

You could set max_connect_user to 1, then use gm_allow_group to allow GMs to override that limit?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   36
  • Joined:  01/21/13
  • Last Seen:  

My guess is that since my second channel shares the login server with my first channel, it's not importing my login settings.

u6fzSDU.png

Correct, in this setup there is only 1 login server, so only one set of login-server configurations.

In order to limit who can login to the 2nd char/map server, you need to limit it at the char-server or map-server level.

How about in trunk/conf/char_athena.conf

// Maximum users able to connect to the server. Set to 0 for unlimited.
max_connect_user: 0

// Group ID that is allowed to bypass the server limit of users.
// Default: -1 = nobody (there are no groups with ID < 0)
// See: conf/groups.conf
gm_allow_group: -1

You could set max_connect_user to 1, then use gm_allow_group to allow GMs to override that limit?

The only problem I found with that was that a single player could be online if they wanted to, so I just set char_new to 0 to disable character creation. Thanks for that clarification Brian, you've been really helpful. c:

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...