How to lock server so that only certain people can enter
How to lock server so that only certain people can enter
Hello everyone!
From my question, you can understand what my question is (actually not my question).
It's an idea a friend of mine got for his clan. He was thinking of locking the server so that only he and the clan can enter and practice.
I didn't think it was possible but I wasn't sure either when he asked me about it.
He tried using ADMIN_PASS but to no effect but I didn't think it's purpose was to do that.
Is that possible?
From my question, you can understand what my question is (actually not my question).
It's an idea a friend of mine got for his clan. He was thinking of locking the server so that only he and the clan can enter and practice.
I didn't think it was possible but I wasn't sure either when he asked me about it.
He tried using ADMIN_PASS but to no effect but I didn't think it's purpose was to do that.
Is that possible?
- INW
- Reverse Outside Corner Grinder
- Posts: 1950
- Joined: Tue Jul 07, 2009 4:10 pm
- Location: Charlotte, NC, USA
Re: How to lock server so that only certain people can enter
Would it be hard to integrate an IP_WHITELIST command into truck like the authority_whitelist?
Only allows whitelisted IPs in the server?
Only allows whitelisted IPs in the server?
- dukevin
- Round Winner
- Posts: 219
- Joined: Mon Aug 30, 2010 8:25 am
- Location: Southern California
- Contact:
Re: How to lock server so that only certain people can enter
You can't block someone from entering but you can practically make it so they can't be in your server
Code: Select all
user_level clanmember@forums 10
authority_level yourclandomain.com 10
access_level_play 10
access_level_shout 10 #nonclan members cannot speak publicly
idle_kick_time 30 #give 30 secs to login, else kick
Last edited by dukevin on Thu Apr 12, 2012 4:51 am, edited 2 times in total.
Re: How to lock server so that only certain people can enter
He's asking about people entering, not playing, so custom authorities are of no use.
The best thing to do is set up the server with TALK_TO_MASTER 0. Make sure that IP and port have never been set to TALK_TO_MASTER 1, otherwise the master server will find it and continue to list it (I don't know why this is, maybe it's been fixed since the last time I checked?). Now that you have an unlisted server, just give the IP/Port information to the people you want to play there and have them custom connect (in multi-player menu).
The best thing to do is set up the server with TALK_TO_MASTER 0. Make sure that IP and port have never been set to TALK_TO_MASTER 1, otherwise the master server will find it and continue to list it (I don't know why this is, maybe it's been fixed since the last time I checked?). Now that you have an unlisted server, just give the IP/Port information to the people you want to play there and have them custom connect (in multi-player menu).
Re: How to lock server so that only certain people can enter
It's not fixed because it is not a bug. Currently, servers can only communicate with the masters while nobody is playing, so really popular servers would be de-listed if the master servers forgot about servers not phoning in on a regular basis.
(You can delist servers by blocking the master IPs via firewall rules, of course.)
(You can delist servers by blocking the master IPs via firewall rules, of course.)
Re: How to lock server so that only certain people can enter
Ah yes. Could use those commands but I was under the impression that the command:dukevin wrote:You can't block someone from entering but you can practically make it so they can't be in your serverCode: Select all
user_level clanmember@forums 10 authority_level yourclandomain.com 10 access_level_play 10 access_level_shout 10 #nonclan members cannot speak publicly idle_remove_time 30 #give 30 secs to login, else kick
Code: Select all
IDLE_REMOVE_TIME <time> ##Time in seconds after which an inactive player is removed from the game
- delinquent
- Match Winner
- Posts: 760
- Joined: Sat Jul 07, 2012 3:07 am
Re: How to lock server so that only certain people can enter
I've been thinking about this too, is there any kind of possible security implemetation? For example, a player has to say /pass <password> before being allowed to enter/play?
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6711
- Joined: Thu Dec 18, 2003 7:03 pm
Re: How to lock server so that only certain people can enter
There's no automatic mechanism like that. The best you can do by default is this:
It could probably be scripted though. Or a (relatively) simple code hack on the server could do it.
Code: Select all
user_level user@forums 10
access_level_play 10
- delinquent
- Match Winner
- Posts: 760
- Joined: Sat Jul 07, 2012 3:07 am
Re: How to lock server so that only certain people can enter
Hold on, so 10 is what variable exactly? (i'm a nab, bear with me)
- kyle
- Reverse Outside Corner Grinder
- Posts: 1876
- Joined: Thu Jun 08, 2006 3:33 pm
- Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
- Contact:
Re: How to lock server so that only certain people can enter
I remember the old CT authentication system (before armauth) We had it set up so that we had access to all the current IP's of the Cters from our forums accessable on our server. This way when they entered if they where not on that list they where kicked. (I think there was a mode to turn that autokicking off too). But that is one way you could lock it down.
Re: How to lock server so that only certain people can enter
The 10 is an access level. The lower it is, the more "access" you do have (e.g admins have level 1). Usually when people log in it is 15, if they don't log in it's 20. People with an access level higher than 10 can't play on that example setup. However if the login matches the set criteria there, it will be 10 for the player and he can play.
- delinquent
- Match Winner
- Posts: 760
- Joined: Sat Jul 07, 2012 3:07 am
Re: How to lock server so that only certain people can enter
So how does one associate a login ID with an access level?
- compguygene
- Adjust Outside Corner Grinder
- Posts: 2342
- Joined: Thu Aug 21, 2008 12:09 pm
- Location: Cleveland, Ohio
- Contact:
Re: How to lock server so that only certain people can enter
In one of the config files of your server:
Would set my GID at these forums with an access level of 10, to stick with the example above.
Code: Select all
USER_LEVEL compguygene@forums 10
Armagetron: It's a video game that people should just play and enjoy
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
Re: How to lock server so that only certain people can enter
Sure you can mess with all the configs and ultimately achieve that only clan members can PLAY. Or you can disable talk_to_master and post the ip:port on the clan forums, where only clan members can see it.
There's a difference between knowing your shit, and knowing you're shit. Grammar does matter.
- delinquent
- Match Winner
- Posts: 760
- Joined: Sat Jul 07, 2012 3:07 am
Re: How to lock server so that only certain people can enter
Nice idea, but I only want to lock the server to clan members when we have practices, at all other times the server would be open to all.
I don't even have the clan yet...
I don't even have the clan yet...