Greetings,
I used to use sysutils/tcplist, an extension/interface to sysutils/lsof for listing the current connections to any of my servers. However, it hasn't worked correctly for a year, or two; emits:
Anyway, I've attempted to gather similar information from lsof(1) itself. But I'm unable to get PID numbers, so as to drop the unwanted/abusive hosts/connections. While it's nice to simply add them (offending IP's) to pf.conf(5). That won't drop the current connection(s). Any thoughts how I might accomplish this?
Thank you for all your time, and consideration.
--Chris
I used to use sysutils/tcplist, an extension/interface to sysutils/lsof for listing the current connections to any of my servers. However, it hasn't worked correctly for a year, or two; emits:
Code:
# tcplist
lsof: unknown -s protocol: "li"
lsof 4.88
latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
usage: [-?abChKlnNoOPRtUvV] [+|-c c] [+|-d s] [+|-D D] [+|-f[cfgGn]]
[-F [f]] [-g [s]] [-i [i]] [-k k] [+|-L [l]] [-m m] [+|-M] [-o [o]] [-p s]
[+|-r [t]] [-s [p]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
tcplist: Can't get lsof output header
Thank you for all your time, and consideration.
--Chris