need help with rcon protection
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
I will only tell you how to prevent from getting spammed (rcon messages).

Open server.cfg and type:
pawn Код:
rcon 0
It disables the rcon remote console.
The console is very usefull to me, because I can operate it from my mobile phone when I need it. That is out of the question.

Quote:
Originally Posted by Lidor124
Посмотреть сообщение
You can try my public from my script:

Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success)
    {
        printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
		
        new pip[16], string[128];
        for(new i=0; i<MAX_PLAYERS; i++)
        {
			format(string, sizeof(string), "Name: %s | IP: %s | Attempt Password: %s | *FAILED* TO RCON LOGIN", GetPlayerNameEx(i), ip, password);
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true))
            {
                SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!");
                FixedKick(i); //They are now banned.
			}
			if(success)
			{
			format(string, sizeof(string), "Name: %s | IP: %s | Attempt Password: %s | *SUCCESS* TO RCON LOGIN", GetPlayerNameEx(i), ip, password);
            }
			Log("logs/rcon.log", string);
        }
    }
    return 1;
}
Basically this bans that particular IP. That's ok, but I am trying to keep them unbanned after a while, because some players might have these IP assigned as static. I just need to detect those fast attempts. I don't know how to do that.

Quote:
Originally Posted by TheFlyer
Посмотреть сообщение
or download a admin script which haves 2nd rcon password
I already have my secondary password. I want to get rid of it because it can cause lag sometimes. And the log gets big very quick.
Reply


Messages In This Thread
need help with rcon protection - by HeLiOn_PrImE - 05.02.2014, 17:31
Re: need help with rcon protection - by Konstantinos - 05.02.2014, 18:54
Re: need help with rcon protection - by Lidor124 - 05.02.2014, 18:57
Re: need help with rcon protection - by TheFlyer - 05.02.2014, 19:17
Re: need help with rcon protection - by HeLiOn_PrImE - 06.02.2014, 03:03
Re: need help with rcon protection - by Mattakil - 06.02.2014, 03:44
Re: need help with rcon protection - by ross8839 - 06.02.2014, 04:42
Re: need help with rcon protection - by SickAttack - 06.02.2014, 05:04
Re: need help with rcon protection - by Threshold - 06.02.2014, 07:35
Re: need help with rcon protection - by PowerPC603 - 06.02.2014, 07:50

Forum Jump:


Users browsing this thread: 1 Guest(s)