SA-MP Forums

Go Back   SA-MP Forums > SA-MP > News and Updates

Reply
 
Thread Tools Display Modes
Old 04/02/2014, 01:42 PM   #201
bobec
Newbie
 
Join Date: Mar 2013
Posts: 0
Reputation: 0
Default Re: SA-MP 0.3x R2 server patch 1

nice\
bobec is offline   Reply With Quote
Old 05/02/2014, 06:11 PM   #202
Cineva
Little Clucker
 
Cineva's Avatar
 
Join Date: Aug 2013
Posts: 35
Reputation: 0
Default Re: SA-MP 0.3x R2 server patch 1

Hello, my problem continues today. The server gets DDoS attack time. I talked hosting company and they said they did update.


[20:02:57] AckRanges DoS attack from 79.119.155.147:4737 (1261)
[20:02:59] AckRanges DoS attack from 93.113.61.152:55852 (1119)
[20:02:59] AckRanges DoS attack from 109.233.198.68:63177 (1119)
[20:02:59] AckRanges DoS attack from 46.214.192.118:51171 (1119)
[20:02:59] AckRanges DoS attack from 89.42.147.150:1862 (1119)
[20:02:59] AckRanges DoS attack from 79.118.250.203:63044 (1119)
[20:02:59] AckRanges DoS attack from 91.238.94.164:4338 (1119)
[20:02:59] AckRanges DoS attack from 188.24.178.206:51757 (1119)
[20:02:59] AckRanges DoS attack from 188.212.4.221:55837 (1119)
[20:03:00] AckRanges DoS attack from 92.87.214.80:52541 (1121)
[20:03:00] AckRanges DoS attack from 89.32.200.136:51019 (1119)
Cineva is offline   Reply With Quote
Old 06/02/2014, 10:44 AM   #203
InSidePNN
Little Clucker
 
InSidePNN's Avatar
 
Join Date: Feb 2014
Location: localhost
Posts: 12
Reputation: 0
Default Re: SA-MP 0.3x R2 server patch 1

I made this update ! Yesterday enter my server a person and shout down my server, what is the problem ?
InSidePNN is offline   Reply With Quote
Old 09/02/2014, 05:58 PM   #204
Kemula
Big Clucker
 
Join Date: Sep 2012
Posts: 91
Reputation: 1
Default Respuesta: SA-MP 0.3x R2 server patch 1

Today, an user called Pablo_Jara turned off my server, and is strange because it has 64GB RAM, 100mbps, 2TB disk hard memory, an Atom Opteron 6272...
Kemula is offline   Reply With Quote
Old 10/02/2014, 09:46 PM   #205
AlonzoTorres
Gangsta
 
AlonzoTorres's Avatar
 
Join Date: Oct 2013
Location: warning 213: tag mismatch
Posts: 591
Reputation: 128
Default Re: Respuesta: SA-MP 0.3x R2 server patch 1

Quote:
Originally Posted by Kemula View Post
Today, an user called Pablo_Jara turned off my server, and is strange because it has 64GB RAM, 100mbps, 2TB disk hard memory, an Atom Opteron 6272...
A simple 1 Gbit/s connection on a linux VPS can with the right scripts take down a server with a 100mbps connection without protection easily. This update was to prevent users from using custom written tools and specially formulated packets to attack SA-MP servers. This does not prevent anyone from DDosing your VPS though.
AlonzoTorres is offline   Reply With Quote
Old 12/02/2014, 09:24 PM   #206
Slice
High-roller
 
Join Date: Mar 2008
Location: Sweden
Posts: 1,899
Reputation: 1577
Default Re: SA-MP 0.3x R2 server patch 1

To fix the timeouts, make a script to "whitelist" players. All you need to do is keep sending SendRconCommand("unbanip x.x.x.x") every 150ms or so.

Don't whitelist everyone, though, as that would allow attackers to do their thing.

Edit: Proof-of-concept:
Code:
#include <a_samp>

new g_FixTimeout[MAX_PLAYERS];

public OnFilterScriptInit() {
	SetTimer("TimeoutFix", 200, true);
}

public OnPlayerCommandText(playerid, cmdtext[]) {
	if (!IsPlayerAdmin(playerid)) {
		return 0;
	}
	
	if (!strcmp(cmdtext, "/fixtimeout ", _, 12)) {
		new pid = strval(cmdtext[12]);

		if (0 <= pid < MAX_PLAYERS) {
			g_FixTimeout[pid] = true;

			SendClientMessage(playerid, 0x00CC00FF, "> Player added to fix list");
		} else {
			SendClientMessage(playerid, 0xC00000FF, "> Invalid ID");
		}

		return 1;
	}

	return 0;
}

public OnPlayerDisconnect(playerid, reason) {
	g_FixTimeout[playerid] = false;

	return 1;
}

public TimeoutFix();
public TimeoutFix() {
	new tick = GetTickCount();

	for (new i = 0; i < MAX_PLAYERS; i++) {
		if (!g_FixTimeout[i]) {
			continue;
		}

		new cmd[32];

		GetPlayerIp(i, cmd, sizeof(cmd));

		format(cmd, sizeof(cmd), "unbanip %s", cmd);

		SendRconCommand(cmd);
	}

	tick = GetTickCount() - tick;

	if (tick > 10) {
		printf("Warning: timeoutfix took %dms", GetTickCount() - tick);
	}
}
Slice is offline   Reply With Quote
Old 12/02/2014, 10:10 PM   #207
Higgins39
Big Clucker
 
Higgins39's Avatar
 
Join Date: Feb 2014
Location: Space
Posts: 128
Reputation: 16
Default Re: SA-MP 0.3x R2 server patch 1

Wow Amazing!
Higgins39 is offline   Reply With Quote
Old 13/02/2014, 05:15 AM   #208
N0FeaR
High-roller
 
N0FeaR's Avatar
 
Join Date: Nov 2011
Location: Los Santos, Idlewood
Posts: 2,252
Reputation: 143
Default Re: SA-MP 0.3x R2 server patch 1

Thx!
__________________
Currently working in:
Working on a script from scratch 25%
Things I done:
[GameMode]Prototype Roleplay
[GameMode]Reality Prison Roleplay
[GameMode]Los Santos GangWar


Quote:
Originally Posted by ThaiLuan View Post
C:\Users\Administrator\Downloads\Viet-RP\gamemodes\3mien.pwn(112016) : fatal error 101: cannot write to file: "disk full"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Help me! How to fix error
N0FeaR is offline   Reply With Quote
Old 13/02/2014, 08:19 PM   #209
Higgins39
Big Clucker
 
Higgins39's Avatar
 
Join Date: Feb 2014
Location: Space
Posts: 128
Reputation: 16
Default Re: SA-MP 0.3x R2 server patch 1

Thanks!! nice
__________________
Higgins39 is offline   Reply With Quote
Old 24/07/2014, 01:12 AM   #210
Rickenbg
Little Clucker
 
Join Date: Jul 2014
Posts: 3
Reputation: 0
Default Re: SA-MP 0.3x R2 server patch 1

Thank you!
Rickenbg is offline   Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GTA SA Patch FireCat Everything and Nothing 7 27/11/2013 05:02 AM
[GameMode] ExTreMe PaTch Server adi443 Gamemode Scripts 11 06/08/2013 06:39 AM
0.3 RC3 - Patch VS NPC! Patch-PT Screenshots and Videos 3 05/09/2009 04:48 AM
patch lazy smurf Client Support 4 10/02/2009 10:31 PM


All times are GMT. The time now is 01:05 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.