Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.samba.org
Subject: Re: iptables problem with rules
Date: Fri, 28 Jun 2002 19:10:20 +0100	[thread overview]
Message-ID: <20020628181023.OBHC4626.mta02-svc.ntlworld.com@there> (raw)
In-Reply-To: <20020628180424.29924.qmail@webmail5.rediffmail.com>

On Friday 28 June 2002 7:04 pm, ganesh kumar godavari wrote:

> hello group,

>   i want to limit
>   the # of packets based on the type of protocol used
>
>   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
>
> 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

I am confused about whether you are trying to stop packets coming in to the 
machine running netfilter (ie you are putting the rules in the INPUT chain) 
or whether you are trying to stop packets going through the netfilter machine 
to another host (ie you are putting the rules in the FORWARD chain).

Please can you clarify your network setup ?

 

Antony.


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

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

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=20020628181023.OBHC4626.mta02-svc.ntlworld.com@there \
    --to=antony@soft-solutions.co.uk \
    --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