HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=19)
-   -   Enable TCP SYN Cookie Protection (http://www.howtoforge.com/forums/showthread.php?t=7892)

sysconfig 3rd November 2006 07:18

Enable TCP SYN Cookie Protection
 
A "SYN Attack" is a Denial of Service (DoS) attack that consumes all the resources on your machine, forcing you to reboot. Denials of Service attacks (attacks which incapacitate a server due to high traffic volume or ones that tie-up system resources enough that the server cannot respond to a legitimate connection request from a remote system) are easily achievable from internal resources or external connections via extranets and Internet. Enabling TCP SYN Cookie Protection will help to eliminate the problem.

Edit the sysctl.conf file (vi /etc/sysctl.conf) and add the following line:

Code:

# Enable TCP SYN Cookie Protection
net.ipv4.tcp_syncookies = 1

Once the configuration has been set, you must restart your network for the change to take effect.
The command to restart the network is the following:
Code:

To restart all network devices manually on your system, use the following command:
[root:~ ]# /etc/rc.d/init.d/network restart


qwe010 6th November 2006 14:09

thanks

i do

but i see thise message

error: unknown error 1 setting key 'net.ipv4.tcp_syncookies'

my server is VPS ?

falko 7th November 2006 16:27

Quote:

Originally Posted by qwe010
my server is VPS ?

I bet this is the problem.

qwe010 7th November 2006 21:37

but i have full root access :confused:

falko 8th November 2006 18:13

But it is a VPS, no matter if you have root access or not. A VPS behaves differently than a normal server in the one or other way...

qwe010 8th November 2006 18:25

thanks falko


All times are GMT +2. The time now is 02:12.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.