Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "ganesh kumar godavari" <gkgodava@rediffmail.com>
To: netfilter@lists.samba.org
Cc: acearns@yahoo.com
Subject: iptables problem with rules
Date: 28 Jun 2002 18:04:24 -0000	[thread overview]
Message-ID: <20020628180424.29924.qmail@webmail5.rediffmail.com> (raw)

hello group,
  i am graduate student at colorado university. i am
  working on setting up a testbed for studying the
  Denial Of Service kinds of attacks. i am using IDS
  tool snort to detect any intrusion.  once i get the
  information that there is an attack i want to limit
  the # of packets based on the type of protocol used
  in the attack(say limit icmp packets if its a icmp
  ping flooding) one way to acheive QOS inspite of a
  DOS attack is to limit the # of packets comming in
  from the attacker.

  i have used iptables rules like

#Syn-flood protection:
  iptables -A FORWARD -s a.b.c.d -p tcp --syn -m
  limit --limit 1/s -j ACCEPT

  #port scan protection:
  iptables -A FORWARD  -s a.b.c.d -p tcp --tcp-flags
  SYN,ACK,FIN,RST RST -m limit --limit 1/s -j ACCEPT

# Ping of death:

  iptables -A FORWARD  -s a.b.c.d -p icmp
  --icmp-type echo-request -m limit --limit 1/s -j
  ACCEPT


the rule doesn't help to stop the packets

i tried the following rule it helps me to stop the ping flood 
attack

  iptables -A INPUT  -s 128.198.60.195 -p icmp
  --icmp-type echo-request -m limit --limit 1/s -j
  ACCEPT
  iptables -A INPUT -p icmp --icmp-type echo-request -j DROP

  iptables -A INPUT -s a.b.c.d -p tcp --syn -m
  limit --limit 1/s -j ACCEPT

  iptables -A INPUT -s a.b.c.d -p tcp --syn -j DROP

  iptables -A INPUT  -s a.b.c.d -p tcp --tcp-flags
  SYN,ACK,FIN,RST RST -m limit --limit 1/s -j ACCEPT

  iptables -A INPUT  -s a.b.c.d -p tcp --tcp-flags
  SYN,ACK,FIN,RST RST -m limit --limit 1/s -j ACCEPT


i am able to succesfully limit the ping traffic but when i do the 
same with syn flood/port scan using nmap it doesn't limit the # of 
packets

can anyone tell me whats wrong with the rules.

thanks for your time

Thanks
ganesh



_________________________________________________________
There is always a better job for you at Monsterindia.com.
Go now http://monsterindia.com/rediffin/



             reply	other threads:[~2002-06-28 18:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-28 18:04 ganesh kumar godavari [this message]
2002-06-28 18:10 ` iptables problem with rules Antony Stone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020628180424.29924.qmail@webmail5.rediffmail.com \
    --to=gkgodava@rediffmail.com \
    --cc=acearns@yahoo.com \
    --cc=netfilter@lists.samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox