Linux Netfilter discussions
 help / color / mirror / Atom feed
* active connections
@ 2004-05-01  0:43 azeem ahmad
  2004-05-01  7:15 ` Antony Stone
  2004-05-01 13:02 ` Alexis
  0 siblings, 2 replies; 7+ messages in thread
From: azeem ahmad @ 2004-05-01  0:43 UTC (permalink / raw)
  To: netfilter, netfilter-failover

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. 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
please help me out
Regards
Azeem

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: active connections
@ 2004-05-03 15:43 azeem ahmad
  2004-05-03 16:11 ` Antony Stone
  0 siblings, 1 reply; 7+ messages in thread
From: azeem ahmad @ 2004-05-03 15:43 UTC (permalink / raw)
  To: netfilter

thanks
but i m a student so i want to caputure the concept also. so please tell me 
the mystery or tell me about any tutorial about it.
Regards


>From: "Alexis" <alexis@tpys.com.ar>
>To: "netfilter" <netfilter@lists.netfilter.org>
>Subject: Re: active connections
>Date: Sat, 1 May 2004 10:02:50 -0300
>
>and they will, this is conntrack :)
>try unload the module and thats it
>
>
>
>----- Original Message -----
>From: "azeem ahmad" <azeem484@hotmail.com>
>To: <netfilter@lists.netfilter.org>;
><netfilter-failover@lists.netfilter.org>
>Sent: Friday, April 30, 2004 9:43 PM
>Subject: active connections
>
>
> > 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. 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
> > please help me out
> > Regards
> > Azeem
> >
> > _________________________________________________________________
> > Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> > http://join.msn.com/?page=features/junkmail
> >
> >
> >
>
>

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: active connections
@ 2004-05-03 17:19 Daniel Chemko
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Chemko @ 2004-05-03 17:19 UTC (permalink / raw)
  To: netfilter

>> thanks
>> but i m a student so i want to caputure the concept also. so please
>> tell me the mystery or tell me about any tutorial about it.

Just an extra step, if you flush your rules and established connections
still work, this could be because you are using SNAT to connec tto the
internet, no?

Conntrack saved entries know how to NAT to and from the source to the
destination because it is stored inside the conntrack table entry.
/proc/net/ip_conntrack is a list of the active sessions.

When you flush the NAT table, any new connections won't NAT properly
because you have removed the rule. Existing connections will already
know how to NAT the connection because its stored elsewhere.

This is the wrong way to deal with dynamic table closures. What you want
is a filter chain that explicitly drops unwanted sessions. Eventually
the sessions will timeout on their own. I haven't used them, but there
are also tools which can generate FIN/RST's on TCP connections which
basically causes a graceful shutdown of the line.



^ permalink raw reply	[flat|nested] 7+ messages in thread
* active connections
@ 2004-05-27  8:30 "Михаил" 
  0 siblings, 0 replies; 7+ messages in thread
From: "Михаил"  @ 2004-05-27  8:30 UTC (permalink / raw)
  To: netfilter

Mon, 3 May 2004 10:19:34 -0700 Daniel Chemko wrote:

>>> thanks
>>> but i m a student so i want to caputure the concept also. so please
>>> tell me the mystery or tell me about any tutorial about it.
>
>This is the wrong way to deal with dynamic table closures. What you want
>is a filter chain that explicitly drops unwanted sessions. Eventually
>the sessions will timeout on their own. I haven't used them, but there
>are also tools which can generate FIN/RST's on TCP connections which
>basically causes a graceful shutdown of the line.

Could you please name such a tools?
Or just point a direction, where I should look for it. :)



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-05-27  8:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-01  0:43 active connections azeem ahmad
2004-05-01  7:15 ` Antony Stone
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 "Михаил" 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox