Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: active connections
Date: Sat, 1 May 2004 08:15:39 +0100	[thread overview]
Message-ID: <200405010815.40366.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <BAY15-F34bqJGNzscE8000002f5@hotmail.com>

On Saturday 01 May 2004 1:43 am, azeem ahmad wrote:

> hi all
> i m having a problem that i m using MASQUERADING on a redhat 8.0 box with
> iptables. the problem is that when i want the users to be disconnected i
> flush iptables; the new connections dont get established but the current
> active connections dont break.

Indeed.   Current connections ("ESTABLISHED" in connection tracking terms) are 
handled in the background, and not by your ruleset (your rules only deal with 
the first packet of a connection).

> like if a user is downloading msn messenger
> for example and i flush iptables, this user's connection dont break. so
> what i can do to break the active connection

You would have to unload the connection tracking module (if you use modules), 
or insert a DROP rule into a mangle table in order to specifically cut off 
the connection/s.

Regards,

Antony.

-- 
Bill Gates has personally assured the Spanish Academy that he will never allow 
the upside-down question mark to disappear from Microsoft word-processing 
programs, which must be reassuring for millions of Spanish-speaking people, 
though just a piddling afterthought as far as he's concerned.

 - Lynne Truss, "Eats, Shoots and Leaves"

                                                     Please reply to the list;
                                                           please don't CC me.



  reply	other threads:[~2004-05-01  7:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-01  0:43 active connections azeem ahmad
2004-05-01  7:15 ` Antony Stone [this message]
2004-05-01 13:02 ` Alexis
  -- strict thread matches above, loose matches on Subject: below --
2004-05-03 15:43 azeem ahmad
2004-05-03 16:11 ` Antony Stone
2004-05-03 17:19 Daniel Chemko
2004-05-27  8:30 "Михаил" 

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=200405010815.40366.Antony@Soft-Solutions.co.uk \
    --to=antony@soft-solutions.co.uk \
    --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