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

    • NEW HIDDENSTASH KEY SYSTEM INTRODUCED TO THE SITE   **Earn While You Spend - Introducing HS Cashback!**   Every purchase on our site now rewards you with **HS Keys cashback**   EVERY ONE WHO REGISTERS IN SITE UNTILL 15TH OF MAY GETS 2000 HS KEYS IN HES BALANE   Here's how it works:       **1 USD = 1000 HS Keys**   **Get 3% cashback** on every purchase   **Use your HS Keys to **save on your next order**   ---   ### ⚡ Why this is awesome   * Every order gives you value back   * Stack it with promos & HS usage   * Turn your spending into future discounts   ---   ### Example   Spend **$10** → Get **300 HS Keys** back   Spend **$50** → Get **1500 HS Keys** back   ---   ### Smart system (built for fairness)   * Cashback is rounded to keep things balanced   * Prevents abuse from tiny orders   * Rewards real buyers   ---   ### Start earning now   Every purchase = progress toward your next discount   Shop now and build your HS balance!   #cashback #gamingdeals #d2r #rewards #loyalty   Stay safe out there, heroes - and happy hunting! www.d2rhiddenstash.com     We just launched our new Affiliate Program — and it’s the easiest way to earn HS Keys.   Invite your friends using your personal link.   Example: If your friend spends $10 → you get 300 HS Keys No limits. No effort. Just share your link.   Get your referral link here: www.d2rhiddenstash.com/profile     Start earning today
    • https://jumpshare.com/share/L45ApA5PVrGN2O5Ua5pQ   Skill synchronization with the server: Launching and synchronizing animations, launching and synchronizing effects. All of this is tied to the server's timing  
  • 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..