Forum

> > CS2D > Servers > Server constantly crashing?
Forums overviewCS2D overview Servers overviewLog in to reply

English Server constantly crashing?

16 replies
To the start Previous 1 Next To the start

old Server constantly crashing?

Louie
User Off Offline

Quote
Whenever I start a server(in my VPS), it always crashes/becomes offline after an hour or so. I start 3 servers then after an hour(or 2) they're gone from the serverlist and I have to start it again. I tried to use nohup /screen to start the servers but it still crashes. I don't even have any complex Lua scripts in the servers(Only HC Admin Script). I have no idea why that happens.

Edit: The VPS OS is Debian 7 32 bit

old Re: Server constantly crashing?

GeoB99
Moderator Off Offline

Quote
The most probably your server is affected by DoS attacks. Did you setted up the iptables (the Linux firewall) rule or any protection against such attacks?

old Re: Server constantly crashing?

Louie
User Off Offline

Quote
user GeoB99 has written
The most probably your server is affected by DoS attacks. Did you setted up the iptables (the Linux firewall) rule or any protection against such attacks?

I use this IPTables rule
1
iptables -A INPUT -p udp -m length --length 0:28 -j DROP
Is it good enough?

old Re: Server constantly crashing?

GeoB99
Moderator Off Offline

Quote
Yea but I'm afraid your server still can be affected anyway. I used like many times this iptable command in the Terminal but heck it still doesn't prevent at all in some cases.
Maybe you'd give a try this thread cs2d (D)DoS Deflate. My friend used it and he said that works very well against small and medium attacks. It already has a tutorial to install it on the VPS. Also you can search some threads about linux firewall. Having a high bandwith than attackers have is also a good thing.

P.S: Don't screw up the iptable rules, otherwise it won't work.

old Re: Server constantly crashing?

Evaldas
BANNED Off Offline

Quote
Only blocks headers.
1
iptables -A INPUT -p udp -m length --length 0:28 -j DROP
Add these too:
1
iptables -A INPUT -p tcp --dport 22 --source Your-IP -j ACCEPT
"Your-IP" change to your ip.
1
iptables -A INPUT -p udp -m length --length 1500:65535 -j DROP
Reduce size.
1
iptables -A INPUT --source unrealsoftware.de -j ACCEPT
Allow usgn add you to server list, and check for updates.
1
2
3
iptables -A INPUT -p udp --dport Server1 -j ACCEPT
iptables -A INPUT -p udp --dport Server2 -j ACCEPT
iptables -A INPUT -p udp --dport Server3 -j ACCEPT
Change "Server1/2/3" to your server ports.

This is basic. Use search engine to find more help.
EDIT
Limited bandwidth is bad lal. few ddos attacks and you wont be able to use your vps for one month

old Re: Server constantly crashing?

Louie
User Off Offline

Quote
@user Evaldas: Thx
But for this
1
iptables -A INPUT -p tcp --dport 22 --source Your-IP -j ACCEPT
My IP is dynamic, will it work if I put something like 123.*.*.* ?

old Re: Server constantly crashing?

RoDioN1322
BANNED Off Offline

Quote
@user Louie: You have error like it?
[03:20:24] LUA ERROR: stack overflow
[03:20:24] LUA ERROR: stack overflow
[03:20:24] LUA ERROR: stack overflow
[03:20:25] " (1x)
[03:20:25] LUA ERROR: stack overflow

old Re: Server constantly crashing?

Starkkz
Moderator Off Offline

Quote
That error is caused when there's a function that calls itself forever.
1
2
3
4
function FunctionName()
	FunctionName()
end
FunctionName()
The code doesn't stop executing until it realizes that it's calling itself for no purpose, it's a anti-crash measure that Lua has.

old Re: Server constantly crashing?

Louie
User Off Offline

Quote
Woah, new and weird error I'm getting at the end of the logfile
1
2
3
4
5
[13:34:04] LUA ERROR: -2.2421989468116e-42
[13:34:04] LUA ERROR: 1.1127188180641e-308
[13:34:04] LUA ERROR: 1.1127697459631e-308
[13:34:04] LUA ERROR: 1.1128206738621e-308
[13:34:04] LUA ERROR: 1.112871601761e-308
I don't know what it means.

old Re: Server constantly crashing?

Ajmin
User Off Offline

Quote
I found the same error on my scripts too,
Also i contact starkks for the same,
He said to w8,
Yeh lets hope and wait!

Edit : Cs2d is updated therefore perhaps the error is fixed
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview