I'm trying to figure out in the rkhunter
config how I can whitelist the detection of certain ports, such as ports used for IRCds, and other ports which I have for services which run on non-standard ports.
Does anyone know how to configure this so that rkhunter
does not throw warnings about detecting the ports I wish to whitelist?
You edit
/etc/rkhunter.conf
Under the
WHITELIST_PORTS
section , add your whitelist. The configuration file has examples.The response from @Panther is correct. However you can also white-list whole path of executable. Example:
PORT_PATH_WHITELIST=/usr/sbin/squid
PORT_PATH_WHITELIST=/usr/sbin/squid:TCP:3801
All this with additional explanation is written in rkhunter.conf file.
P.S.: I just bumped into this and I feel that somebody can benefit from it in the future.