How to use proper bans¶
Find the following line In mvdsv.cfg:
- sv_getrealip 2
This allows the realip check that all clients must reply (unless modified). The values are:
- 0 = Disabled
- 1 = If realip check fails, allow connection.
- 2 = If realip check fails, disallow the connection. (use this)
To make this work you will also need to specify sv_serverip ip:port for each server you are running. This IP-address needs to be the same IP-address players use to connect otherwise you won't be able to connect. For example:
- qw.suomicom.fi:28001 --> sv_serverip 217.119.36.76:28001
If you are using a server package downloaded from MVDSV site, this variable can be found from the portX.cfg files in qwserver/ktx directory. Also it's mentioned in the provided installation help files that you need to configure this variable correctly.
Bans are stored in listip.cfg that can be found from qwserver/ktx directory. The syntax of the ban in listip.cfg is:
- addip 192.168.10.10 ban 0 (single ip)
- addip 192.168.0.0 ban 0 (ip-range, 192.168.*)
Where ban 0 is the duration (0=permanent) using linux timestamp. You can set bans using either RCON or REAL ADMIN VIP the following way:
- RCON: /rcon addip 192.168.10.10 ban 0
- ADMIN: /cmd ban nick 24h
- ADMIN: /cmd ban nick 180m
- ADMIN: /cmd ban nick 1d
- ADMIN: /cmd banip 192.168.10.10 1h 3m 30s