I'm having problems all over our LAN where Firefox is not closing network connections when using our internal webapp. It closes some but not all of the connections, repeat this often enough and your browser takes minutes to open a page.
I'm looking for a way to monitor the state of TCP connection that is a little more elegant than hitting netstat over and over. Something like tcpview from sysinternals but for bsd would be great.
Any help would be appreciated!
Use tcptrack. It will help in tracking open connections. It uses ncurses and can sort connections based on transfer rate.
In FreeBSD ports there are a lot of utilities to do just that. You might try iftop or darkstat. In the net-mgmt directory in the ports tree, tcptrack, iftop, darkstat, and ntop are all available. There is a lot more there.
There is also vnstat but I didn't see a port in net-mgmt.
You might try ntop. You start the process as a daemon, then connect using a web browser and you can watch real time throughput and statistics.
I'm not sure it can get the per-process connection state - but it's a big app with many options. Could be useful.
It does work on *BSD.
Use wireshark if you want a GUI tool
strange that nobody mentioned pftop, that can be used in pair with your pf firewall: