Restricting access to a Half-Life: CounterStrike dedicated server..

TheVrolok

Lifer
Dec 11, 2000
24,254
4,092
136
Anyone know off hand how to restrict access to a HLDS CS server? I wanna allow only a certain range of IPs/subnet but I'm not quite sure how. I'll keep looking around tho. Thanks in advance.
 

Extrarius

Senior member
Jul 8, 2001
259
0
0
I know of no way to protect it by subnext, but if all the computers are on a LAN you could just make it a lan server (iirc it restricts it to the current subnet automatically when you run a lan server).
If all else fails, you could set a server password with the sv_password variable in the server configs and then have everybody create/edit their autoexec.cfg to have a line set password to the same as you set sv_password on the server.
 

TheVrolok

Lifer
Dec 11, 2000
24,254
4,092
136
Originally posted by: CTho9305
Using a firewall would be a simple way...

nod, I guess I wanna limit incoming traffic on my linux server anyway so I'll probably just block all but my college IPs