I'd like to be able to close connections by right clicking on a line -> "Close connection", below/above the "Copy... " entries.
TCPView offers such a functionality, but it's Windows only: http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx
Would this be feasible with NetActView?
Yes this is exactly what I am looking for too, I have not been able to find anything on linux that offers this functionality so far.
To implement this would require to listen for web traffic (like ethereal)
and work with administrative rights. This would make netactview harder to
use (administrative rights at least to have this feature), bigger (starts
slower) and much more resource hungry. This would scare off some of its
users and the feature wont bring that many.
The single implementation of this feature in linux I know about is able to close only connected TCP endpoints and only if those are still communicating at the moment. Any more functionality than this would probably require to write a kernel module (with its distribution and security problems).
I want to keep netactview snappy and simple, more like a graphically
enhanced version of netstat.
For now I chose not to implement this feature.
To stop connections in linux you can use things like: tcpkill (stop connected tcp endpoints ), kill (kill the process of the endpoint), iptables (add a firewall rule) or ifconfig (stop and start the the network interface).
http://www.cyberciti.biz/howto/question/linux/kill-tcp-connection-using-linux-netstat.php
Since NetActView alread offers a "launch as root" menu entry, having this option enabled for superusers would make life a tiny bit simpler for root access users.
Also, could a standard kill (tcpkill?) wrapper be implemented for normal users? So one doesn't have to resort to the command line in order to close one's own connections.
Another idea would be to leave NetActView as it is and create a new branch called something like Net Activity Manager, which could incorporate the heavier features.
From personal experience and discussions with friends I am under the impression that such a tool would find much wider use than the current Net Activity Viewer.
Thanks for your time and the helpful links!