How to ban Client's IP?

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Lee
Posts: 102
Joined: Wed Sep 02, 2009 11:10 pm

How to ban Client's IP?

Post by Lee »

Hi ,

Well you probably already know for the DragonHunter's lame flooder which sends some wrong packets and the GS prints some massive hex shits and finally it crashes.
I kinda made a fix ,but still... it uses client.closeNow() ,so it doesn't work so good..
Im looking for how to ban the IP of the client (since the program does it OOG) ,so it won't flood again.

Searched the eclipse (client.CTRL+SPACE) ,but nothing showed for block or ban. Can I know if this exists or if it can be done?
Thank you.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: How to ban Client's IP?

Post by janiii »

you can ban IP in login server. dont forget to restart the login server after editing the banned_ip.cfg
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
iamcypher
Posts: 57
Joined: Thu Oct 22, 2009 3:13 pm

Re: How to ban Client's IP?

Post by iamcypher »

or you can ban it by login`s telnet, without any restarts.
User avatar
ZaKaX
Posts: 357
Joined: Thu Nov 22, 2007 6:28 am
Location: Somewhere in Asia.

Re: How to ban Client's IP?

Post by ZaKaX »

Banning an IP is most of the time useless... everyone has dynamic IP.

Banning all accounts relied to an IP is way better. I love it!

UPDATE `accounts` SET `accessLevel` = '-100' WHERE `lastIp` = '133.713.371.337'
¿ Que dice los cojones de la nina ?
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: How to ban Client's IP?

Post by qwerty13 »

Im use firewall for ip blocks. :)
User avatar
Copyleft
Posts: 253
Joined: Fri Feb 01, 2008 9:39 pm

Re: How to ban Client's IP?

Post by Copyleft »

ZaKaX wrote:Banning an IP is most of the time useless... everyone has dynamic IP.

Banning all accounts relied to an IP is way better. I love it!

UPDATE `accounts` SET `accessLevel` = '-100' WHERE `lastIp` = '133.713.371.337'

it would rock if you'd have like 10 last IPs registered

you would probably eradicate that player from your server then...
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: How to ban Client's IP?

Post by janiii »

Copyleft wrote:
ZaKaX wrote:Banning an IP is most of the time useless... everyone has dynamic IP.

Banning all accounts relied to an IP is way better. I love it!

UPDATE `accounts` SET `accessLevel` = '-100' WHERE `lastIp` = '133.713.371.337'

it would rock if you'd have like 10 last IPs registered

you would probably eradicate that player from your server then...
check the log files in login/log/game .
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: How to ban Client's IP?

Post by _DS_ »

Epilogue will have new accounting log on the gameserver, with addresses, accounts, characters.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: How to ban Client's IP?

Post by qwerty13 »

Cool! :D
Lee
Posts: 102
Joined: Wed Sep 02, 2009 11:10 pm

Re: How to ban Client's IP?

Post by Lee »

Nah this wasn't what i was asking for..

You see, this packet is sent from a VB exe (out of game), so they don't even need to log or use an account.
Thats my point.. it uses no account, so its impossible to ban it?
User avatar
Aikimaniac
L2j Inner Circle
L2j Inner Circle
Posts: 3048
Joined: Sun Aug 07, 2005 11:42 pm
Location: Slovakia

Re: How to ban Client's IP?

Post by Aikimaniac »

Lee wrote:Nah this wasn't what i was asking for..

You see, this packet is sent from a VB exe (out of game), so they don't even need to log or use an account.
Thats my point.. it uses no account, so its impossible to ban it?
BAN IP range on firewall :D
Image
mr.karrde
Posts: 19
Joined: Sun Mar 01, 2009 10:45 am
Contact:

Re: How to ban Client's IP?

Post by mr.karrde »

Copyleft wrote: it would rock if you'd have like 10 last IPs registered
you would probably eradicate that player from your server then...
Aikimaniac wrote: BAN IP range on firewall :D
But don't forget (with dynamic IP's) this way your are banning not only one bad guy, you are banning others/all using the same Internet service provider!
Lee
Posts: 102
Joined: Wed Sep 02, 2009 11:10 pm

Re: How to ban Client's IP?

Post by Lee »

Yeah i know about the firewall, but when im not checking the GS it will lag the shit out of the server.. So I need it to ban from sending packets or whatever.. I guess its not possible (well in L2J everything is possible, but everything with its time ^^).
Post Reply