Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

How to defend against a sync flood attack?

Posted on 2011-09-27
Last Modified: 2012-06-27
Hello, I heard on the sync flood attack which is being used for the DOS (Denial of Service). Is there a way in Linux we can prevent it? Thanks!
Question by:beer9
  • 3
  • 3
LVL 68

Expert Comment

ID: 36708833

this is the official CERT advisory.


Basically it says that ...

There is, as yet, no generally accepted solution to this problem with the current IP protocol technology. However, proper router configuration can reduce the likelihood that your site will be the source of one of these attacks.

LVL 12

Expert Comment

ID: 36714496
The advisory also gives some advice for configuring routers  to reduce the effectiveness of an attack. Keep in mind that the attack relies on the use of a source address that won't complete the three-way handshake, so the use of non-routable addresses is common and easily filtered.

In addition, most firewalls or intrusion prevention systems offer some detection and connection throttling to protect downstream systems.

Author Comment

ID: 36902817
Do we have any tool on hosts (linux box) which can help us to prevent/defend this attack? what I should do if I notice this attack?

I am curious to know if anything I can do at hosts level.
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

LVL 12

Expert Comment

ID: 36907640
Iptables is a powerful tool for defending against several attacks. Beyond simple rules to deny connections from non-routable addresses, it also provides features like connection throttling to limit the effectiveness of these attacks. There are several web sites with details on how to block things like Xmas attacks, etc..

Add a tool like ossec to watch the logs created by iptables to give you a heads up when something's going on.

Finally, there's no substitute for a dedicated ips/firewall to take the brunt of this and offload your apps servers and workstations. There are plenty of opensource solutions, many based on tools like snort.

Author Comment

ID: 36908257
Hi hfraser, When you say "Keep in mind that the attack relies on the use of a source address that won't complete the three-way handshake, so the use of non-routable addresses is common and easily filtered."

then i think you are talking about private-ip address (non-routable). But if my laptop has private IP address and it is behind a wifi router and using NAT. so does it mean iptables on web server on which I am sending the request can filter my traffic?? Thanks!
LVL 12

Accepted Solution

hfraser earned 500 total points
ID: 36908861
Since the syn flood relies on a source ip that cannot complete the handshake, any impossible-to-reach address will do. Usually, you will filter traffic from private-ip ranges only on your border device like your WiFi router or a firewall. It's not a technique that applies to your laptop.

Keep in mind there are several private-ip ranges, so even if you're using 192.168 internally, you can still filter out the other ranges.

Author Closing Comment

ID: 36935017
Thank you! :-)

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
linux redhat 7.2 10 88
Setting up static IP - Ubuntu server 16.04 12 94
How to enable sync between two yum repo? 1 39
linux SFTP 8 59
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question