Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Taylor, Grant" <gtaylor@riverviewtech.net>
To: netfilter@lists.netfilter.org
Subject: Re: Drop the Current Established Connections
Date: Wed, 01 Jun 2005 11:17:31 -0500	[thread overview]
Message-ID: <429DDF9B.4040405@riverviewtech.net> (raw)
In-Reply-To: <3b29fb7905053123282b03f832@mail.gmail.com>

iptables -t filter -I INPUT -s ${IPAddress} -j DROP
#iptables -t filter -I INPUT -d ${IPAddress} -j DROP

iptables -t filter -I FORWARD -s ${IPAddress} -j DROP
iptables -t filter -I FORWARD -d ${IPAddress} -j DROP

#iptables -t filter -I OUTPUT -s ${IPAddress} -j DROP
iptables -t filter -I OUTPUT -d ${IPAddress} -j DROP

This should rather abruptly take care of it for you.  The two lines that I commented out should arguable not be needed but I put them there just in case and to serve as a reminder.



Grant. . . .

bright true wrote:
> Hello , 
> 
> i want to know the right way of blocking an ip and drop the current Established 
> 
> connections from that ip 
> 
> Thanks


  reply	other threads:[~2005-06-01 16:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-01  6:28 Drop the Current Established Connections bright true
2005-06-01 16:17 ` Taylor, Grant [this message]
2005-06-06 20:19 ` R. DuFresne

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=429DDF9B.4040405@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=netfilter@lists.netfilter.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