Forum

> > CS2D > Servers > Server firewall/lags
Forums overviewCS2D overview Servers overviewLog in to reply

English Server firewall/lags

10 replies
To the start Previous 1 Next To the start

old Server firewall/lags

Near
User Off Offline

Quote
Hi all

I have a problem with my dedicated server which runs on a vps
So, i saw someone("logs")he spam my server with DDOS Attack or with his server cs2d and my server crash. But sometimes my server had laggs(with 8-10 players"") without ddos Attack
Whereas i have a very good vps (" 1gb Ram , 2 core and good connection")
So what can i do ? And someone know How to make a firewall on vps ("Debian") for stop the "unexptected message from xx"

Or Can i protect my server with iptables ?

Thanks for your answers
edited 1×, last 08.02.12 01:31:22 pm

old Re: Server firewall/lags

DannyDeth
User Off Offline

Quote
Make sure the players are actually near the servers. My server used to frequently get damaged packets from South America.

old Re: Server firewall/lags

Near
User Off Offline

Quote
Yep the attacks come from south America. But what can i do ?
Have you got a link which Explain how to protect applications on a vps ?

old Re: Server firewall/lags

DannyDeth
User Off Offline

Quote
It is because the of the disance from your server to South America. UDP is unreliable, meaning sometimes packets get damaged when going long distances. This isn't a DDoS attack. You don't need to worry.

old Re: Server firewall/lags

DannyDeth
User Off Offline

Quote
Well, a simple explanation:
Guy from South America sends a "please can I connect to this server?" packet.
------ TRAVELS AND GETS DAMAGED ------
Server sees "pl 123 31rbn" says in it's logs, "Unexpected or damaged message from (IP ADDRESS)"
Guy from South America sends another "please kan konnekt??!" packet
----- TRAVEL + DMG ----
Server sees wierd thing, logs.

And so it continues.

old Re: Server firewall/lags

DannyDeth
User Off Offline

Quote
There is no way to stop that unless you write a custom firewall, like I did a while back. It takes a lot of patience and skill.. more so the latter, as you have to monitor packets in passive mode which requires you to interface with your OS.

old Re: Server firewall/lags

Apache uwu
User Off Offline

Quote
yeah I don't believe udp uses any checksum to verify, moreover it's not in order either.

If you turn on mp_floodprot I believe cs2d will ignore the ip after if has sent many "unexpected" messages

old Re: Server firewall/lags

DannyDeth
User Off Offline

Quote
No, I wrote it on my own using the knowledge I gained from a collective 12 years of programming experience. No tutorials.
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview