support ss when netstat is not installed
rathann opened this issue · 5 comments
rathann commented
PSAD still depends on the netstat
command (from net-tools) and should support using ss
(from iproute2) when net-tools is not installed.
net-tools are obsolete since 2009 and applications should switch to iproute2. Major distributions are using iproute2 and some, including RHEL7 don't install net-tools by default anymore. See also this LWN article.
mrash commented
Thanks for pointing this out - agreed. I'll update psad to use 'ss'.
rathann commented
Thank you. Another option is to stop using external command line tools and switch to perl modules, but I don't know which requires more work.
mrash commented
In git master psad now uses ‘ss’ by default. Thanks.
rathann commented
Cool, thank you. Looking forward to a new release.