LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-10-2014, 08:24 PM   #1
naba09
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Rep: Reputation: Disabled
Question How to drop ICMP flood attack using IP tables


I have created this paclet using IP tables:
pkt = IP(dst='192.168.1.132')/ICMP()

and flooding it this way:
srloop(pkt,inter=0.1,count=30)

now I want to drop all these packets using IPtables.
please guide.
 
Old 12-11-2014, 12:30 PM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by naba09 View Post
I have created this paclet using IP tables:
pkt = IP(dst='192.168.1.132')/ICMP()

and flooding it this way:
srloop(pkt,inter=0.1,count=30)

now I want to drop all these packets using IPtables.
please guide.
On the server you want icmp to be blocked:
iptables -A INPUT -i <interface> -p icmp --icmp-type echo-request -j DROP
 
  


Reply

Tags
flood, icmp, iptables firewall block, packets



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
my debian server was used in a udp flood attack Darchi Linux - Security 4 04-05-2012 06:31 PM
Iptables Drop Icmp krlos07 Linux - Networking 2 05-09-2011 11:01 AM
SYN_RECV, IPTABLES, Drop DDOS Flood IPs does not work! eurusd Linux - Server 2 09-02-2009 11:40 PM
Alleged flood attack from my Ubuntu server. librano Linux - Security 4 05-24-2007 04:02 AM
Syn Flood Attack Detect synaptical Linux - Security 2 07-25-2004 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration