Jump to content
  • 0

Help [GameServer Problem]


Question

Posted

Hi,today when I looked in game server i saw

 

Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.2

 

This makes me a big lag,what can I do to stop? pls help me

Recommended Posts

  • 0
Posted

Hi,today when I looked in game server i saw

 

Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.27.38] disconnected abnormally.
Client [iP: 188.24.2

 

This makes me a big lag,what can I do to stop? pls help me

this means someone is attacking/ddosing your server with a program, to fix it block this ip if you have linux or add java protections against this programs..

  • 0
Posted

can u help me with java code?

i dont know exactly what this attacker is, i think is l2j attacker.. search in forum, somewhere is posted

  • 0
Posted

Where can I get IPv4Filter for interlude?

 

here is mine for interlude

 

/* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/

package net.sf.l2j.gameserver.util;

import java.net.InetAddress;
import java.nio.channels.SocketChannel;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map.Entry;

import com.l2jserver.mmocore.network.IAcceptFilter;

/**
* Formatted Forsaiken's IPv4 filter [DrHouse]
* 
* @Reworked by Adryan
*
*/
public class IPv4Filter implements IAcceptFilter, Runnable
{
private HashMap<Integer, Flood> _ipFloodMap;
private static final long SLEEP_TIME = 5000;

public IPv4Filter()
{
	_ipFloodMap = new HashMap<Integer, Flood>();
	Thread t = new Thread(this);
	t.setDaemon(true);
	t.start();
}
/**
 * 
 * @param ip
 * @return
 */
private static final int hash(byte[] ip)
{
	return ip[0] & 0xFF | ip[1] << 8 & 0xFF00 | ip[2] << 16 & 0xFF0000 | ip[3] << 24 & 0xFF000000;
}

protected static final class Flood
{
	long lastAccess;
	int trys;

	Flood()
	{
		lastAccess = System.currentTimeMillis();
		trys = 0;
	}
}

public boolean accept(SocketChannel sc)
{
	InetAddress addr = sc.socket().getInetAddress();
	int h = hash(addr.getAddress());

	long current = System.currentTimeMillis();
	Flood f;
	synchronized (_ipFloodMap)
	{
		f = _ipFloodMap.get(h);
	}
	if (f != null)
	{
		if (f.trys == -1)
		{
			f.lastAccess = current;
			return false;
		}

		if (f.lastAccess + 1000 > current)
		{
			f.lastAccess = current;

			if (f.trys >= 3)
			{
				f.trys = -1;
				return false;
			}

			f.trys++;
		}
		else
		{
			f.lastAccess = current;
		}
	}
	else
	{
		synchronized (_ipFloodMap)
		{
			_ipFloodMap.put(h, new Flood());
		}
	}

	return true;
}

public void run()
{
	while (true)
	{
		long reference = System.currentTimeMillis() - (1000 * 300);
		ArrayList<Integer> toRemove = new ArrayList<Integer>(50);

		synchronized (_ipFloodMap)
		{
			for (Entry<Integer, Flood> e : _ipFloodMap.entrySet())
			{
				Flood f = e.getValue();
				if (f.lastAccess < reference)
					toRemove.add(e.getKey());
			}
		}

		synchronized (_ipFloodMap)
		{
			for (Integer i : toRemove)
			{
				_ipFloodMap.remove(i);
			}
		}

		try
		{
			Thread.sleep(SLEEP_TIME);
		}
		catch (InterruptedException e)
		{

		}
	}
}

}

  • 0
Posted

There are different protections,for l2jserver?

Please post the codes..or link something...

maybe 1 more for l2j attacker but with this ipv4filter you are safe from this... btw you are not safe from all ddos programs.. you will never be... you can restrict most of them with firewall rooter or other java programs... depends what the ddos program is

  • 0
Posted

ok, i have router and firewall protection,but I can not give me it down, but lag is small.. as in many players have lag its s***s :|

 

my conexion for internet its guaranteed to not decrease

  • 0
Posted

ok, i have router and firewall protection,but I can not give me it down, but lag is small.. as in many players have lag its s***s :|

no no you didnt understand, i am talking about firewall router... not about firewall + router... everyone have these

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • WTB H5 MID RATE COMPILED+SOURCE FILES,ONLY TRUSTED PEOPLES TEST SERVER IS A MUST PAYMENT: PAYPAL,REVOLUT,STRIPE,IRIS,CRYPTO
    • ⚡ 5TB Storage + Gemini Advanced 12-18M upgrade active! Keeps your personal files 100% private with instant automated setup.     FINAL CALL: Google is Shutting This Down After October 2026! Google will NEVER bring back this window of opportunity again. Once this month ends, this massive backdoor upgrade is gone permanently!  BUY 2, GET 1 FREE IS STILL LIVE! Stock up now for yourself, your family, your business, and your friends! Think about it: Every single person you know uses a Gmail account, and everyone is running out of storage. Don't let your loved ones get trapped paying $20–$30 every single month when you can set them up with 5TB Cloud Storage + Gemini Advanced (12–18 Months) right now for only $15! Why Buy Bulk Activations Today? Instant Gift Value: Perfect lifetime-style gift for clients, family, or team members. 100% Private & Safe: Activates on personal Gmails—zero passwords or logins required. Global Access: Works worldwide with zero VPN hassles. Instant Automated Delivery: Receive your activation links in seconds 24/7! ‍ Time is running out fast—secure your extra free licenses before the October deadline hits! Order Your Bundle Now on the Website
    • Since technical talk offends people, I believe I should return back to writting my Lineage 2 lore stories. Here's the next one:   Once upon a time, there was a boy and a small adorable wolf.    The boy really loved the wolf but as the wolf grow older and bigger, it became agressive and would bite the boy. One day the boy and the wolf decided to go to the city to buy potions. The road was long and hilly so the boy moved all his adena to the wolf bags to help his legs and reach the city easier.   When they reached the city, the boy tried to take the adena out of the wolf's bags. But the wolf would not ! He bit the boy and said "You will not get this adena back, this is my adena". The boy got angry. He decided to go to the pet master and ask for help.    "Pet master, pet master ! My wolf is big, bad and angry and it won't obey me. I want my adena back and it bites me. "   The pet master looked at the big angry wolf, then looked at the boy and said. "I have a solution for your problem young one. I have magic. Dark magic. I can turn your big bad elder wolf into a younger puppy for free, all you have to do is spell the magic chants. Nothing more, no wolf modifying wands, just your say".   The boy thought about it for a bit, and decided that he indeed wanted to turn things back. But when he was about to spell the magic words, guards arrived at the pet master.    The city guard captain said "Is this the big bad angry wolf that bites people and doesn't give back his adena ? We will kill this wolf !"    For a moment the boy hesitated but he said "This wolf is big bad and angry, but I love this wolf and I dont want it to die ! Please don't kill the big bad angry wolf." But the boy was not fast enough. The guards jumped the wolf and started slashing on him with their swords. The boy didn't know what to do, so in it its final moments right as the wolf was about to die, it spelled the magic words. "Pet master, make my wolf young and adorable again !"   But he was not fast enough. The wolf got slashed and killed by the guards just one moment before the boy could finish his last word.    But as the words came out of his mouth, with the wolf's dead body on the floor, a younger wolf manifested out of thin air. The magic was real. The guards got scared and run away. Now the boy was left with a dead old bad angry wolf and next to him an alive younger version.    The boys joy was even bigger when it opened the new wolfs bags and his adena was finally there. He took the adena and went back to buy potions in the city.   Twenty four hours later, the boy couldn't believe how his fortune would change ...   (No AI was used to write this story)
    • This is like 2017 MaxCheaters. i love it.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..