PDA

View Full Version : Bzmod - Banning clients



Mariusz
16th November 2017, 13:56
Is any additional software to block some clients.? Unfortunately, my console does not save ips.
Using console is not very comforatable. I'm curious if is it something diffirent to check.

maxdamage99
16th November 2017, 16:06
You can check client properities, if exist in banlist - kick:
-IP
-GUID


self getIP();
self getGUID();

BAN - ADD IP/GUID IN BAN LIST
or...
if your mod have account system, you can ban account (by login) - player can connect, but cant play on this acc.

Mariusz
21st November 2017, 20:25
I don't understand you. I don't use php, library code, linux. I red this post https://killtube.org/showthread.php?2662-Banip-from-game-to-FairWall&highlight=banip hundred times and still don't understand if I can use casual script and text file to block some users. Could you once again explain what files do I have to create to get purpose. Thx.

maxdamage99
22nd November 2017, 09:05
You can check client properities, if exist in banlist - kick:
-IP
-GUID


self getIP();
self getGUID();

BAN - ADD IP/GUID IN BAN LIST
or...
if your mod have account system, you can ban account (by login) - player can connect, but cant play on this acc.
you can ban IP from game (.gsc scripts) - if you need ban PLAYER by IP

if you need ban access for your host machine (IP):


system("iptables -I INPUT -i eth0 -s "+player getIP()+" -j DROP");

IzNoGoD
22nd November 2017, 10:29
Please specify a port in the above so you don't lock yourself out of ssh forever if you accidentally ban yourself.

Selbie
29th November 2017, 20:53
you can ban IP from game (.gsc scripts) - if you need ban PLAYER by IP

if you need ban access for your host machine (IP):


system("iptables -I INPUT -i eth0 -s "+player getIP()+" -j DROP");



Yeah run cod2 with root permissions!

IzNoGoD
29th November 2017, 23:28
Yeah run cod2 with root permissions!

You could make it a sudo command and give your user permission to sudo iptables in the sudoers file

Mariusz
1st December 2017, 20:22
Completely don't understand, sorry. Maybe https://www.youtube.com/watch?v=iCrargw1rrM

maxdamage99
2nd December 2017, 08:25
Yeah run cod2 with root permissions!

http://i0.kym-cdn.com/entries/icons/original/000/000/554/picard-facepalm.jpg