Networking Forums

Networking Forums > Computer Networking > Linux Networking > Forcibly dropping forwarded connections?

Reply
Thread Tools Display Modes

Forcibly dropping forwarded connections?

 
 
Juha Laiho
Guest
Posts: n/a

 
      12-02-2007, 11:12 AM
Hello,

I'm looking for a tool to manage the connections forwarded by a netfilter-
based firewall. This is something that'd be useful as a debugging tool,
to find out how systems behave in case of lost network connectivity.

I can see netfilter firewall showing the currently known sessions in
/proc/net/ip_conntrack, but this appears to be a read-only view.
What I'm looking for is essentally a way to clear single connections
shown in this ip_conntrack view - regardless of the state of that
connection.

I've seen a connection cutter tool, which acts actively by sending TCP
RST packets to connection endpoints, but the difference in what I'm
looking for is somethign that just discards the session at the firewall,
without notifying the connection endpoints.

Any ideas/recommendations?
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      12-02-2007, 12:11 PM
Hello,

Juha Laiho a écrit :
>
> I'm looking for a tool to manage the connections forwarded by a netfilter-
> based firewall. This is something that'd be useful as a debugging tool,
> to find out how systems behave in case of lost network connectivity.
>
> I can see netfilter firewall showing the currently known sessions in
> /proc/net/ip_conntrack, but this appears to be a read-only view.
> What I'm looking for is essentally a way to clear single connections
> shown in this ip_conntrack view - regardless of the state of that
> connection.


Conntrack-tools
<http://www.netfilter.org/projects/conntrack-tools/index.html>

However note that deleting a connection entry from the conntrack table
does not necessarily cut the connection. The effect on the actual
connection flow depends on how the iptables ruleset uses the connection
tracking and on some conntrack-related sysctls settings.
 
Reply With Quote
 
Juha Laiho
Guest
Posts: n/a

 
      12-02-2007, 05:22 PM
(E-Mail Removed) said:
>Juha Laiho a écrit :
>>
>> I'm looking for a tool to manage the connections forwarded by a netfilter-
>> based firewall. This is something that'd be useful as a debugging tool,
>> to find out how systems behave in case of lost network connectivity.
>>
>> I can see netfilter firewall showing the currently known sessions in
>> /proc/net/ip_conntrack, but this appears to be a read-only view.
>> What I'm looking for is essentally a way to clear single connections
>> shown in this ip_conntrack view - regardless of the state of that
>> connection.

>
>Conntrack-tools
><http://www.netfilter.org/projects/conntrack-tools/index.html>


Thanks; excellent, this was exactly what I was looking for!

>However note that deleting a connection entry from the conntrack table
>does not necessarily cut the connection. The effect on the actual
>connection flow depends on how the iptables ruleset uses the connection
>tracking and on some conntrack-related sysctls settings.


Yep, that's good to remember.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropping connections immediately Tim Boyer Linux Networking 3 01-20-2007 03:28 AM
Dropping connections Gordon Wireless Internet 0 07-29-2005 11:39 PM
D-Link DI 524 dropping connections GMach3 Wireless Internet 0 04-10-2005 01:08 AM
MN-700 dropping connections DavidM Broadband Hardware 0 01-25-2005 10:51 PM
MN-500 Connections Dropping micheal Broadband Hardware 1 06-08-2004 02:44 PM



1 2 3 4 5 6 7 8 9 10 11